https://retellai.com/?utm_source=discord&utm_medium=seo logo
m
@AI Evy retell sms bot
a
Thanks for tagging me @Mikey. I'll look through relevant sources and get back to you shortly.
### Answer Retell AI supports SMS bots through its Chat Agent functionality, allowing you to build automated SMS conversations. [(1) ]() ## How to Build an SMS Bot To create an SMS bot in Retell AI: 1. Open the Retell Agent Builder 2. Select "Create an Agent" and choose Chat Agent 3. Select your agent type 4. Add nodes and build out prompting or conversation flow just like AI voice agents 5. Use variables like {{first_name}}, {{email}}, {{booking_time}} to personalize messages 6. Test your conversation flow using Manual Chat or AI Simulated Chat 7. Deploy live and monitor usage in your Retell dashboard ## Sending Outbound SMS You can initiate an SMS chat session using the Create Outbound SMS API: [(2) ]()
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) ;
The phone number you send SMS from must be a number purchased from Retell or imported to Retell with SMS capability. ## Creating Chat Completions To generate responses in an SMS conversation, use the Create Chat Completion API: [(3) ]()
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const response = await client.chat.createChatCompletion({
 chat_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
 content: 'hi how are you doing?',
}) ;
console.log(response.messages) ;
All conversation history is automatically stored in Retell's database, so you don't need to manage conversation context yourself. [(4) ]() ## Key Features SMS conversations with your chat agent can include multimedia (MMS) . The same phone number infrastructure used for voice agents works for SMS with no extra setup required. [(1) ]()
​ To learn more, see the sources I considered: [[1] 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) [[2] Create Outbound SMS](https://docs.retellai.com/api-references/create-sms-chat) [[3] Create Chat Completion](https://docs.retellai.com/api-references/create-chat-completion) [[4] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.