https://retellai.com/?utm_source=discord&utm_medium=seo logo
I'm setting up a chat agent for SMS
# ❓・ai-evy-support
h
@AI Evy I'm setting up a chat agent for SMS. It's set to AI speaks first, but when I go to test this chat I get "(AI remains silent until user greets) " And when I send the createSMS post nothing hapens, we get chats in the chat history, but there is no transcript. I'm assuming that it's not messeging first, which is should be doing. I can see "Welcome Message In chat mode, outbound conversations are initiated by the AI agent, while inbound conversations start with the user." This on the agent page above AI speaks first, but no other clues as to what's going on.
a
Thanks for tagging me @hhbuddy. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Create Outbound SMS](https://docs.retellai.com/api-references/create-sms-chat) [[2] Step 2: Configure the basic settings](https://docs.retellai.com/build/single-multi-prompt/configure-basic-settings) [[3] Get Agent Versions](https://docs.retellai.com/api-references/get-agent-versions) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer For outbound SMS chat agents, the AI agent should automatically generate and send the initial message when you use the createSMSChat endpoint, as long as the agent is configured for chat mode [(1) ]() . If you are seeing "(AI remains silent until user greets) " and there is no transcript or outbound message, it suggests the agent may not be fully configured for outbound initiation or there may be an issue with the agent's prompt or settings. Make sure: - The agent is set to chat mode and is properly linked in your createSMSChat request. - You are using the correct parameters in your POST request:
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) ;
If chats appear in history but have no transcript, it may mean the agent's configuration does not have a valid opening prompt, or the agent is not set to send the first message. Double-check the agent's settings, especially the conversation initiation and welcome message configuration [(2) ]() . Also, ensure your agent is published and not in an unpublished draft state, as unpublished agents may not behave as expected [(3) ]() . If you need more details, see: [Create Outbound SMS]() , [Step 2: Configure the basic settings]() , and [Get Agent Versions]() .
h
@AI Evy Can I use the same number for two different phone agents?
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Based on the available sources, one phone number typically needs to be assigned to one agent [(1) ]() . However, there are ways to achieve multiple agent functionality with a single phone number: For inbound calls, you can use an inbound webhook to dynamically route calls to different agents [(2) ]() . You can set up your webhook URL at the phone number level, and before every call you'll receive a webhook where you can use
override_agent_id
to change the agent based on your conditions . For outbound calls, multiple agents can use the same phone number when making outbound calls, but each individual call is still handled by one specific agent [(1) ]() . **Alternative approach**: Instead of multiple separate agents, you can create a multi-state agent, which is essentially multiple agents within one agent configuration . This allows you to handle different use cases or conversation flows with the same phone number. The community discussion suggests that for most use cases, using multi-state agents or dynamic agent routing through webhooks is the recommended approach rather than trying to assign multiple agents directly to one phone number [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Clarification on Assigning Multiple Agents to a Single Phone Number](https://discord.com/channels/1186424376300679209/1306563900463906880) [[2] Importing existing phone number to multiple agents via API](https://discord.com/channels/1186424376300679209/1418871771045564509) ​
h
When I set the number during publishing of an agent, it removes it from the other agent I have it on.
@AI Evy When I set the number during publishing of an agent, it removes it from the other agent I have it on.
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
### Answer [(1) ]() Based on the documentation, this behavior is expected. When you publish an agent and attach phone numbers during the deployment process, the system enforces that a phone number can only be assigned to one agent at a time . According to the versioning documentation, when you click the "Deployment" button and attach phone numbers for production use, those numbers become associated with that specific agent version . The system automatically removes the phone number from any other agent it was previously assigned to. You have a few options to work with this limitation: 1. **Use the Phone Numbers tab**: You can manage phone number assignments through the "Phone Numbers" tab in the dashboard, which allows you to attach phone numbers to different agent versions after publishing . 2. **Dynamic agent routing**: As mentioned in your previous conversation, you can use inbound webhooks to dynamically route calls to different agents using the same phone number, rather than trying to assign the number to multiple agents directly. 3. **Multi-state agents**: Consider creating a single multi-state agent that can handle different conversation flows, rather than using separate agents. The documentation confirms that "Even if you do not attach phone numbers here, you can still attach phone number to agents via the 'Phone Numbers' tab in the dashboard" , which gives you more flexibility in managing assignments after publishing.
​ To learn more, see the sources I considered: [[1] Setup versioning for agents](https://docs.retellai.com/agent/version) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy So if I send a variable that is true or false to an agent, is there an agent that can choose which prompt to use based on that variable?
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
### Answer Yes, you can achieve this using dynamic variables in your agent prompts [(1) ]() . While the sources don't show a direct prompt-switching mechanism, you can use dynamic variables with boolean values to conditionally control agent behavior within prompts . You can send boolean variables to your agent and reference them in your prompts using the
{{variable_name}}
syntax . When making calls, you would include your boolean variable in the
retell_llm_dynamic_variables
field, noting that all values must be strings . For example, you could structure your prompt to handle conditional logic based on your boolean variable, or consider using a Multi-Prompt Agent structure [(2) ]() . Multi-prompt agents organize conversations into a structured tree of states, each with its own focused prompt and behavior . Each state includes focused prompts, state-specific functions, transition logic, and context preservation . The Multi-Prompt Agent approach would be particularly effective for your use case, as it allows you to have different prompts for different conversation phases and includes clear conditions for moving between states . This is the recommended approach when you need more complex conversation flows beyond simple single-prompt agents . If you need to extract and work with boolean values from user responses, you can also use the Extract Dynamic Variables tool, which supports Boolean variable types [(3) ]() .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Single/Multi Prompt Agent Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[3] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
h
@AI Evy can we have more than one Company Profile?
a
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Based on the available sources, I don't have specific information about whether you can create multiple business profiles in Retell AI. The documentation shows the process for creating and verifying a business profile [(1) ]() , but doesn't explicitly address having multiple profiles for the same account or organization. The business profile setup process requires you to complete business information including business registration number, business address, contact number, and website . This profile is then used for premium services like verified phone numbers and branded calls [(2) ]() . For a definitive answer on multiple business profiles, I'd recommend checking with Retell AI support: - Visit [Contact Sales]() - Visit [) Would you like me to provide a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Add a business profile](https://docs.retellai.com/build/telephony/business-profile) [[2] Apply for branded call](https://docs.retellai.com/build/telephony/branded-call) ​
h
@AI Evy what's the best way to included pauses in the script?
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
### Answer ### Answer For adding pauses in Retell AI agent scripts, the recommended approach is using spaced dashes (
-
) in your prompts [(1) ]() . The spaces around the dash are critical for proper pausing behavior . Basic pause syntax:
Copy code
The number is 2 - 1 - 3 - 4
For longer pauses, use multiple dashes:
Copy code
The number is 2 - - - - 1 - - - - 3
// Notice the double spaces between the dashes
This technique is particularly useful for phone numbers, where you want the agent to speak slowly [(2) ]() . For example, when prompting for phone number pronunciation:
Copy code
When speaking the phone number, transform the format as follows:
- Input formats like 4158923245, (415) 892-3245, or 415-892-3245
- Should be pronounced as: "four one five - eight nine two - three two four five"
- Important: Don't omit the space around the dash when speaking
Important limitations: Based on community feedback, this spacing technique may not work consistently across all languages [(3) ](

▾

) . For non-English agents, you might need to experiment with different approaches . For complete silence (no response) : If you need the agent to remain completely silent, use the special sequence:
Copy code
- if user says "hold on", reply exactly the following: "NO_RESPONSE_NEEDED".
[(4) ]() The dash-spacing method is the primary documented approach for controlling speech pacing in Retell AI agents [(1) ]() .
​ To learn more, see the sources I considered: [[1] Add pause or read slowly](https://docs.retellai.com/build/add-pause) [[2] Prompt guide & examples for specific situations](https://docs.retellai.com/build/prompt-situation-guide) [[3] Master The Future of Voice AI - Conversation Design & Agent Persona](

https://www.youtube.com/watch?v=42V0bDQIsb0▾

) [[4] Make agent hold and respond nothing](https://docs.retellai.com/build/no-response) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy No I'd like natural pauses in a conversation while awaiting a response.
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
### Answer Based on the available sources, natural conversational pauses while awaiting responses are not directly controllable through prompt engineering in Retell AI [(1) ]() . The dash spacing method (
-
) is specifically designed for controlling speech pacing within the agent's own responses, not for creating natural pauses while waiting for user responses . However, there are a few approaches mentioned in the community discussions: 1. **Prompt-based approach**: Some users have tried instructing the agent to "wait patiently for the user to complete their response" in the prompt, though this has mixed results [(2) ]() . 2. **Voice settings**: You can adjust the agent's speed and responsiveness settings, which may help with the overall conversational flow . 3. **Detection delay configuration**: In specific contexts like Press Digit Nodes, you can configure detection delays to ensure the agent doesn't respond prematurely [(3) ]() . This sets a delay on pauses to make sure complete information is captured before the agent responds . The community has noted that natural pauses in agent speech (as opposed to waiting for responses) would require intonation and dynamic speech speed controls that aren't directly controllable through prompts [(2) ]() . This suggests that natural conversational timing while awaiting responses is primarily handled by Retell AI's turn-taking model rather than being directly configurable. For more specific guidance on this feature request, you might want to contact: - Visit [Contact Sales]() - Visit [
I/]() Would you like me to provide a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Add pause or read slowly](https://docs.retellai.com/build/add-pause) [[2] Discord message from @lukas.slezevicius on 2024-07-09](https://discord.com/channels/1186424376300679209/1186462578310910112/1260182016666898452) [[3] Press Digit Node](https://docs.retellai.com/build/conversation-flow/press-digit-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy Is there a way to change an inbound agents behavior based on the time of the call? I only need my inbound agent to transfer during business hours.
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
### Answer Based on the available sources, yes, you can change an inbound agent's behavior based on the time of the call, particularly for business hours transfer functionality [(1) ]() . The recommended approach is through prompting . You can: 1. State business hours in your global prompt along with call transfer instructions 2. Include current time information in your system prompt using the
{{current_time}}
dynamic variable 3. Add timezone conversion instructions such as "Now is {{current_time}}. Add X hours to make it our timezone" For example, you would structure your prompt to include business hours (like 9 AM to 5 PM PST) and instruct the agent to only transfer calls during those hours . The agent can then use the current time information to determine whether to proceed with transfers or handle the call differently . Some users also use
inbound_llm_variables
to set custom time variables for specific timezones, and even include a boolean variable about whether transfers should be allowed . Additionally, there's mention that timezone-aware
{{current_time}}
functionality is on the roadmap, which would make this process even more streamlined . The community has reported that this prompting approach works well in practice for controlling time-based agent behavior .
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] Discord message from @brooklyn88ua on 2025-03-03](https://discord.com/channels/1186424376300679209/1186462578310910112/1345998492212007004) ​
h
@AI Evy is the voice agent function send_sms a 2 way sms? Can I monitor it with the call id?
a
Thanks for the follow-up, @hhbuddy. I'll get back to you soon.
### Answer The voice agent's
send_sms
function is a one-way SMS, not two-way [(1) ]() [(2) ]() . The agent sends an SMS from the current agent number to the user's number during a phone call, and the agent will tell the user that the SMS is being sent when invoking this tool . For two-way SMS conversations, you would need to set up separate SMS chat functionality with the
useInboundWebhookOnNumberCalled
option enabled in your phone number configuration [(3) ]() . Regarding monitoring with the call ID - the SMS sending activity during a phone call would be part of the call's transcript and tool call history, which you can access through the call data associated with that call ID [(4) ]() . The call response includes transcript information with tool calls, so you should be able to see when the SMS function was invoked during the call . However, the actual SMS delivery status or any responses to that SMS would not be directly tied to the original phone call ID, since the SMS is a separate one-way communication [(1) ]() [(2) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
x
Check out this video we just launched to enable 2 way SMS!

https://www.youtube.com/watch?v=uoC3ehUe1C4&feature=youtu.be▾