https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is it possible to have your agent send an SMS to a...
# ❓・ai-evy-support
g
@AI Evy Is it possible to have your agent send an SMS to a different phone number that is not the one calling?
a
Thanks for tagging me @goopasnoops. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, the Send SMS tool during phone calls is designed to send SMS from the current agent number to the user's number [(1) ]() . This tool only works in phone calls and sends messages to the caller's number . However, for sending SMS to different phone numbers (not just the caller) , you can use the Create Outbound SMS API [(2) ]() . This API allows you to specify both
from_number
and
to_number
parameters, giving you control over which number receives the SMS . For example, using the API:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatResponse = await client.chat.createSMSChat({
 from_number: '+12137771234',
 to_number: '+14155551234',
}) ;
This approach lets you send SMS to any phone number, not just the one currently on the call . **
​ To learn more, see the sources I considered: [[1] Send SMS](https://docs.retellai.com/build/single-multi-prompt/send-sms) [[2] Create Outbound SMS](https://docs.retellai.com/api-references/create-sms-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.