https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am so confused why there is a appointment_availa...
# ❓・ai-evy-support
i
@AI Evy I am so confused why there is a appointment_available_ts variable in here when I don't have that in my function. I'm hoping to get the info from the webhook response: 2025-08-14 15:31:52.593 call_df654030a925a275ae8de7e55dd info: inbound call webhook response: { 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' } } } makes no sense to me. can you help out? https://cdn.discordapp.com/attachments/1302816169367044149/1405576169650130944/image.png?ex=689f5451&is=689e02d1&hm=74731f6e8769d33cc76added4fa54ca173dd7d43733195a7fcbf0fc0124ad464& https://cdn.discordapp.com/attachments/1302816169367044149/1405576170086334538/image.png?ex=689f5451&is=689e02d1&hm=65128b262ae33ffa26bc833d55fdb780c16a9e0b424c346e0a27c5b804e63968&
a
Thanks for tagging me @idriss28. I'll look through relevant sources and get back to you shortly.
### Answer Based on your webhook response log, it looks like your inbound webhook is working correctly and returning the dynamic variables in the proper format [(1) ]() . The response structure you're showing follows the correct format for inbound call webhooks :
Copy code
json
{
  "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.
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy can you suggest where I look because I have been looking everywhere and I can't see anywhere this is popping up
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Here are the specific places you should check for where the
appointment_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 four
variables you expect, the
appointment_available_ts
variable is likely coming from one of these agent-level configurations rather than your webhook.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] SMS Node](https://docs.retellai.com/build/conversation-flow/sms-node) [[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.
i
@User for context this is a conversation flow agent
@AI Evy for context this is a conversation flow agent
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Thanks for the context about using a conversation flow agent. For conversation flow agents specifically, here are the key places to check for the
appointment_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:
Copy code
json
"default_dynamic_variables": {
  "company_name": "Retell Inc",
  "support_hours": "9 AM - 5 PM"
}
Check if
appointment_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.
​ To learn more, see the sources I considered: [[1] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[2] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[3] Dynamic variables populating in multi-prompt agent but not conversation flow](https://discord.com/channels/1186424376300679209/1352134741377417329) [[4] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy where specifically can I look for the default dynamic variables in the retell interface? pls explain like I'm a highschooler https://cdn.discordapp.com/attachments/1405576170363420804/1405609755267043429/image.png?ex=689f7398&is=689e2218&hm=fb00dd1897352bc043c84352dbba01bb2af93ad89b23a588df9f84ea75a2896c&
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Based on the available documentation, I can explain where to find default dynamic variables, but I need to clarify that the sources don't provide specific UI navigation instructions for the Retell interface [(1) ]() [(2) ]() [(3) ]() . Here's what I can tell you about default dynamic variables: ## For Conversation Flow Agents Default dynamic variables are configured at the conversation flow level and can be set in the
default_dynamic_variables
field [(2) ]() . This would look like:
Copy code
json
"default_dynamic_variables": {
  "company_name": "Retell Inc",
  "support_hours": "9 AM - 5 PM"
}
## For Regular Agents You can configure agent-level default dynamic variables that serve as fallback values and will only be used when specific variables aren't included in the call request [(1) ]() . ## What Default Variables Do Default variables serve as a fallback and will only be used when specific variables aren't included in the call request . They're perfect for setting company-wide information that should be available in every conversation. Unfortunately, the documentation doesn't provide step-by-step UI instructions for accessing these settings in the Retell dashboard. The sources focus on API configuration rather than interface navigation. For specific UI guidance on where to find these settings in your Retell dashboard, I'd recommend: Visit [Contact Sales]() or [) for direct support on interface navigation. Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[3] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy is 'if {{source}} is "GHL"' a good prompt for a path condition in the agent edge when making a multi-prompt agent?
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer For multi-prompt agents, your transition condition
if {{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:
Copy code
{{source}} == "GHL"
The documentation shows that equation conditions use specific operators like
==
for string comparisons . Here are the correct formats for equation conditions:
Copy code
- {{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) ]() .
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Can you use dynamic variables in a multi-prompt agent's edge transition condition?](https://discord.com/channels/1186424376300679209/1313128147025264670) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy are we able add formatting to the Post Call Data Retrieval when set as text? I'm planning to add AI Call History Notes and add it as a custom field in GHL every post call and use it everytime they call to have contextual awareness of past conversations. how do I achieve that?
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Based on the documentation, yes, you can add formatting to Post Call Data Retrieval when set as text type [(1) ]() . For text analysis, you can provide a Format Example in your configuration to guide how the extracted information should be structured [(2) ]() . Here's how to set up formatted text analysis for your AI Call History Notes: ## Configure Text Analysis with Format Example When creating your text analysis configuration : - **Name**:
ai_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) ]() :
Copy code
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": {}
}
Your custom text analysis will appear in the
custom_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.
​ To learn more, see the sources I considered: [[1] Post Call Analysis Overview](https://docs.retellai.com/features/post-call-analysis-overview) [[2] Define the information you want to extract](https://docs.retellai.com/features/post-call-analysis-create) [[3] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[4] Get Call](https://docs.retellai.com/api-references/get-call) [[5] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @idriss28. I'll get back to you soon.
i
@AI Evy how do you set the AI to have a clock so it can reference current date and time especially when booking appointments
a
### Answer To provide your AI agent with current date and time awareness for appointment booking, you should use Retell AI's built-in dynamic variables for time references [(1) ]() . ## Built-in Time Dynamic Variables Retell AI provides several time-related dynamic variables that you can use in your prompts : -
{{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) ]() :
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Discord message from @nazimali_83215 on 2025-03-05](https://discord.com/channels/1186424376300679209/1186462578310910112/1346895139725115402) [[3] Date Time issue](https://discord.com/channels/1186424376300679209/1365666912557858828) ​
Copy code
"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.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy does retell ai have a demo link just like vapi?
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Based on the available sources, I can see that Retell AI has open-sourced several demo repositories that you can use to test their functionality [(1) ]() [(2) ]() . These include: Backend Demos: - Node.js demo: [) - Python demo: [) Frontend Demos: - React demo using SDK: [) - React demo using native JS: [) The sources also mention that Retell AI has updated their documentation at [) to help with integration , and you can find more information about these open-source demo repositories in their documentation . However, the sources don't specifically mention a direct demo link comparable to what Vapi offers. The demos appear to be code repositories that you need to set up and run yourself rather than a live web demo. For direct access to a live demo or to contact sales about demonstration options: Visit [Contact Sales]() or [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[2] More Affordable Pricing Tier And SDK Updates](https://www.retellai.com/changelog/more-affordable-pricing-tier-and-sdk-updates) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy no what I mean is that when I create an agent, I'd be able to send a demo link of that agent to someone so theycould test it.
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer ### Answer I don't see specific information about creating shareable demo links for individual agents in the available documentation. The sources focus on open-source demo repositories and development integration rather than agent-specific demo links [(1) ]() [(2) ]() . The documentation mentions that Retell AI offers a free trial [(3) ]() , which allows users to experiment with the platform and build basic AI agents to assess the potential value for their specific use cases . However, this appears to be for account-level access rather than individual agent demo links. For specific guidance on creating shareable demo links for your agents or to inquire about this functionality: Visit [Contact Sales]() or [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) [[3] Building AI Agents: The Ultimate Guide for Non-Programmers | Retell AI](https://www.retellai.com/blog/how-to-build-ai-agents-for-beginners) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy I want to make a custom variable in retell to store the booking appointment date and time and have make use that post call to set a booking appointment workflow to ahve it schedule in GHL.
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer ### Answer To create a custom variable for storing appointment booking data and trigger GHL workflows post-call, you can use a combination of dynamic variables and post-call analysis [(1) ]() [(2) ]() . ## Method 1: Using Post Call Analysis (Recommended) Create a custom post-call analysis field to extract the appointment date and time [(2) ]() : **Analysis Type**: Text **Name**:
appointment_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) ]() :
Copy code
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 :
Copy code
json
{
 "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) ]() .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Post Call Analysis Overview](https://docs.retellai.com/features/post-call-analysis-overview) [[3] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy does this make sense? this is how I would store the info where make will parse and send to ghl as the appointment booking thru api https://cdn.discordapp.com/attachments/1405576170363420804/1406002940157890632/image.png?ex=68a0e1c7&is=689f9047&hm=c4acf32f5787d0118a404486fa5946cb25610a74e2b4395b96489380208e7d25&
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Your approach makes perfect sense for storing appointment booking information that Make.com can parse and send to GHL [(1) ]() . Here's how your workflow aligns with Retell AI's capabilities: ## Post Call Analysis for Appointment Data Using post-call analysis to extract structured appointment information is the recommended approach . You can configure a Text analysis type to capture the appointment details in a format that Make.com can easily parse . The extracted data will be available in the
call_analysis
object after the call ends [(2) ]() :
Copy code
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 . ## 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.
​ To learn more, see the sources I considered: [[1] Post Call Analysis Overview](https://docs.retellai.com/features/post-call-analysis-overview) [[2] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Based on the documentation, yes, you need to use double curly braces when referencing dynamic variables in path conditions [(1) ]() . ## Correct Format for Dynamic Variables in Conditions For equation-based transition conditions, dynamic variables must be enclosed in double curly braces :
Copy code
- {{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) ]() :
Copy code
{{user_name}} contains {{
This would evaluate to true if the variable is not set .
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @idriss28. I'll get back to you soon.
i
@AI Evy to follow up, I'm having trouble geting the agent to follow the pathing conditions. the condition is a variable that is called via inbound webhook
a
### Answer Based on the thread history and your follow-up question, there are several potential issues when using dynamic variables from inbound webhooks in path conditions. Let me address the common problems: ## Inbound Webhook Dynamic Variables Setup First, ensure your inbound webhook response includes the dynamic variables in the correct format [(1) ]() :
Copy code
json
{
  "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) ]() :
Copy code
{{source}} == "GHL"
## Common Issues with Inbound Webhook Variables Based on Discord community discussions, there's a known issue where dynamic variables from inbound webhooks may not always work reliably in path conditions [(3) ]() . One user reported that the agent only recognized the correct variable value when it was included in the welcome message, but failed when removed from the greeting . ## Troubleshooting Steps 1. **Test variable reception**: Add your variable to the welcome message temporarily to verify the webhook is sending the correct data 2. **Check JSON formatting**: Ensure your webhook response JSON is properly formatted without syntax errors [(4) ]() 3. **Verify in call data**: Check the Data tab in Call History to confirm the dynamic variables are being received 4. **Consider prompt-based approach**: If path conditions continue to fail, you might need to handle the logic within your prompt instead of using conversation flow transitions [(3) ]() The documentation shows that dynamic variables work in various contexts [(2) ]() , but the Discord discussions suggest there may be specific limitations with inbound webhook variables in conversation flow conditions [(3) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy how do I call thses variables that were sent from an inbound webhook? do I just call them normally or do I have to use a fucntion to use these data? https://cdn.discordapp.com/attachments/1405576170363420804/1408138262786216066/image.png?ex=68a8a673&is=68a754f3&hm=5c4b7a52877f715161fbcc2f2b3700b85fc7ceb1699af7bbcd1b40d9c1448973&
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer ### Answer You can call dynamic variables sent from an inbound webhook normally using the standard double curly brace syntax - no special function is required [(1) ]() . ## How to Use Inbound Webhook Variables Once your inbound webhook sends dynamic variables in the correct format [(2) ]() :
Copy code
json
{
  "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) ]() :
Copy code
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) ]() :
Copy code
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 .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[3] Dynamic Variables](https://discord.com/channels/1186424376300679209/1356680357084135558) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
so right now, I'm having trouble getting multi-prompt agents follow their path condition using variables. the main feature for the agent is to gather info from inbound webhook call where the agent get's a bunch of info as variables from the webhook. the idea then is to have the agent use the variables as Path Conditions. for example: an important variable the agent will get to have from the inbound webhook call is {{source}}. if {{source}} = GHL, then agent asks specific questions related to that. if {{source}} = Company API, different path. I tried doing this but multiple attempts showed that it doesn't go down the specific path I needed it to go. It gets stuck in the intro. how do you suppose I go about this?
@AI Evy so right now, I'm having trouble getting multi-prompt agents follow their path condition using variables. the main feature for the agent is to gather info from inbound webhook call where the agent get's a bunch of info as variables from the webhook. the idea then is to have the agent use the variables as Path Conditions. for example: an important variable the agent will get to have from the inbound webhook call is {{source}}. if {{source}} = GHL, then agent asks specific questions related to that. if {{source}} = Company API, different path. I tried doing this but multiple attempts showed that it doesn't go down the specific path I needed it to go. It gets stuck in the intro. how do you suppose I go about this?
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Based on your issue with multi-prompt agents not following path conditions with inbound webhook variables, there are several potential solutions: ## Root Cause: Known Issue with Inbound Webhook Variables Based on community discussions, there's a documented issue where dynamic variables from inbound webhooks may not work reliably in conversation flow path conditions [(1) ]() . One user reported that their agent only recognized the correct variable value when it was included in the welcome message, but failed when the variable was removed from the greeting . ## Solution 1: Use Single Prompt Instead of Multi-Prompt Since you're experiencing issues with path conditions in multi-prompt agents, consider switching to a single prompt approach [(2) ]() . You can handle the conditional logic directly in your prompt:
Copy code
The 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) ]() :
Copy code
json
{
  "first_name": "Reece", 
  "phone_number": "+18005551212"
}
The webhook should return a JSON object with key-value pairs that will be mapped to
{{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) ]() :
Copy code
{{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.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://discord.com/channels/1186424376300679209/1340177140204699649) [[2] Prompt Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[3] Discord message from @fyodor2572 on 2025-01-13](https://discord.com/channels/1186424376300679209/1186462578310910112/1328501089112424508) [[4] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy how can I carry over data from transferer to transferee? scenario is that agent 1 uses an inbound webhook call to get info via make.com. when the call starts that agent already has its variable fields filled with stuff from the inbound call webhook. but when the agent detects that the user is spanish, it will transfer the call to spanish agent. how can I send that info along?
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Based on the available sources, I don't see specific documentation about carrying over dynamic variables when transferring calls between agents in Retell AI. ## Transfer Call Functionality The transfer call feature allows you to transfer calls to another human agent or another AI agent [(1) ]() . You can configure the transfer destination as either a static number (e.164 or SIP URI) or the value of a dynamic variable . For transfer configuration, you can use dynamic variables in the transfer call phone number field [(2) ]() . Dynamic variables can be used in transfer call phone numbers and warm transfer instructions . ## Dynamic Variables in Transfer Context Dynamic variables work in various contexts including : - Prompts - Begin message - Tool configurations (Custom function URLs, Tool descriptions, Property descriptions) - Call handling (Voicemail prompts and messages, Transfer call phone numbers, Warm transfer instructions) However, the sources don't specifically address how to pass the original agent's dynamic variables (received from the inbound webhook) to the transferred agent. ## Warm Transfer Configuration For warm transfers, you can configure settings including warm transfer instructions [(1) ]() . This might be where you could potentially include variable information, but the documentation doesn't specify how to pass dynamic variables between agents. For specific guidance on carrying over inbound webhook dynamic variables during agent-to-agent transfers: Visit [Contact Sales]() or [) Would you like a general answer based on my knowledge instead?
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] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Custom SIP headers could be a promising solution for your use case! Let me explain what they do and how they might help with carrying over data during transfers. ## What Custom SIP Headers Do Custom SIP headers are used heavily in telephony to pass information around between different systems [(1) ]() . In Retell AI, they're available for phone calls and support receiving SIP headers for inbound calls, sending SIP headers for outbound calls, and when initiating transfers . ## How Custom SIP Headers Work for Transfers For call transfers, you can add custom SIP headers that must start with
X-
. 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:
Copy code
json
{
 "X-customer-name": "{{customer_name}}",
 "X-source": "{{source}}",
 "X-language": "spanish"
}
## Transfer Configuration with Custom SIP Headers When configuring call transfers, you can add custom SIP headers in the transfer settings [(2) ]() . All header names must start with
X-
. 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.
​ To learn more, see the sources I considered: [[1] Set & parse custom SIP headers](https://docs.retellai.com/build/telephony/sip-headers) [[2] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy so can I or can I not? I'm using twilio
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Unfortunately, you cannot use custom SIP headers to carry over data during transfers when using Twilio [(1) ]() . The documentation is clear about this limitation: for cold transfer with transferee number, Retell AI uses SIP REFER to transfer the call . 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 . ## Alternative Solutions Based on community discussions, users have found workarounds for this exact issue [(2) ]() : 1. Use warm transfers instead of cold transfers - This may work differently with SIP headers 2. Switch to a different telephony provider that supports custom SIP headers in REFER requests 3. Use custom telephony integration where you have more control over the transfer process ## Twilio-Specific Limitation The Discord community confirms this is a known limitation specifically with Twilio [(3) ]() . For Twilio users, the transfer functionality requires different configuration, and custom SIP headers don't work as expected for transferring data between agents . Your use case of transferring webhook data from the English agent to the Spanish agent would require a different approach when using Twilio as your telephony provider.
​ To learn more, see the sources I considered: [[1] Set & parse custom SIP headers](https://docs.retellai.com/build/telephony/sip-headers) [[2] Why can't we pass metadata or dynamic variables to a transfered call ?](https://discord.com/channels/1186424376300679209/1388693750213116004) [[3] Discord message from @sohithbandari on 2025-08-15](https://discord.com/channels/1186424376300679209/1186462578310910112/1405960109015699629) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy what if I don't use cold transfer. what if I use warm transfer?
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Based on the documentation, the limitation with Twilio and custom SIP headers specifically applies to cold transfers with transferee numbers [(1) ]() . The documentation states that "for cold transfer with transferee number, it will use SIP REFER to transfer the call. 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" . However, the documentation doesn't explicitly state whether warm transfers have the same limitation with custom SIP headers when using Twilio [(1) ]() [(2) ]() . For warm transfers, you can configure custom SIP headers that must start with
X-
[(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, th
e documentation doesn't provide definitive confirmation about whether Twilio honors custom SIP headers for warm transfers. For specific guidance on whether warm transfers support custom SIP headers with Twilio: Visit [Contact Sales]() or [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Set & parse custom SIP headers](https://docs.retellai.com/build/telephony/sip-headers) [[2] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[3] Call Transfer Node](https://docs.retellai.com/build/conversation-flow/call-transfer-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy this is the possible variables that I would be needing to get them to have: ## Context - Company: Blue Navy Recovery - Professional unclaimed property recovery specialists - Current Time: {{current_time}} - Current Date: {{current_date}} - Phone: {{phone}} - Contact Name: {{contact_name}} - Source: {{source}} - Opportunity Status: {{opportunity_status}} - Claim Status: {{claim_status}} - Property Details: {{property_details}} - Pipeline Name: {{pipeline_name}} - Email: {{email}} - Booking Slots: {{booking_slot}} - AI Call History: {{ai_call_history}} ### Available Data Fields GHL Fields: - Claims: {{claims}} - Case Details: {{case_details}} - Opener: {{opener}} - Notes: {{notes}} - Owner Name: {{owner_name}} - Owner Deceased: {{owner_deceased}} - Total Claim Balance: {{total_claim_balance}} - Highest Claim: {{highest_claim}} - Holder Name: {{holder_name}} - Property Type: {{property_type}} - Name of Securities: {{name_of_securities}} - Address Reported: {{address_reported}} - Property ID: {{property_id}} - Unclaimed Property State: {{unclaimed_property_state}} - Date Reported: {{date_reported}} - Number of Claims: {{number_of_claims}} - Number of Shares: {{number_of_shares}} - Phone Burner ID: {{phone_burner_id}} - Number of Owners: {{number_of_owners}} - Claim Status: {{claim_status}} - Claim ID: {{claim_id}} Company API Fields: - Address City: {{address.city}} - Address State: {{address.state}} - Address Street: {{address.street}} - Last Activity Date: {{dates.last_activity}} - Report Year: {{dates.report_year}} - Holder Name: {{holder_name}} - Owner Name: {{owner_name}} - Property Amount: {{property_amount}} - Property Type: {{property_type}} - Shares Reported: {{shares_reported}} - State Reported: {{state_reported}} - Total Amount: {{total_amount}} - Total Records: {{total_records}}
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Based on your extensive list of variables, I can see you're planning to pass a significant amount of data through your inbound webhook to the Spanish agent. Here's how to handle this with the transfer limitations you're facing: ## Variable Format Considerations All your dynamic variables look properly formatted with double curly braces, which is correct for Retell AI [(1) ]() . You can use these variables in prompts, begin messages, tool configurations, and other supported locations . ## Transfer Challenge with Your Variable Set Given that you're using Twilio and custom SIP headers won't work for cold transfers, and the uncertainty around warm transfers, you have a substantial challenge. Your variable list includes over 30 different data points that need to be transferred from the English agent to the Spanish agent. ## Alternative Solutions for Your Use Case Since traditional transfer methods may not preserve your extensive variable set, consider these approaches: ### Option 1: Single Agent with Language Detection Instead of transferring between agents, use a single multi-prompt agent [(2) ]() that can handle both English and Spanish. Structure it with language-specific states: - Initial state detects language preference using your
{{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) ](http
s://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) to create a structured path that handles language detection early and branches accordingly, keeping all variables within the same agent session. ## Variable Organization Recommendation Your variables are well-organized by source (GHL vs Company API) . Consider using equation-based transition conditions [(4) ]() to route based on your
{{source}}
variable:
Copy code
{{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.
​ 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] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[4] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy can I call use a function in the spanish agent to call data from the previous agent using an API endpoint?
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer ### Answer Yes, you can use a custom function in the Spanish agent to call data from the previous agent using an API endpoint! This would be an effective workaround for the transfer data limitation you're facing with Twilio. ## How to Set Up the Custom Function You can create a custom function that retrieves the stored data from your external system [(1) ]() . Here's how to configure it: ### 1. Configure Function Details - **Name**:
get_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 :
Copy code
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:
Copy code
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:
Copy code
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") ;
  }
}) ;
This approach would allow your Spanish agent to retrieve all the webhook variables from the original English agent call through your external API system.
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy No the endpoint should be related to the previous agent. can I use an endpoint in retell to call information already stored as variables inthe previous agent?
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer ### Answer No, you cannot use a Retell AI endpoint to call information already stored as variables in the previous agent. Retell AI doesn't provide internal APIs to access dynamic variables from one agent to another. ## What Custom Functions Can Access Custom functions can only call external endpoints that you control [(1) ]() . When Retell sends a request to your custom function, it includes the
call
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 [
ithub.com/RetellAI/) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[3] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy can you dive deeper on this? "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."
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer ### Answer Here's a detailed breakdown of how to implement the external storage and retrieval solution for transferring data between agents: ## Step 1: Store Data During First Agent Session ### Using Custom Functions to Store Data During the English agent's session, create a custom function that stores all your webhook variables to an external system [(1) ]() . Configure this function to be called early in the conversation: Function Configuration: - **Name**:
store_call_data
- **Description**: "Store all webhook variables for potential transfer" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook or database API Parameters Schema:
Copy code
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) "
    }
  }
}
### What Gets Stored Your storage endpoint should receive and save all the dynamic variables you listed: - Basic context (phone, contact_name, source, etc.) - GHL-specific fields (claims, case_details, opener, etc.) - Company API fields (address.city, property_amount, etc.) ## Step 2: Retrieve Data in Spanish Agent ### Configure Retrieval Custom Function In your Spanish agent, create a custom function to retrieve the stored data [(2) ]() : Function Details: - **Name**:
get_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:
Copy code
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:
Copy code
json
{
  "properties": {
    "user": {
      "name": "John Doe",
      "age": 26
    }
  }
}
## Step 4: Make.com Integration Flow Based on your existing Make.com setup, you'd create two scenarios: 1. **Storage Scenario**: Receives data from English agent's custom function and stores it 2. **Retrieval Scenario**: Receives requests from Spanish agent's custom function and returns stored data This approach bypasses the Twilio transfer limitations entirely by using external storage as a bridge between your agents.
## Step 3: Implementation Details ### Call ID as Identifier The key challenge is getting a unique identifier to link the stored data with the retrieval request. When creating phone calls, Retell generates a unique
call_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 :
Copy code
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") ;
  }
}) ;
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[3] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy hey does retell have the ability to detect dial tone? I mean press 1 for english or press 2 for spanish type of funtionality?
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer Yes, Retell AI has DTMF (Dual-Tone Multi-Frequency) functionality that allows users to press keys for language selection and IVR navigation [(1) ]() [(2) ]() . ## DTMF Configuration You can enable DTMF input by setting
allow_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 would
work perfectly for your "press 1 for English or press 2 for Spanish" use case, especially given your earlier discussion about language-based agent routing.
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) [[3] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[4] IVR Navigation Help](https://discord.com/channels/1186424376300679209/1288834538214264842) [[5] User dtmf input issue / IIssue with IVR Node Keypress Handling](https://discord.com/channels/1186424376300679209/1397608688734175293) [[6] DTMF - Custom LLM](https://discord.com/channels/1186424376300679209/1382952757803221002) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy step by step giude on how to enable this and how to set this up in my conversation flow agent
a
Thanks for the follow-up, @idriss28. I'll get back to you soon.
### Answer ### Step-by-Step Guide to Enable DTMF in Conversation Flow Agent ## Step 1: Configure Global Settings First, access your agent's global settings by clicking on the empty canvas and clicking the settings option [(1) ]() . In the global settings, you need to enable DTMF functionality. ## Step 2: Configure Call Settings In the global settings, navigate to the "Configure Call Settings" section . Here you'll find call operation related settings where you can configure DTMF options. ## Step 3: Enable DTMF in Agent Configuration You need to set
allow_user_dtmf
to
true
in your agent configuration [(2) ]() . Additionally, configure the
user_dtmf_options
with these settings:
Copy code
json
"user_dtmf_options": {
  "digit_limit": 1,
  "termination_key": "",
  "timeout_ms": 2000
}
[(3) ]() This configuration ensures any single digit is read immediately and triggers a transition without needing termination . ## Step 4: Create Your Language Selection Node Create a new node in your conversation flow with the following configuration : Node Instructions: - This node functions as an IVR language menu - The agent must behave like a pre-recorded IVR — not a conversational assistant - It must only say the following in order, and nothing else, no matter what the caller says : 1. "Voor Nederlands, toets één." 2. "Pour le français, appuyez deux." 3. "For English, press three." Agent Instructions: - Do not react to caller input - Do not transcribe, interpret, or engage in conversation - If no valid input, repeat all three lines in order - Stick strictly to this script. No paraphrasing ## Step 5: Configure Node Settings Make sure your node is configured to allow barge in . This allows the system to stop speaking when a digit is pressed. Avoid using "Skip Response" as this delays recognition until the end of playback . ## Step 6: Set Up Transition Conditions Create transition conditions based on the keypad input. Use conditions like: -
user 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 key
pad, improving accuracy and reducing transcription errors - The platform accurately interprets the DTMF tone decoder output, even if the caller's connection is poor Since conversation flow agents already natively support DTMF input, no additional settings need to be modified for this feature to work . The AI can seamlessly capture and process keypad inputs while maintaining a smooth conversation flow .
​ To learn more, see the sources I considered: [[1] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) [[3] User dtmf input issue / IIssue with IVR Node Keypress Handling](https://discord.com/channels/1186424376300679209/1397608688734175293) [[4] DTMF vs. Voice Recognition: When to Use Retell’s DTMF | Retell AI](https://www.retellai.com/blog/dtmf-vs-voice-recognition-when-to-use-retells-dual-tone) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @idriss28. I'll get back to you soon.
i
@AI Evy hello is there any docs found for best practices in making prompts with MCPs
a
​ To learn more, see the sources I considered: [[1] Prompt Engineering Guide](https://docs.retellai.com/build/prompt-engineering-guide) [[2] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) [[3] Custom LLM Best Practices](https://docs.retellai.com/integrate-llm/llm-best-practice) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Yes, there is official documentation on best practices for making prompts with MCPs and function calling in Retell AI. - The [Prompt Engineering Guide]() provides a recommended prompt structure, including clear sections for identity, style guardrails, response guidelines, task instructions, and objection handling. It emphasizes using concise, structured prompts and explicitly defining when and how tools (including MCP tools) should be called, with trigger words, sequences, and boundaries [(1) ]() . - The [MCP documentation]() specifically recommends that when integrating MCP tools, you should update your prompt to state exactly when the tool should be invoked (e.g., “When user states his name and phone number, please call tool
verify_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]()
Thanks for the follow-up, @idriss28. I'll get back to you soon.
i
@AI Evy when the AI agent is transferring the call, is it able to leave a voice mail?
a
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Retell AI agents have built-in voicemail detection and can be configured to either hang up or leave a message when a voicemail is detected [(1) ]() . However, when it comes to call transfers, the available documentation does not explicitly state that the agent can leave a voicemail during or after a transfer. Community discussions indicate that after a failed transfer, the agent may attempt to offer leaving a voicemail, but this behavior is not described as a guaranteed or standard feature in the official documentation [(2) ]() . If you need the agent to reliably leave a voicemail after transfer, this is not explicitly documented as supported.
​ To learn more, see the sources I considered: [[1] Handle voicemail](https://docs.retellai.com/build/handle-voicemail) [[2] Issue with Call Transfers](https://discord.com/channels/1186424376300679209/1388875773741498529) ​