idriss28
08/14/2025, 3:37 PMAI Evy
08/14/2025, 3:37 PMAI Evy
08/14/2025, 3:38 PMjson
{
"call_inbound": {
"dynamic_variables": {
"contact_name": "carlo tester",
"email": "john.caintic@bluenavy.org",
"phone": "+19498676265",
"claim_status": "in critical stage of the operations. being handled by experts"
}
}
}
I don't see any appointment_available_ts variable in the webhook response you've shared - only the four dynamic variables you've defined: contact_name, email, phone, and claim_status .
If you're seeing appointment_available_ts somewhere else, it might be:
1. Coming from your agent's default dynamic variables that you've set at the agent level [(2) ]()
2. Appearing in a different part of your call logs or agent configuration
3. From a different webhook or API call
The dynamic variables from your inbound webhook response should be available in your agent's prompt using the syntax {{contact_name}}, {{email}}, {{phone}}, and {{claim_status}} .
Could you clarify where exactly you're seeing the appointment_available_ts variable? This would help identify where it's coming from.AI Evy
08/14/2025, 3:38 PMAI Evy
08/14/2025, 3:38 PMidriss28
08/14/2025, 5:08 PMAI Evy
08/14/2025, 5:08 PMAI Evy
08/14/2025, 5:08 PMappointment_available_ts variable might be coming from:
## Check Agent-Level Default Dynamic Variables
The most likely source is your agent's default dynamic variables configuration [(1) ]() . These serve as fallback values and will be used when specific variables aren't included in the call request . Check your agent settings for any pre-configured default variables.
## Check Your Function Call Configurations
If you're using function calling tools, dynamic variables can appear in :
- Tool call descriptions
- Custom tool call properties descriptions
Review all your function configurations to see if appointment_available_ts is defined there.
## Check Conversation Flow Nodes
If you're using conversation flow, dynamic variables can be used in various node types [(2) ]() . Check all your nodes, especially if you have any SMS nodes or other specialized nodes that might reference this variable.
## Check Extract Dynamic Variables Tools
If you have any Extract Dynamic Variables tools configured, check if appointment_available_ts is defined as one of the variables to extract [(3) ]() . These tools can create dynamic variables during the conversation.
## Check Your Prompt Configuration
Look through your entire prompt text for any references to {{appointment_available_ts}} [(1) ]() . Sometimes variables are referenced in prompts even if they're not actively being set.
## Check Begin Message Settings
Dynamic variables can also be used in the begin message configuration . Review your agent's begin message settings.
Since your webhook response is clean and only contains the fourAI Evy
08/14/2025, 5:08 PMappointment_available_ts variable is likely coming from one of these agent-level configurations rather than your webhook.AI Evy
08/14/2025, 5:08 PMAI Evy
08/14/2025, 5:08 PMidriss28
08/14/2025, 5:34 PMidriss28
08/14/2025, 5:35 PMAI Evy
08/14/2025, 5:35 PMAI Evy
08/14/2025, 5:35 PMappointment_available_ts variable:
## Check Default Dynamic Variables in Conversation Flow
In conversation flow agents, you can set default_dynamic_variables at the global level [(1) ]() . These are defined when creating the conversation flow and would appear in your agent configuration like this:
json
"default_dynamic_variables": {
"company_name": "Retell Inc",
"support_hours": "9 AM - 5 PM"
}AI Evy
08/14/2025, 5:35 PMappointment_available_ts is defined in your conversation flow's default dynamic variables.
## Check Individual Node Configurations
Since you're using conversation flow, dynamic variables can be referenced in individual nodes [(2) ]() . The appointment_available_ts variable might be defined or referenced in:
- Node instructions/prompts
- Function call configurations within specific nodes
- Transition conditions between nodes
## Known Issue with Conversation Flow Dynamic Variables
There's a documented issue where dynamic variables may not populate correctly in conversation flow agents compared to multi-prompt agents [(3) ]() . Users have reported that dynamic variables successfully populate in multi-prompt agents but not in conversation flow agents, even when using the same webhook endpoint .
## Check Your Conversation Flow JSON
You can retrieve your full conversation flow configuration using the Get Conversation Flow API [(4) ]() to see all variables defined across the entire flow. This will show you exactly where appointment_available_ts might be configured.
Since your webhook response is clean and only contains your expected variables, the appointment_available_ts is likely coming from your conversation flow's global settings or individual node configurations.AI Evy
08/14/2025, 5:35 PMAI Evy
08/14/2025, 5:35 PMidriss28
08/14/2025, 5:51 PMAI Evy
08/14/2025, 5:51 PMAI Evy
08/14/2025, 5:51 PMdefault_dynamic_variables field [(2) ]() . This would look like:
json
"default_dynamic_variables": {
"company_name": "Retell Inc",
"support_hours": "9 AM - 5 PM"
}AI Evy
08/14/2025, 5:51 PMAI Evy
08/14/2025, 5:51 PMAI Evy
08/14/2025, 5:51 PMidriss28
08/14/2025, 10:47 PMAI Evy
08/14/2025, 10:47 PMAI Evy
08/14/2025, 10:47 PMif {{source}} is "GHL" is not the correct format [(1) ]() . Based on the documentation, multi-prompt agents use equation conditions for dynamic variables, and the proper syntax would be:
{{source}} == "GHL"
The documentation shows that equation conditions use specific operators like == for string comparisons . Here are the correct formats for equation conditions:
- {{user_location}} == "New York"
- {{user_location}} != "New York"
- "New York, Los Angeles" CONTAINS {{user_location}}
- "New York, Los Angeles" NOT CONTAINS {{user_location}}
Note that the ==, CONTAINS, NOT CONTAINS, and != operators are string comparisons and do not require numerical input .
However, there's some uncertainty about dynamic variable support in multi-prompt agent transitions. The Discord discussion suggests this functionality may not be fully supported or documented [(2) ]() .
For the most reliable approach, consider using prompt conditions instead of equation conditions if you encounter issues with dynamic variables in multi-prompt transitions [(1) ]() .AI Evy
08/14/2025, 10:47 PMAI Evy
08/14/2025, 10:47 PMidriss28
08/14/2025, 11:32 PMAI Evy
08/14/2025, 11:32 PMAI Evy
08/14/2025, 11:32 PMai_call_history_notes
- **Description**: Provide detailed call history notes including key discussion points, outcomes, and follow-up items for future reference
- **Format Example**: "Customer called about billing issue. Resolved by explaining the recent price changes. Follow-up needed in 2 weeks."
## Access Post Call Analysis Data
The formatted text will be available in the call_analysis object after the call ends [(3) ]() [(4) ]() [(5) ]() :
json
"call_analysis": {
"call_summary": "The agent called the user to ask question about his purchase inquiry...",
"in_voicemail": false,
"user_sentiment": "Positive",
"call_successful": true,
"custom_analysis_data": {}
}AI Evy
08/14/2025, 11:32 PMcustom_analysis_data field .
## Implementation Strategy for Contextual Awareness
1. Extract formatted call notes using post call analysis text type with your specified format example [(2) ]()
2. Store in GHL as a custom field after each call via webhook
3. Retrieve historical notes from GHL during inbound calls using dynamic variables to inject past conversation context into your agent prompt
The text analysis supports detailed textual information extraction [(1) ]() , so you can format your call history notes exactly as needed for GHL integration and future contextual awareness.AI Evy
08/14/2025, 11:32 PMAI Evy
08/14/2025, 11:32 PMAI Evy
08/15/2025, 1:56 AMidriss28
08/15/2025, 1:56 AMAI Evy
08/15/2025, 1:57 AM{{current_time}} - Current date and time
- {{current_date}} - Current date only
- {{current_calendar}} - 14-day calendar in America/Los_Angeles timezone
- {{current_calendar_[timezone]}} - 14-day calendar in specified timezone, for example: {{current_calendar_Australia/Sydney}}
## Implementation for Appointment Booking
Add the current time information directly to your agent's prompt using the {{current_time}} variable . This is the most reliable approach based on community feedback [(2) ]() .
## Common Issues and Solutions
Based on Discord discussions, there are some important considerations:
1. Use {{current_time}} not {{current_date}} - Users often mistakenly use current_date instead of current_time
2. Agent awareness of current time - Make sure to explicitly include time awareness in your prompt, such as: "The time and date right now is: {{current_time}}"
3. Custom date variables - If you need specific date formatting from external systems, you can pass custom date values as dynamic variables from your webhook instead of relying on built-in time variables [(3) ]()
## Calendar Display Format
The {{current_calendar}} variable provides a 14-day calendar view that displays dates like [(1) ]() :AI Evy
08/15/2025, 1:57 AMAI Evy
08/15/2025, 1:57 AM"Thursday, March 28, 2024 PST (Today)
Friday, March 29, 2024 PST
…
Wednesday, April 10, 2024 PST"
For appointment booking scenarios, using {{current_time}} in your prompt ensures the agent has accurate temporal awareness when suggesting available time slots and scheduling appointments.AI Evy
08/15/2025, 1:57 AMidriss28
08/15/2025, 7:15 PMAI Evy
08/15/2025, 7:15 PMAI Evy
08/15/2025, 7:15 PMAI Evy
08/15/2025, 7:15 PMAI Evy
08/15/2025, 7:15 PMidriss28
08/15/2025, 7:16 PMAI Evy
08/15/2025, 7:16 PMAI Evy
08/15/2025, 7:16 PMAI Evy
08/15/2025, 7:16 PMAI Evy
08/15/2025, 7:16 PMidriss28
08/15/2025, 7:50 PMAI Evy
08/15/2025, 7:50 PMAI Evy
08/15/2025, 7:51 PMappointment_booking_details
**Description**: Extract the scheduled appointment date and time in a specific format for integration with GHL booking workflows
The extracted data will be available in the call_analysis object after the call ends [(3) ]() :
json
"call_analysis": {
"call_summary": "The agent called the user to ask question about his purchase inquiry. The agent asked several questions regarding his preference and asked if user would like to book an appointment. The user happily agreed and scheduled an appointment next Monday 10am.",
"in_voicemail": false,
"user_sentiment": "Positive",
"call_successful": true,
"custom_analysis_data": {}
}
Your custom appointment data will appear in the custom_analysis_data field .
## Method 2: Using Dynamic Variables During Call
You can also use dynamic variables to store appointment information during the conversation [(1) ]() . Dynamic variables can be used in:
- Prompts
- Tool call descriptions
- Custom tool call properties descriptions
For outbound calls, you can update dynamic variables in the retell_llm_dynamic_variables field :AI Evy
08/15/2025, 7:51 PMjson
{
"user_name": "John Smith",
"product_name": "Premium Plan",
"account_status": "active"
}
## Integration Workflow
1. Extract appointment data using post-call analysis with a specific format for GHL integration [(2) ]()
2. Use webhooks to automatically send the appointment data to GHL after each call
3. Trigger GHL booking workflow using the extracted appointment date and time from the custom_analysis_data field [(3) ]()
Post-call analysis will not populate custom fields for non-connected calls and calls where no conversation happened, so make sure to check field existence before using it [(2) ]() .AI Evy
08/15/2025, 7:51 PMAI Evy
08/15/2025, 7:51 PMidriss28
08/15/2025, 7:53 PMAI Evy
08/15/2025, 7:53 PMAI Evy
08/15/2025, 7:54 PMcall_analysis object after the call ends [(2) ]() :
json
"call_analysis": {
"call_summary": "The agent called the user to ask question about his purchase inquiry. The agent asked several questions regarding his preference and asked if user would like to book an appointment. The user happily agreed and scheduled an appointment next Monday 10am.",
"in_voicemail": false,
"user_sentiment": "Positive",
"call_successful": true,
"custom_analysis_data": {}
}AI Evy
08/15/2025, 7:54 PMcustom_analysis_data field .
## Integration Flow
Your proposed workflow is solid:
1. Retell AI extracts appointment booking details via post-call analysis [(1) ]()
2. Make.com parses the structured data from the custom_analysis_data field [(2) ]()
3. GHL receives the parsed appointment data via API for booking workflow
## Important Considerations
Post-call analysis will not populate custom fields for non-connected calls and calls where no conversation happened, so Make.com should check field existence before processing [(1) ]() .
This approach leverages Retell AI's built-in analysis capabilities to create a clean data pipeline for your GHL appointment booking automation.AI Evy
08/15/2025, 7:54 PMAI Evy
08/15/2025, 7:54 PMidriss28
08/21/2025, 12:23 AMidriss28
08/21/2025, 12:24 AMAI Evy
08/21/2025, 12:24 AMAI Evy
08/21/2025, 12:24 AM- {{user_age}} > 18
- {{current_time}} > 9 AND {{current_time}} < 18
- {{user_location}} == "New York"
- {{user_location}} != "New York"
- "New York, Los Angeles" CONTAINS {{user_location}}
- "New York, Los Angeles" NOT CONTAINS {{user_location}}
- {{user_age}} < 18 OR {{user_location}} == "New York"
## Important Notes
You can only use variables that are passed in as dynamic variables for equation conditions . The ==, CONTAINS, NOT CONTAINS, and != operators are string comparisons and do not require numerical input .
## Checking if Variables Are Not Set
If you need to check if a dynamic variable is not set in equation conditions, you can use [(2) ]() :
{{user_name}} contains {{
This would evaluate to true if the variable is not set .AI Evy
08/21/2025, 12:24 AMAI Evy
08/21/2025, 12:24 AMAI Evy
08/21/2025, 12:28 AMidriss28
08/21/2025, 12:28 AMAI Evy
08/21/2025, 12:28 AMjson
{
"call_inbound": {
"override_agent_id": "agent_id_here",
"dynamic_variables": {
"source": "GHL",
"lead_type": "premium"
}
}
}
## Path Condition Format
For equation-based transition conditions, you must use double curly braces around your variable [(2) ]() :
{{source}} == "GHL"AI Evy
08/21/2025, 12:28 AMAI Evy
08/21/2025, 12:28 AMAI Evy
08/21/2025, 12:28 AMidriss28
08/21/2025, 5:18 PMAI Evy
08/21/2025, 5:18 PMAI Evy
08/21/2025, 5:19 PMjson
{
"call_inbound": {
"dynamic_variables": {
"contact_name": "carlo tester",
"email": "john.caintic@bluenavy.org",
"phone": "+19498676265",
"claim_status": "in critical stage of the operations. being handled by experts"
}
}
}
You can reference these variables directly in your prompts, begin messages, tool descriptions, and other supported locations using the standard syntax [(1) ]() :
Hello {{contact_name}}, I see your claim status is {{claim_status}}. How can I help you today?
## Where You Can Use These Variables
Dynamic variables from inbound webhooks can be used in :
- prompt
- begin message
- tool call url
- tool call description
- custom tool call properties description
- voicemail setting (both prompt and static text)
- transfer call function number
- warm transfer setting (both prompt and static text)
## Important Note About Variable Format
Based on community discussions, there's an alternative format that some users have found more reliable for inbound webhook variables [(3) ]() :
json
{
"call_inbound": {
"dynamic_variables": {
"caller_name": " "
}
}
}
This format resolved issues where the retell_llm_dynamic_variables was not setting variables properly for some users .AI Evy
08/21/2025, 5:19 PMAI Evy
08/21/2025, 5:19 PMidriss28
09/01/2025, 6:17 PMidriss28
09/01/2025, 6:17 PMAI Evy
09/01/2025, 6:17 PMAI Evy
09/01/2025, 6:17 PMThe caller's source is: {{source}}
If the caller's source is "GHL", ask these specific questions:
1. [GHL-specific questions]
2. [More GHL questions]
If the caller's source is "Company API", ask these different questions:
1. [Company API-specific questions]
2. [More Company API questions]
While single prompt agents may have limitations as they become more complex, they can be more reliable for variable-based conditional logic .
## Solution 2: Verify Inbound Webhook Format
Ensure your inbound webhook response follows the correct format [(3) ]() :
json
{
"first_name": "Reece",
"phone_number": "+18005551212"
}AI Evy
09/01/2025, 6:17 PM{{variable_name}} format in your prompts .
## Solution 3: Test Variable Reception
Add the {{source}} variable to your welcome message temporarily to verify the webhook is sending the correct data [(1) ]() . If the agent provides correct responses when the variable is in the greeting but fails when removed, this confirms the known issue with path conditions.
## Solution 4: Use Equation-Based Path Conditions
For equation-based transition conditions, ensure you're using the correct format [(4) ]() :
{{source}} == "GHL"
{{source}} == "Company API"
The == operator performs string comparison and doesn't require numerical input .
## Alternative Approach: Prompt-Based Logic
Given the documented issues with inbound webhook variables in conversation flow, consider handling the conditional logic within your prompt instead of relying on path conditions [(1) ]() . This approach has proven more reliable for users experiencing similar issues.AI Evy
09/01/2025, 6:18 PMAI Evy
09/01/2025, 6:18 PMidriss28
09/04/2025, 10:55 PMAI Evy
09/04/2025, 10:55 PMAI Evy
09/04/2025, 10:55 PMAI Evy
09/04/2025, 10:55 PMAI Evy
09/04/2025, 10:55 PMidriss28
09/04/2025, 11:54 PMAI Evy
09/04/2025, 11:54 PMAI Evy
09/04/2025, 11:54 PMX- . You can use dynamic variables for your custom SIP header values, which means you can pass information extracted from the call to the receiving party .
Here's how this could work for your scenario:
json
{
"X-customer-name": "{{customer_name}}",
"X-source": "{{source}}",
"X-language": "spanish"
}AI Evy
09/04/2025, 11:54 PMX- . This allows you to pass the webhook data from your first agent to the Spanish-speaking agent.
## Important Limitation with Twilio
There's an important caveat: for cold transfer with transferee number, it uses SIP REFER to transfer the call [(1) ]() . Different telephony providers may or may NOT honor the custom SIP headers in the REFER request . Twilio, for example, does not honor the custom SIP headers in the REFER request, so the SIP headers you set in transfer call tool will not work for cold transfer with transferee number when using Twilio .
## How the Receiving Agent Gets the Data
For the receiving agent (Spanish agent) , custom SIP headers that start with X- or x- are automatically received, extracted and available in the call.custom_sip_headers field . They're also automatically added to your collection of dynamic variables, and you can access them within your agent by stripping the X- or x- prefix .
For example, if you send X-customer-name: John Doe, the receiving agent can access it as {{customer-name}} in their prompts .
This approach could solve your problem of carrying over the webhook data from the first agent to the Spanish-speaking agent, as long as you're not using Twilio for cold transfers.AI Evy
09/04/2025, 11:54 PMAI Evy
09/04/2025, 11:54 PMidriss28
09/05/2025, 12:10 AMAI Evy
09/05/2025, 12:10 AMAI Evy
09/05/2025, 12:10 AMAI Evy
09/05/2025, 12:10 AMAI Evy
09/05/2025, 12:10 AMidriss28
09/05/2025, 12:11 AMAI Evy
09/05/2025, 12:11 AMAI Evy
09/05/2025, 12:12 AMX- [(2) ]() [(3) ]() . You can use dynamic variables for your custom SIP header values, allowing you to pass information extracted from the call to the receiving party [(1) ]() .
The warm transfer process works differently than cold transfers - after the call is transferred to the destination number, the AI agent attempts to first detect if the other side is a human, then speaks private and public messages [(2) ]() [(3) ]() .
Since the Twilio limitation is specifically documented for "cold transfer with transferee number" using SIP REFER [(1) ]() , warm transfers might work differently and potentially support custom SIP headers. However, thAI Evy
09/05/2025, 12:12 AMAI Evy
09/05/2025, 12:12 AMAI Evy
09/05/2025, 12:12 AMidriss28
09/05/2025, 12:14 AMAI Evy
09/05/2025, 12:14 AMAI Evy
09/05/2025, 12:14 AM{{source}} variable
- Branch to English or Spanish conversation paths within the same agent
- All your webhook variables remain available throughout the conversation
### Option 2: External Database Approach
Store the webhook data in an external system (like your Make.com integration) with a unique call identifier, then have the Spanish agent retrieve the data using a custom function when the call is transferred.
### Option 3: Conversation Flow with Language Branching
Use Conversation Flow [(3) ](httpAI Evy
09/05/2025, 12:14 AM{{source}} variable:AI Evy
09/05/2025, 12:14 AM{{source}} == "GHL"
{{source}} == "Company API"
This would work within a single agent structure, avoiding the transfer data loss issue entirely.
The challenge with transferring this many variables between agents, especially with Twilio's limitations, suggests that a single-agent approach with language branching might be more reliable for your use case.AI Evy
09/05/2025, 12:14 AMAI Evy
09/05/2025, 12:15 AMidriss28
09/05/2025, 12:32 AMAI Evy
09/05/2025, 12:32 AMAI Evy
09/05/2025, 12:33 AMget_transferred_data (using underscores)
- **Description**: "Retrieve customer data from previous agent using call ID"
### 2. Set Up the API Endpoint
Add the URL where Retell will send the request to execute your custom function . This should point to your Make.com integration or database where you stored the original webhook data.
### 3. Define Parameters
Use JSON schema format to specify parameters :
json
{
"type": "object",
"properties": {
"call_id": {
"type": "string",
"description": "The original call ID to retrieve data for"
}
},
"required": [
"call_id"
]
}
### 4. Set Response Variables
Extract values from the API response and save them as dynamic variables . For example, you can extract customer data from the response and reference it later using {{customer_name}}, {{claim_status}}, etc.
Example response body:
json
{
"properties": {
"user": {
"name": "John Doe",
"age": 26
}
}
}
## Request & Response Specification
Retell will send a POST request to your endpoint with :
- **Header**: X-Retell-Signature for verification
- **Body**: Contains name, call, and args fields
Your API should return data that gets converted to string format and made available to the Spanish agent .
## Verification Code Example
You can verify requests are from Retell using:AI Evy
09/05/2025, 12:33 AMjavascript
import { Retell } from "retell-sdk";
this.app.post("/check-weather", async (req: Request, res: Response) => {
if (
!Retell.verify(
JSON.stringify(req.body) ,
process.env.RETELL_API_KEY,
req.headers["x-retell-signature"] as string,
)
) {
console.error("Invalid signature") ;
return;
}
const content = req.body;
if (content.args.city === "New York") {
return res.json("25f and sunny") ;
} else {
return res.json("20f and cloudy") ;
}
}) ;
This approach would allow your Spanish agent to retrieve all the webhook variables from the original English agent call through your external API system.AI Evy
09/05/2025, 12:33 AMAI Evy
09/05/2025, 12:33 AMidriss28
09/05/2025, 12:36 AMAI Evy
09/05/2025, 12:36 AMAI Evy
09/05/2025, 12:36 AMcall object which contains real-time transcript up to the time the request is sent, but this is for the current agent's call context, not data from a different agent [(2) ]() .
The request spec shows what's available in custom function calls :
- `name`: the name of the custom function
- `call`: the call object for the current call context
- `args`: the arguments for the custom function
## Why This Won't Work for Your Use Case
Dynamic variables are session-specific to each agent [(3) ]() . When you transfer from the English agent to the Spanish agent, you're essentially starting a new agent session. The Spanish agent has no built-in way to access the dynamic variables that were populated in the English agent's session.
## Alternative Solution
You'll need to store the data externally (in your Make.com integration or database) during the first agent's session, then retrieve it in the Spanish agent using a custom function that calls your external system - not a Retell endpoint.
The custom function in the Spanish agent would need to call your own API endpoint where you've stored the original webhook data, using something like a call ID or session identifier to match the data.
Visit [Contact Sales]() or [AI Evy
09/05/2025, 12:36 AMAI Evy
09/05/2025, 12:36 AMAI Evy
09/05/2025, 12:36 AMidriss28
09/05/2025, 12:41 AMAI Evy
09/05/2025, 12:41 AMAI Evy
09/05/2025, 12:41 AMstore_call_data
- **Description**: "Store all webhook variables for potential transfer"
- **HTTP Method**: POST
- **Endpoint URL**: Your Make.com webhook or database API
Parameters Schema:
json
{
"type": "object",
"properties": {
"call_id": {
"type": "string",
"description": "Unique identifier for this call"
},
"contact_name": {
"type": "string",
"description": "Customer contact name"
},
"source": {
"type": "string",
"description": "Data source (GHL or Company API) "
}
}
}AI Evy
09/05/2025, 12:41 AMget_stored_call_data
- **Description**: "Retrieve customer data from previous agent session"
- **HTTP Method**: GET or POST
- **Endpoint URL**: Your retrieval API endpoint
Request Headers:
You can define custom headers to include with the request . Header values can be static or include dynamic variables .
Parameters for Retrieval:
json
{
"type": "object",
"properties": {
"original_call_id": {
"type": "string",
"description": "The call ID from the transferred call"
}
},
"required": ["original_call_id"]
}
### Response Variables Configuration
Extract values from the API response and save them as dynamic variables for use later in the conversation . For example, you can extract a user's name from the response and reference it later using {{user_name}} .
Example response body:
json
{
"properties": {
"user": {
"name": "John Doe",
"age": 26
}
}
}AI Evy
09/05/2025, 12:41 AMAI Evy
09/05/2025, 12:41 AMcall_id [(3) ]() . This could serve as your linking identifier.
### Request & Response Specification
Retell will send requests to your endpoint with the following spec [(1) ]() :
Request:
- **Header**: `X-Retell-Signature`: encrypted request body using your secret key
- **Content-Type**: application/json
- **Body**: Contains name, call, and args fields
Response: Should have status code 200-299 to indicate success . Response can be in various formats (string, buffer, JSON object, blob) and will be converted to string before sending to LLM .
### Verification Code
To verify requests are from Retell, check the X-Retell-Signature header :
javascript
import { Retell } from "retell-sdk";
this.app.post("/check-weather", async (req: Request, res: Response) => {
if (
!Retell.verify(
JSON.stringify(req.body) ,
process.env.RETELL_API_KEY,
req.headers["x-retell-signature"] as string,
)
) {
console.error("Invalid signature") ;
return;
}
const content = req.body;
if (content.args.city === "New York") {
return res.json("25f and sunny") ;
} else {
return res.json("20f and cloudy") ;
}
}) ;AI Evy
09/05/2025, 12:42 AMAI Evy
09/05/2025, 12:42 AMidriss28
09/09/2025, 11:57 PMAI Evy
09/09/2025, 11:57 PMAI Evy
09/09/2025, 11:57 PMallow_user_dtmf to true in your agent configuration [(1) ]() . Additionally, you can configure DTMF options with user_dtmf_options .
## Recent DTMF Features
The platform has added several DTMF-related capabilities [(3) ]() :
- **Listen to User Keypad Input (DTMF Capture) **: Allows callers to enter numbers using their keypad, improving accuracy for capturing long numbers that might be unclear through speech
- **DTMF (Navigate IVR) **: Guide voice agents through IVR systems with button presses (e.g., "Press 1 to reach support")
## Community Implementation Examples
Based on community discussions, users have successfully implemented language selection menus [(4) ]() [(5) ]() . For example, one user created an IVR node where users press buttons to select their language with specific configurations [(5) ]() :
- Press 1 for one language
- Press 2 for another language
- Press 3 for English
The system can be configured to handle single digit inputs immediately without requiring termination keys .
## Custom LLM Support
DTMF is also available for custom LLM implementations [(6) ]() , allowing you to receive pressed keys in your custom integration.
This functionality wouldAI Evy
09/09/2025, 11:57 PMAI Evy
09/09/2025, 11:57 PMAI Evy
09/09/2025, 11:57 PMidriss28
09/09/2025, 11:59 PMAI Evy
09/09/2025, 11:59 PMAI Evy
09/09/2025, 11:59 PMallow_user_dtmf to true in your agent configuration [(2) ]() . Additionally, configure the user_dtmf_options with these settings:
json
"user_dtmf_options": {
"digit_limit": 1,
"termination_key": "",
"timeout_ms": 2000
}AI Evy
09/10/2025, 12:00 AMuser pressed keypad digit: 1, or {{user_dtmf_input}} == "1"
- user pressed keypad digit: 2, or {{user_dtmf_input}} == "2"
- user pressed keypad digit: 3, or {{user_dtmf_input}} == "3"
## Step 7: Configure Target Nodes
Set up your target nodes for each language selection:
- Node for Dutch (digit 1)
- Node for French (digit 2)
- Node for English (digit 3)
## Additional Configuration Notes
The DTMF functionality includes enhanced features [(4) ]() :
- **Listen to User Keypad Input**: Allows callers to enter numbers directly using their keyAI Evy
09/10/2025, 12:00 AMAI Evy
09/10/2025, 12:00 AMAI Evy
09/10/2025, 12:00 AMAI Evy
09/18/2025, 12:33 AMidriss28
09/18/2025, 12:33 AMAI Evy
09/18/2025, 12:33 AMAI Evy
09/18/2025, 12:33 AMAI Evy
09/18/2025, 12:33 AMverify_user function.”) [(2) ]() .
- For advanced scenarios, [Custom LLM Best Practices]() suggests keeping prompts concise, using lower temperature for accuracy in function calling, and combining internal states with different prompts and functions at different stages [(3) ]() .
You can find these best practice guides here:
- [Prompt Engineering Guide]()
- [MCP Function Calling Guide]()
- [Custom LLM Best Practices]()AI Evy
09/30/2025, 7:32 PMidriss28
09/30/2025, 7:32 PMAI Evy
09/30/2025, 7:32 PMAI Evy
09/30/2025, 7:32 PMAI Evy
09/30/2025, 7:32 PM