https://retellai.com/?utm_source=discord&utm_medium=seo logo
How to Make Webhooks Trigger Every X Seconds?
# ❓・bug-report
k
Hi! I have a question. Is it possible in Retell AI to make a webhook fire on a fixed interval (for example every 3 seconds, 10 seconds, 30 seconds, etc.) instead of only firing on specific events? I am trying to trigger a webhook repeatedly while the call/session is active, but I don't see any feature that lets me set a custom interval. Thank you!
@User
@User @User
c
what’s the use case for this?
might have an alternative
k
well I took the whole transcript and pass it to open ai in my server to extract same data I want to extract this data in real time
I got.more than 190.filed to extract
so i need to send the paylod always
c
well this is a very unique case, you can use the get call id function through our api reference, you can toggle this however many times throughout the call
k
I got the id in call started
but. I want to get the transcipt object how can i do this
@Colin - Integrations @ Retell AI
I mean is there like an endpoint to call and get the ongoing call transcirpt object for example
@User
@User
@User
@User
SORRY guys
but it a bit urgent
o
Hello @khalidrouissi , your use case it to extract some data in realtime from the transcription right ?
why not using the extract dynamic variable function?
k
yes but im extracting it using my server custom Openai call
now i got the call id from the call_started
I wanna like each 30 second to poll the current transcipt
o
If you are using single prompt , you can do that with prompting.
k
yes I use single
how to do this
like what to write
o
On the response guide , tell to run this function before every response ,
k
I mean how
like it just send api after each call
o
You want to run a function with every response that how you do it , On the prompt tell to run this function before every response , and create a custom function to hit your server , that's it
k
got it
ahhhh
I got the idea
Thnx it works
@Omar Ashraf | Community Lead