https://retellai.com/?utm_source=discord&utm_medium=seo logo
hi i have a question how to reply to webhook and s...
# ❓・ai-evy-support
p
@AI Evy hi i have a question how to reply to webhook and set dynamic variable to it
a
Thanks for tagging me @phmedme. I'll look through relevant sources and get back to you shortly.
### Answer To reply to an inbound call webhook and set dynamic variables in Retell AI, your webhook endpoint should respond with a JSON object that includes the dynamic variables you want to set for the call. All variable values must be strings. For inbound calls, the response should look like this:
Copy code
json
{
  "call_inbound": {
    "dynamic_variables": {
      "your_variable_name": "your_value"
    }
  }
}
Make sure your endpoint returns this JSON with a 2xx status code within 10 seconds. The dynamic variables you set here will be available to the agent during the call [(1) ]() [(2) ]() .
​ 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
but the webhook i got is different its call started
@AI Evy
a
Thanks for the follow-up, @phmedme. I'll get back to you soon.
### Answer For Retell AI, you can only set dynamic variables for an inbound call by responding to the specific inbound call webhook event. If you receive a "call.started" webhook or another event after the call has already started, it is not possible to set or change dynamic variables at that point—dynamic variables must be provided in the response to the initial inbound call webhook before the call session is established [(1) ]() . Only string values are accepted for these variables . If you try to set dynamic variables in a response to a "call.started" webhook, they will not take effect for that call .
​ To learn more, see the sources I considered: [[1] 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.