https://retellai.com/?utm_source=discord&utm_medium=seo logo
Webhook running twice for same event
# ❓・bug-report
m
The webhook is called 2x, each time with the identical JSON output
and only 1 event in retell
f
m
ok, got it, thanks - i think something buggy was happening with make where it wasn't distingushing the two events
is there a webhook that will fire mid-call, upon transfer? i want to be able to send data to the human agent in real-time, but i'm concerned that call_ended and call_analyzed only occur after the call has finished. call_started doesn't work because that won't tell me if/when a call is being transferred
f
you could try to call a custom function if users wants to transfer
there won't be a webhook, but you can try to add a cumsto function call
m
do you mean something like this and set it up as an HTTP request in Make? curl --request GET \ --url https://api.retellai.com/v2/get-call/{call_id} \ --header 'Authorization: Bearer '
f
you can only get the call after it finishes. more like
m
yea, need it during the call
f
if user wants to transfer call function log_transfer and transfer_call
so basically you can try and call two functions
m
basically want a slack message with info about the contact that is being transferred to me
f
i'd try out the custom function call, otherwise maybe #ask-retell-partners could help for some custom code
m
can you point me to where i can read about custom function calling? i will try to set it up using make if i have a starting point