https://retellai.com/?utm_source=discord&utm_medium=seo logo
I need some help making an sms chatbot that uses m...
# ❓・ai-evy-support
e
@AI Evy @Omar Ashraf | Community Lead @Colin - Integrations @ Retell AI @shahretell I need some help making an sms chatbot that uses my customer twilio number. I would like to generate a text from my next.js app after a call. It will have an automation to follow up with a text. If the text is responded to, I'd like it to be able to carry on a conversation using the AI agent. My number is already registered and approved in twilio and imported to retell.
a
Thanks for tagging me @elders7130. I'll look through relevant sources and get back to you shortly.
## Post-Call SMS Automation For sending texts after calls from your Next.js app, you can use SMS nodes in your conversation flow [(1) ]() . You can configure SMS content using either prompts for dynamic content or static SMS content with dynamic variables . ## Continuous Conversation Capability When users respond to SMS, Retell can handle ongoing conversations through chat agents [(4) ]() . You can build fully automated SMS conversations that engage leads, deliver follow-ups, and complete support flows entirely through text . ## Next.js Integration Retell supports Next.js integration through custom API integrations [(5) ]() . You can connect Next.js for dynamic content retrieval or to update real-time data during calls and SMS interactions . The system allows you to create omni-channel experiences where voice and SMS work together seamlessly, maintaining context across both channels [(4) ]() .
​ To learn more, see the sources I considered: [[1] SMS Node](https://docs.retellai.com/build/conversation-flow/sms-node) [[2] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) [[3] Create Chat](https://docs.retellai.com/api-references/create-chat) [[4] 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) [[5] Connect AI call agent to next.js](https://www.retellai.com/integrations/next-js) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Based on your setup, you can create an SMS chatbot using Retell AI with your imported Twilio number. Here's how to approach this: ## SMS Integration with Retell AI Since your Twilio number is already imported to Retell, you can enable SMS functionality [(1) ]() . Retell supports SMS through Twilio numbers, and the SMS will be sent when entering an SMS node . ## Creating Chat Agents for SMS You can create dedicated chat agents for SMS conversations [(2) ]() . To start a chat session, use the create-chat API endpoint [(3) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatResponse = await client.chat.create({ agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD' }) ;
console.log(chatResponse.agent_id) ;
c
@elders7130 let me know if this chat helps you at all
e
@Colin - Integrations @ Retell AI im having issues getting retell to send any sms with my custom twilio number for some reason, but I have confirmed the number is working for sms by using a different platform to test
c
have you sip trunked your number into the dashboard?
@elders7130 sorry, just double checked the docs, the sms only works for retell-twilio numbers and is currently US based as of right now
i can guide you through having your own number if you'd like though
a
So just confirming from the above SMS is only available through twilio to users in the US?
c
just retell twilio numbers, twilio should be available for more countries
you’ll see “a message comes in post to webhook” and that’s basically where you can control the chats coming in
a
Ok thanks, I just left twilio for Telnyx for the lower pricing, any chance of SMS with Telnyx anytime soon?
c
telnyx should have a similar option
c
sms is only retell-twilio right now, telnyx has geo permissions to text on their website
but yes we are working on it to get that implemented, no timeline as of right now
e
Ok yes if you could guide me through that would be awesome. I need it set up for an MVP. I have done the SIP trucking to get the twilio number into retell, yes. If I can at least get it to send an sms for now, even if it is not conversational yet, that would be ok.
@shahretell @Omar Ashraf | Community Lead if either of you are around I could use some help trying to send an SMS via retell. I have a Twilio number that is imported to Retell with SIP trunking but I cannot get it to send me a SMS. I have confirmed the number is set up for SMS because it does allow me to send them using another platform.
@Omar Ashraf | Community Lead @shahretell Just confirming, is it possible to use my custom imported twilio number for SMS messaging? Either an SMS node OR using a Chatbot agent? Is there a way around that?
o
Hello @elders7130 as Colin mentioned right now SMS supported for retell-Twilio , if you want a way around that you can use custom functions and implement send messages on your server and retell will call this function..