https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do i set up a function that just saids extracg...
# ❓・ai-evy-support
s
@AI Evy how do i set up a function that just saids extracgted variables to a webhook after the call is finished
a
Thanks for tagging me @sognodamotore. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, you have a few approaches to send extracted variables to a webhook after a call finishes: Option 1: Use Call Webhooks You can set up webhooks to receive real-time updates when a call ends and is analyzed [(1) ]() . Retell supports
call.ended
and
call.analyzed
event types that POST data to your specified webhook URL . The
call.analyzed
webhook will include post-call analysis data automatically . Option 2: Store Variables in Metadata When creating outbound calls, you can pass data using the
metadata
parameter [(2) ]() [(3) ]() . This metadata gets stored with the call and should be included in webhook payloads [(2) ]() .
Copy code
json
{
  "from_number": "+14157774444",
  "to_number": "+12137774445",
  "metadata": {
    "customer_id": "cust_123",
    "record_id": "12345"
  }
}
Option 3: Use Dynamic Variables For outbound calls, you can pass
retell_llm_dynamic_variables
when creating the call . These key-value strings get injected into prompts and tools .
Copy code
json
{
  "retell_llm_dynamic_variables": {
    "customer_name": "John Doe"
  }
}
Note: Based on a community discussion, there may be differences in how metadata is handled between phone calls and web calls [(3) ]() . The metadata should appear in the
call_analyzed
webhook for phone calls . To configure webhooks, you'll need to set up your webhook URL in your agent or number configuration to receive the post-call data [(1) ]() [(4) ]() .
​ To learn more, see the sources I considered: [[1] Receive calls](https://docs.retellai.com/deploy/inbound-call) [[2] Outbound Calls (Make Calls)](https://docs.retellai.com/deploy/outbound-call) [[3] Discord message from @mushrooooom on 2025-03-17](https://discord.com/channels/1186424376300679209/1186462578310910112/1351317928422670477) [[4] 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.
s
why are so many webhooks triggering for a single call: 2025-11-17 21:33:14.845 call_e484ee308bc28460692053cd3d8 info: Starting call: call_e484ee308bc28460692053cd3d8 2025-11-17 21:33:15.915 call_e484ee308bc28460692053cd3d8 info: Webhook triggered for call_started 2025-11-17 21:33:16.557 call_e484ee308bc28460692053cd3d8 info: Webhook response received for call_started 2025-11-17 21:33:36.538 call_e484ee308bc28460692053cd3d8 info: E2E latency for this turn: 2144 2025-11-17 21:34:07.576 call_e484ee308bc28460692053cd3d8 info: E2E latency for this turn: 3182 2025-11-17 21:34:34.544 call_e484ee308bc28460692053cd3d8 info: E2E latency for this turn: 2579.0048828125 2025-11-17 21:35:11.265 call_e484ee308bc28460692053cd3d8 info: E2E latency for this turn: 2591 2025-11-17 21:35:37.060 call_e484ee308bc28460692053cd3d8 info: E2E latency for this turn: 2405.010009765625 2025-11-17 21:36:20.562 call_e484ee308bc28460692053cd3d8 info: E2E latency for this turn: 2778 2025-11-17 21:37:04.022 call_e484ee308bc28460692053cd3d8 info: E2E latency for this turn: 2448 2025-11-17 21:37:47.628 call_e484ee308bc28460692053cd3d8 info: Ending call: call_e484ee308bc28460692053cd3d8 2025-11-17 21:37:49.384 call_e484ee308bc28460692053cd3d8 info: Webhook triggered for call_ended 2025-11-17 21:37:50.160 call_e484ee308bc28460692053cd3d8 info: Webhook response received for call_ended 2025-11-17 21:37:51.902 call_e484ee308bc28460692053cd3d8 info: Webhook triggered for call_analyzed 2025-11-17 21:37:52.670 call_e484ee308bc28460692053cd3d8 info: Webhook response received for call_analyzed
a
[(1) ]() ### Go High Level Configuration In your Go High Level workflow filter condition, set it to check if the
event
field equals
call_analyzed
[(1) ]() [(3) ]() . This ensures only the final webhook with your extracted variables triggers the workflow. If you're still having issues after setting this, please share the screenshot so I can provide more specific guidance for your Go High Level setup.
s
@AI Evy let me know if you see that screenshot, it should the event from webhook trigger is {EMPTY FIELD} what should i put in there so that this webhook only triggers for call analyzed and no start and end https://cdn.discordapp.com/attachments/1440073415666041015/1440151200422170704/Screenshot_2025-11-17_at_8.25.46_PM.png?ex=691d1cd2&is=691bcb52&hm=1a73da2d2ef700110e95d9702e086adc9cd0c1a7eecfbf27014530c47ce5a7bc&
a
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] call_analyzed webhook triggered multiple times](https://discord.com/channels/1186424376300679209/1408550487216750634) [[3] Discord message from @mikejordan on 2024-11-18](https://discord.com/channels/1186424376300679209/1186462578310910112/1308039644553936937) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @sognodamotore. I'll get back to you soon.
s
@AI Evy webhook payloads are not reaching GHL
a
Thanks for the follow-up, @sognodamotore. I'll get back to you soon.
### Answer If webhook payloads aren't reaching Go High Level, here are troubleshooting steps: 1. Verify Webhook Configuration in Retell Check where your webhook URL is configured [(1) ]() . You can set webhooks at two levels: - **Agent level**: Set
webhook_url
in your agent settings [(2) ]() - **Account level**: Configure in your account settings The agent-level webhook will override the account-level webhook for that specific agent . 2. Check Webhook URL Format Ensure your GHL webhook URL is properly formatted and accessible. The webhook has a timeout of 10 seconds [(1) ]() . If no success status (2xx) is received within 10 seconds, Retell will retry up to 3 times . 3. Verify GHL Webhook is Receiving Requests Check your GHL workflow logs to see if any requests are coming through. The webhook will POST the payload to your endpoint . 4. Check Webhook Response Requirements Your GHL webhook endpoint must return a 2xx status code to acknowledge receipt . If it doesn't respond successfully, Retell will retry . 5. Test with a Simple Webhook Receiver Before debugging GHL specifically, test your Retell webhook with a simple endpoint (like webhook.site or RequestBin) to confirm Retell is sending the payloads correctly. 6. Review Webhook Timeout Settings You can adjust the webhook timeout using
webhook_timeout_ms
in your agent settings [(2) ]() . The default is 10,000 ms (10 seconds) . Common Issue from Community Based on community discussions, there have been cases where GHL integrations had issues with contact creation/updates [(3) ]()
. The recommendation was to use GHL's API directly for more reliable data transfer . If you're still having issues, check your Retell call logs to see if the webhook is being triggered and what response (if any) is being received from GHL.
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) [[3] Discord message from @john_872152 on 2025-07-23](https://discord.com/channels/1186424376300679209/1294891368505937952/1397641236990660649) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy what is the code for system time for retella gain
a
Thanks for the follow-up, @sognodamotore. I'll get back to you soon.
### Answer Based on the documentation, Retell AI provides several system time variables you can use: Default Time Variable (PST/PDT) : -
{{current_time}}
- Returns current time in
America/Los_Angeles
timezone [(1) ]() [(2) ]() - Format example: "Thursday, March 28, 2024 at 11:46:04 PM PST" [(1) ]() Custom Timezone Variables: -
{{current_time_[timezone]}}
- Returns current time in your specified timezone [(1) ]() [(2) ]() - Examples: -
{{current_time_Australia/Sydney}}
[(1) ]() -
{{current_time_America/New_York}}
[(2) ]() Calendar Variables (14-day view) : -
{{current_calendar}}
- 14-day calendar in
America/Los_Angeles
[(1) ]() -
{{current_calendar_[timezone]}}
- 14-day calendar in specified timezone Usage in Your Agent: You can use these variables directly in your agent prompts, first sentences, or tool descriptions. For example, if you want your agent to know the current time in Eastern timezone, use:
Copy code
{{current_time_America/New_York}}
These variables are automatically populated at runtime when your agent starts a call or chat session .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy i want to post the from number from thje conversation to a webhook, what is the code for the from number variable so i can put in payload
a
Thanks for the follow-up, @sognodamotore. I'll get back to you soon.
### Answer Based on the available sources, the
from_number
field is automatically included in the webhook payloads for
call_started
,
call_ended
, and
call_analyzed
events [(1) ]() . When Retell sends webhook payloads, the
from_number
is part of the
call
object in the payload structure [(2) ]() [(1) ]() . You don't need to manually configure this - it's automatically populated. Important Note from Community Discussion: There's a known issue when using dial-to-SIP connections. If you're using dial-to-SIP, the
from_number
may show as
"user"
instead of the actual phone number [(3) ]() . This happens because Retell doesn't have control over the format of from numbers for dial-to-SIP calls . Workaround for Dial-to-SIP: If you already have access to the caller's number before using dial-to-SIP, you can add the
from_number
as a dynamic variable when you register the phone call . This would allow you to pass it through to your webhook via the
retell_llm_dynamic_variables
or
metadata
fields. For Standard Phone Calls: The
from_number
will automatically appear in your webhook payload under the
call
object. For example, in the
call_analyzed
webhook, you'll receive:
Copy code
json
{
  "event": "call_analyzed",
  "call": {
    "from_number": "+12137771234",
    "to_number": "+12137771235",
    ...
  }
}
[(2) ]() [(1) ]() You can access this in your GHL workflow by referencing the
from_number
field from the incoming webhook data. **
​ To learn more, see the sources I considered: [[1] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[2] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[3] Variable "from_number" not showed in events webhook payloads](https://discord.com/channels/1186424376300679209/1417912657096478750) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy but can i also manually put the from number in other payloads, and not have to rely. on the automatic ones?
a
Thanks for the follow-up, @sognodamotore. I'll get back to you soon.
### Answer Yes, you can manually include the from number in custom payloads using the
metadata
field [(1) ]() [(2) ]() [(3) ]() [(4) ]() . The
metadata
object allows you to store arbitrary data that gets included in webhook payloads and call objects . When creating or registering a call, you can add the from number to metadata like this:
Copy code
json
{
  "from_number": "+14157774444",
  "to_number": "+12137774445",
  "metadata": {
    "customer_phone": "+14157774444",
    "custom_from_number": "+14157774444"
  }
}
[(2) ]() [(3) ]() The
metadata
object is stored with the call and returned in webhook payloads for
call_ended
and
call_analyzed
events [(5) ]() [(2) ]() [(3) ]() . This gives you full control over what data you want to pass through to your GHL webhooks, independent of the automatic
from_number
field [(1) ]() [(2) ]() [(3) ]() . You can also update the metadata during an active call using the Update Call endpoint [(1) ]() :
Copy code
json
{
  "metadata": {
    "customer_id": "cust_123",
    "notes": "Follow-up required"
  }
}
Important note: All values in
metadata
and
retell_llm_dynamic_variables
must be strings [(6) ]() . Numbers, booleans, or other data types are not supported .
​ To learn more, see the sources I considered: [[1] Update Call](https://docs.retellai.com/api-references/update-call) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[3] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[4] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[5] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[6] Dynamic Variables via inbound webhook break if non-string values are sent](https://discord.com/channels/1186424376300679209/1420429628979282011) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.