https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do i track replies to SMS
# ❓・ai-evy-support
a
@AI Evy how do i track replies to SMS ?
a
Thanks for tagging me @acetekkerz. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Enable SMS capabilities](https://docs.retellai.com/deploy/enable-sms) [[2] Unlock AI Texting, SMS, & Chatbots with Retell AI Agents | Retell AI | Retell AI](https://www.retellai.com/blog/unlock-ai-texting-with-retell-ai-voice-agents) [[3] Question on Inbound SMS](https://discord.com/channels/1186424376300679209/1422444021724348476) [[4] TEXT MESSAGE ISSUE](https://discord.com/channels/1186424376300679209/1424595052595904542) ​
### Answer To track replies to SMS in Retell AI, you need to set up two-way SMS capabilities with a Retell Twilio number [(1) ]() [(2) ]() . For two-way SMS conversations, you can connect a chat agent to handle inbound SMS replies by enabling the
useInboundWebhookOnNumberCalled
option in your phone number configuration [(1) ]() . This allows your chat agent to receive and respond to incoming SMS messages [(2) ]() . Important limitations to note: - SMS capabilities currently work only with Retell Twilio numbers - custom telephony numbers do not support inbound SMS through Retell's API [(3) ]() - SMS capabilities are currently limited to US numbers only [(1) ]() [(4) ]() If you're using the Send SMS node during a phone call (one-way SMS) , replies won't automatically be tracked unless you've configured two-way SMS with a chat agent linked to that number [(3) ]() . To set up two-way SMS tracking: 1. Enable SMS for your Retell Twilio number through the business profile and A2P registration process [(1) ]() 2. Create or select a chat agent to handle SMS conversations [(2) ]() 3. Link the chat agent to your SMS-enabled phone number for inbound messages [(1) ]()
a
@User hmm. im using a chat mode agent. is that considered 2 way?
@AI Evy hmm. im using a chat mode agent. is that considered 2 way?
a
Thanks for the follow-up, @acetekkerz. I'll get back to you soon.
### Answer Using a chat mode agent by itself doesn't automatically make it two-way SMS [(1) ]() . You need to properly configure it to handle both outbound and inbound SMS messages [(2) ]() . For two-way SMS functionality, you need: 1. A Retell-issued Twilio number (not a custom Twilio number you bring yourself) 2. A chat agent configured for SMS conversations [(1) ]() [(3) ]() 3. The chat agent must be assigned to both inbound and outbound SMS on that phone number [(2) ]() Based on community discussions, there was initially confusion about this setup. Only Retell-issued Twilio numbers support two-way SMS . If you're seeing "None" in the dropdown when trying to assign agents for inbound/outbound, it may be because your number isn't properly configured or isn't a Retell-issued number . To create an outbound SMS chat using the API, you would use the
/create-sms-chat
endpoint [(4) ]() :
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',
}) ;
console.log(chatResponse.agent_id) ;
So to answer your question: having a chat mode agent is a necessary component for two-way SMS, but it's not sufficient on its own. You must also ensure your phone number is properly configured to route both inbound and outbound SMS to that chat agent [(2) ]() .
​ To learn more, see the sources I considered: [[1] Create chat agent](https://docs.retellai.com/build/create-chat-agent) [[2] 2 Way SMS not working?? It won't allow us to choose a number to assign inbound and outbound.](https://discord.com/channels/1186424376300679209/1405373152917454908) [[3] Unlock AI Texting, SMS, & Chatbots with Retell AI Agents | Retell AI | Retell AI](https://www.retellai.com/blog/unlock-ai-texting-with-retell-ai-voice-agents) [[4] 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.