https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is there a way we can configure SMS destination fo...
# ❓・ai-evy-support
j
@AI Evy Is there a way we can configure SMS destination for the send SMS tool via SDK or the app?
a
Thanks for tagging me @jred. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can configure the SMS destination in the app's tool/node configuration. By default, the SMS is sent to the caller's number, but you can also choose to send to a different number, either a static number or a dynamic variable (e.g.
{{customer_phone}}
) [(1) ]() [(2) ]() . This applies for both the Send SMS tool in single/multi-prompt agents [(1) ]() and the SMS Node in Conversation Flow agents [(2) ]() . There's no SDK-level parameter documented for configuring the destination of this in-call SMS feature specifically — the destination configuration described in the sources is done through the tool/node setup in the app [(1) ]() [(2) ]() . Note this is distinct from the Create Outbound SMS API, which uses
to_number
and
from_number
fields to start a new SMS chat conversation rather than configure an in-call SMS destination [(3) ]() :
Copy code
javascript
const chatResponse = await client.chat.createSMSChat({
 from_number: '+12137771234',
 to_number: '+14155551234',
}) ;
console.log(chatResponse.agent_id) ;
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy There's no API configuration for SMS destination ?
a
Thanks for the follow-up, @jred. I'll get back to you soon.
### Answer Correct, there's no documented API parameter for configuring the in-call SMS destination for the Send SMS tool or SMS Node. That destination (caller's number, a static number, or a dynamic variable like
{{customer_phone}}
) is configured through the tool/node setup in the app itself [(1) ]() [(2) ]() . The `to_number`/`from_number` fields you see in the API are for a separate feature — the Create Outbound SMS endpoint, which starts a brand-new SMS chat conversation, not an in-call SMS sent mid-phone-call:
Copy code
javascript
const chatResponse = await client.chat.createSMSChat({
 from_number: '+12137771234',
 to_number: '+14155551234',
}) ;
console.log(chatResponse.agent_id) ;
[(3) ]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.