zubeyrahmed
09/28/2025, 7:11 AMAI Evy
09/28/2025, 7:12 AMAI Evy
09/28/2025, 7:12 AMAI Evy
09/28/2025, 7:12 AMAI Evy
09/28/2025, 7:12 AMzubeyrahmed
09/28/2025, 7:14 AMzubeyrahmed
09/28/2025, 7:15 AMAI Evy
09/28/2025, 7:15 AMAI Evy
09/28/2025, 7:15 AMboosted_keywords to include menu items and restaurant-specific terms [(3) ]() [(4) ]() [(5) ]() [(6) ]()
- language setting to match your target language
- stt_mode set to "fast" or accuracy mode based on your needs [(3) ]() [(5) ](AI Evy
09/28/2025, 7:15 AMAI Evy
09/28/2025, 7:15 AMAI Evy
09/28/2025, 7:15 AMzubeyrahmed
09/28/2025, 8:12 AMAI Evy
09/28/2025, 8:12 AMAI Evy
09/28/2025, 8:12 AM{{user_number}} dynamic variable [(1) ]() .
When Retell receives a call, the system automatically provides:
- The caller's phone number via {{user_number}}
- Call metadata including from_number and to_number [(2) ]() [(3) ]() [(4) ]()
For example, in custom functions, Retell passes call information in this structure [(4) ]() :
json
{
"call": {
"call_type": "phone_call",
"from_number": "+12137771234",
"to_number": "+12137771235",
"direction": "inbound",
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"call_status": "registered",
"metadata": {},
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
}
}
}AI Evy
09/28/2025, 8:12 AMretell_llm_dynamic_variables if you have the information beforehand [(2) ]() [(3) ]()
The {{user_number}} variable can be used in your prompts to reference the caller's phone number throughout the conversation [(1) ]() .AI Evy
09/28/2025, 8:12 AMAI Evy
09/28/2025, 8:12 AMzubeyrahmed
09/28/2025, 5:54 PMAI Evy
09/28/2025, 5:54 PMAI Evy
09/28/2025, 5:54 PMUser said something about booking a meeting
- User said something about cancelling a meeting
- User claims to be over 18
- User said they lived in New York
Equation conditions :
- {{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}}
- {{name}} existsAI Evy
09/28/2025, 5:54 PMAI Evy
09/28/2025, 5:54 PMAI Evy
09/28/2025, 5:54 PMzubeyrahmed
09/28/2025, 5:58 PMzubeyrahmed
09/28/2025, 5:58 PMAI Evy
09/28/2025, 5:59 PMAI Evy
09/28/2025, 5:59 PMAgent asked about booking preferences and user responded with a specific date
- After agent explained pricing, user agreed to proceed
- User responded to question of their age
However, the documentation recommends writing conditions to be clear and not reference the instruction too much . It's better to focus on what actually happened in the conversation rather than relying heavily on internal prompts.
For function nodes specifically, you can also reference function results in your transition conditions, such as CRM lookup returned successful result .
The key is that transition conditions evaluate the entire conversation context, including both what the user said and what the agent said, to determine if the edge should trigger.AI Evy
09/28/2025, 5:59 PMAI Evy
09/28/2025, 5:59 PM