https://retellai.com/?utm_source=discord&utm_medium=seo logo
How do I do a single post call notification?
# ❓・bug-report
j
I connected a webhook for the call to my slack. But when a call happens, I am getting multiple notifications. I need to only get the final call notification once the call has completed. Is there a way to do that? So I just the post call analytics and info.
f
Usually what you do is to check which type of notification it is, and only process the one you are interested about. you could do switch case or if else if (data.event === 'call_analyzed') { ... }
j
Thanks for the reply. Just a little too technical for me. Where would I filter this? In make?
f
Have a look there! Alternativel you can use make.com and check for the field req.body.event
j
Does this seem right? Sorry I am not much of a programmer myself. lol
f
I think that API will get information about a call
I think you need sth like that, use the URL that make.com gives you and then you can run it once for make.com to learn the data structure and then you look at the req.body.event field
j
Yes. thats what i am doing.
f
ah gotcha! I don't think you need the Get A Call, because that will give you the call details. And a finished call will always be disconnected. I think you can remove the Retell AI component and just use the webhook with an if or something.
Receive all the webhook, set up a filter for event == "call_ended" or "call_analyzed"
and then continue to perform your actions
Does this make sense?