https://retellai.com/?utm_source=discord&utm_medium=seo logo
Dynamic Variable not setting
# ❓・bug-report
t
Call# call_ca76fd4490a3b1bbf0746647fbc the webhook is returning 2 variables that are not getting set. (from the GHL appointment setting formula) The packet comes back with the data and no errors, but alos no variable set. 2025-05-07 13:53:57.592 call_ca76fd4490a3b1bbf0746647fbc info: triggering inbound call webhook 2025-05-07 13:53:59.889 call_ca76fd4490a3b1bbf0746647fbc info: inbound call webhook response: { call_inbound: { agent_id: 'agent_ecc86e83ec3428540199784c51', agent_version: 3, from_number: '+14133207529', to_number: '+14134981331' }, user_phone: '+14133207529', right_now: '2025-05-07T09:53:58.269-04:00' } 2025-05-07 13:54:00.209 call_ca76fd4490a3b1bbf0746647fbc info: Starting call: call_ca76fd4490a3b1bbf0746647fbc 2025-05-07 13:54:17.056 call_ca76fd4490a3b1bbf0746647fbc info: Ending call: call_ca76fd4490a3b1bbf0746647fbc Dynamic Variables No Dynamic Variables Metadata No Metadata
s
Hi, @tattoonow thank you for reaching us. Map Variables Explicitly – Modify your webhook response to include a "variables" object: json { "variables": { "agent_id": "{{call_inbound.agent_id}}", "caller_number": "{{call_inbound.from_number}}" } } Test in Postman/Webhook.site – Confirm GHL receives variables in the correct format. Check GHL Workflow – Ensure: Webhook trigger is "Inbound Call". "Set Dynamic Variable" step uses exact names (e.g., agent_id). Still stuck? Share screenshots of your GHL workflow + webhook config.