https://retellai.com/?utm_source=discord&utm_medium=seo logo
Passing dynamic variables to webhook
# ❓・bug-report
m
i have an agent that is successfully triggered from a POST webhook, which passes a JSON with from/to numbers, metadata, and dynamic variables. I also am using the "agent level webhoook url" which is passed into a make.com webhook module. however, the make.com webhook module isn't receiving the metadata or dynamic variables as input. how can i pass the dynamic variables to the make.com webhook so that i can use those outputs downstream?
@chiraggupta1910_87616
c
you will get those variables in event 'call_analyzed'
m
how do i get that event?
c
You will need to add a filter post custom webhook for event 'call_analyzed' and save it and run it. Retell sends all events to same webhook one by one. So run your make scenario for long rather than running only once because that would stop right at call_started and would not wait for other events to come.
m
are you simply saying to add this filter here?
ran again for a call_analyzed event but still not seeing the dynamic variables output here
c
What do you mean by dynamic variables output here?
m
since i'm passing DynamicLLM and Metadata variables through teh JSON to the call, i thought i could pass those same variables through the webhook to make
i expected that i'd be able to see these variables when i call the webhook
c
Ahh, that should be visible under history tab.
m
i don't think we're tlaking about the same thing. what history tab? in make.com? i don't need the history tab. i'm lookign at an actual "call_analyzed" event, as you can see in that screenshot. it doesn't have any of the variables being output
@Florian - support @ Retell AI ?
the docs say this payload is sent with a webhook, but i'm not getting many of these fields in my webhook output, including metadata and llm_dynamic_variables. this is the issue.
any updates from the team? seems others are experiencing the same issue. need this resolved and not sure where the support team went on this https://discord.com/channels/1186424376300679209/1347902728617328741/1347902728617328741 @chiraggupta1910_87616 @Florian - support @ Retell AI
c
The thread mentioned is for inbound webhook and there is update for that. However your issue is more on post call. Have you checked “call_ended” event as well ?
r
I've got a request in to the backend team to look at this
m
thanks @Reece - Integration @ Retell AI - appreciate your attention on this one. seems like a pretty straightforward issue that i'm having a tough time getting support on
i have not because you told me to use "call_analyzed"
c
cc: @mope3an .
t
Have you checked your History on the scenario? It actually triggers the webhook multiple times with the different variables Call ended call analyzed etc, but you wont know this if you have your scenario in “Run once” mode
You can actually solve whats sent by Redetermining the structure on your webhook.
m
Yea, thanks for your input and for paying close attention. This is ultimately what i did more or less and solved it. 👍
t
Perfect!!! Nice work and you are welcome
m
Hi @tommyconnectra_29256, is there a chance you could help me with this as well? I have the same issue. I sent you a private message
m
you have to get the metadata and dynamicllm variables out of the following event type: 1) call_status = ended AND 2) call_type = phone_call If you run a normal webhook and add the above 2 as conditions, your input bundles (for GHL, in your case) would have the required data
m
Thanks for your answer!! So I should just add this filter, redetermine data structure and it will work?
Unfortunately it still did not work..
And it is so weird becasue in the history, I have it
t
is your scenario set to run immediately or are you in test mode? “Run once”
m
Set to run immediatly as data arrives
m
what is higher up in that second screenshot? can you show from where it says, "Operation 1" downwardss?
m
Should I modify something in the scenario that actually trigger the call?
@mushrooooom
m
so you have your data there
expand "retell_llm_dynamic_variables"
m
m
right, that's what you want
m
But I do not want that. This is what is taken from the Google Sheet, I use it with Retell. Its the name of the person. I want another data, the summary of the call
m
oh, you mean like the AI summary?
m
yes!! exactly
I want to put it on a google sheet
m
ohh, this is different. you need to get that variable
what do you call it within your retell agent
m
I want to extract two variables: _statut and resume_appel
But they do not show up here
Here maybe you can see more clearly
@chiraggupta1910_87616 Maybe you have more infos here
m
what if you filter for "call_analyzed" event only (take out the other 2 filters) and see if you get those variables?
they should appear here