hhbuddy
10/01/2025, 4:43 PMAI Evy
10/01/2025, 4:43 PMAI Evy
10/01/2025, 4:44 PMAI Evy
10/01/2025, 4:44 PMAI Evy
10/01/2025, 4:44 PMjavascript
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]() .hhbuddy
10/01/2025, 7:19 PMAI Evy
10/01/2025, 7:19 PMAI Evy
10/01/2025, 7:19 PMAI Evy
10/01/2025, 7:19 PMoverride_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) ]() .AI Evy
10/01/2025, 7:19 PMhhbuddy
10/01/2025, 7:21 PMhhbuddy
10/01/2025, 7:21 PMAI Evy
10/01/2025, 7:21 PMAI Evy
10/01/2025, 7:21 PMAI Evy
10/01/2025, 7:21 PMAI Evy
10/01/2025, 7:21 PMhhbuddy
10/01/2025, 9:18 PMAI Evy
10/01/2025, 9:18 PMAI Evy
10/01/2025, 9:18 PM{{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) ]() .AI Evy
10/01/2025, 9:18 PMAI Evy
10/01/2025, 9:18 PMAI Evy
10/13/2025, 3:50 PMhhbuddy
10/13/2025, 3:50 PMAI Evy
10/13/2025, 3:50 PMAI Evy
10/13/2025, 3:50 PMAI Evy
10/13/2025, 3:50 PMhhbuddy
10/13/2025, 6:33 PMAI Evy
10/13/2025, 6:33 PMAI Evy
10/13/2025, 6:33 PM-) in your prompts [(1) ]() . The spaces around the dash are critical for proper pausing behavior .
Basic pause syntax:
The number is 2 - 1 - 3 - 4
For longer pauses, use multiple dashes:
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:
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:
- 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) ]() .AI Evy
10/13/2025, 6:33 PMAI Evy
10/13/2025, 6:33 PMhhbuddy
10/13/2025, 6:34 PMAI Evy
10/13/2025, 6:34 PMAI Evy
10/13/2025, 6:34 PM-) 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 [AI Evy
10/13/2025, 6:34 PMAI Evy
10/13/2025, 6:34 PMhhbuddy
10/16/2025, 5:05 PMAI Evy
10/16/2025, 5:05 PMAI Evy
10/16/2025, 5:06 PM{{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 .AI Evy
10/16/2025, 5:06 PMAI Evy
10/16/2025, 5:06 PMhhbuddy
10/16/2025, 6:49 PMAI Evy
10/16/2025, 6:49 PMAI Evy
10/16/2025, 6:49 PMsend_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) ]() .AI Evy
10/16/2025, 6:49 PMAI Evy
10/16/2025, 6:49 PM