https://retellai.com/?utm_source=discord&utm_medium=seo logo
How do I use inbound webhook dynamic variables my ...
# ❓・ai-evy-support
m
@AI Evy How do I use inbound webhook dynamic variables my ai agent is unable to use them
a
Thanks for tagging me @minus.ace. I'll look through relevant sources and get back to you shortly.
### Answer To use inbound webhook dynamic variables, your webhook must return a JSON response with a successful status code (2xx) with fields grouped under
call_inbound
[(1) ]() . The
dynamic_variables
field should be included in this response . Here's the correct format for your webhook response:
Copy code
json
{
  "call_inbound": {
    "dynamic_variables": {
      "customer_name": "John Smith",
      "product_name": "Premium Plan",
      "account_status": "active"
    }
  }
}
Important: All values in dynamic variables must be strings [(2) ]() . Numbers, booleans, or other data types are not supported . Common issues that prevent dynamic variables from working: 1. Invalid response format - Ensure your response is grouped under
call_inbound
and returns a 2xx status code [(1) ]() 2. Non-string values - All dynamic variable values must be strings [(2) ]() 3. Variables not populated - Make sure the variables contain actual values, not empty strings or placeholders [(3) ]() 4. Webhook timeout - The webhook has a 10-second timeout [(1) ]() To troubleshoot, check your call's Data tab in the call history to see if the dynamic variables were received [(3) ]() . You can also review the detailed logs to see if there are any webhook errors . Note: The
inbound_dynamic_variables_webhook_url
inside the Create Retell LLM API has been deprecated and replaced by
inbound_webhook_url
inside the phone number configuration [(4) ]() .
​ To learn more, see the sources I considered: [[1] Inbound webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] agent not receiving dynamic variables from inbound webhook response](https://discord.com/channels/1186424376300679209/1394015802402930778) [[4] Deprecating on 5/30/2025](https://docs.retellai.com/deprecation-notice/5-30) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.