vaughan_54004
04/08/2025, 12:26 AMAI Evy
04/08/2025, 12:26 AMAI Evy
04/08/2025, 12:26 AMjson
{
"metadata": {
"random_id": "12345"
}
}
2. For inbound calls, you can set metadata through the inbound call webhook response:
json
{
"call_inbound": {
"metadata": {
"random_id": "12345"
}
}
}
The metadata field will appear in webhook events that are triggered during the call lifecycle [(3)]() . You can verify this in webhook event payloads where metadata is included in the call object.AI Evy
04/08/2025, 12:26 AMvaughan_54004
04/08/2025, 12:28 AMAI Evy
04/08/2025, 12:28 AMAI Evy
04/08/2025, 12:28 AMAI Evy
04/08/2025, 12:28 AMjson
"Hello {{user_name}}, I understand you're interested in {{product_name}}. How can I help you today?"
[(1)]()
You can use dynamic variables in several places:
- prompt
- begin message
- 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)
To test your dynamic variables:
1. Add them to your prompts using the {{variable}} syntax
2. Test them using the web interface before deploying
3. For production implementation, set your variables in the retell_llm_dynamic_variables field when making calls
Note: If a dynamic variable is not assigned a value, it will remain unchanged in the output (e.g., "Hello {{user_name}}" would appear exactly like that if user_name is not set)AI Evy
04/08/2025, 12:28 AMvaughan_54004
04/08/2025, 12:29 AMAI Evy
04/08/2025, 12:29 AMAI Evy
04/08/2025, 12:29 AMAI Evy
04/08/2025, 12:29 AMretell_llm_dynamic_variables [(2)]() , but doesn't specifically address accessing metadata fields.
I recommend:
1. Contact Retell AI support for clarification on accessing metadata fields
2. Consider moving the metadata fields you need to access in your prompt to the retell_llm_dynamic_variables field instead, which is explicitly supported
Would you like me to provide a general approach based on the documented dynamic variables functionality?AI Evy
04/08/2025, 12:29 AM