dropsofsteel
04/14/2026, 12:08 PMAI Evy
04/14/2026, 12:08 PMAI Evy
04/14/2026, 12:08 PMjson
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"agent_version": 1,
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}
The from_number field contains the caller's phone number .
## Step 4: Query Your CRM and Return Dynamic Variables
Your webhook should query your CRM using the from_number, then return a JSON response with the CRM data as dynamic variables :
json
{
"call_inbound": {
"dynamic_variables": {
"customer_name": "John Doe",
"account_status": "active"
},
"metadata": {
"random_id": "12345"
}
}
}AI Evy
04/14/2026, 12:08 PM{{variable_name}} syntax [(3) ]() . For example:
"Hello {{customer_name}}, thanks for calling!"
The agent will wait for your webhook response (with a 10-second timeout) before connecting the call [(2) ]() . If the webhook doesn't respond successfully within 10 seconds, it will retry up to 3 times .
Important Notes:
- All dynamic variable values must be strings [(3) ]()
- The webhook must return a successful status code (2xx) [(2) ]()
- You can also override the agent ID or version in the webhook response if neededAI Evy
04/14/2026, 12:09 PMAI Evy
04/14/2026, 12:09 PM