https://retellai.com/?utm_source=discord&utm_medium=seo logo
Webhook dynamic variable response being ignored
# ❓・bug-report
m
Is there any documentation about the header requirements for ensuring the return response during a call_started event is processed by Retell and not ignored? Is there a sample webhook response with headers available somewhere? In one of the video tutorials, there is mention that the API Key must be returned in the header with the response payload. Need to know the format please. Thank you
r
@mario_95817 I am confused by your question. Why are you returning a response (other than, I suppose, a 200) to the call_started event?
You can verify the webhook originates from Retell -- look at the flow here (webhook starts on line 135) -- https://github.com/reecesel/retell-ai-tool-call-demo/blob/main/main.py
If you're wanting to load dynamic variables on an inbound, you use a different webhook entirely. Check the docs here: https://docs.retellai.com/build/dynamic-variables#dynamic-variables -- in that case, you simply respond back with the data as key/value pairs in JSON, and then you can reference them within your agent prompt as {{variable_name}}
top one is for dynamic variables, bottom one is for call_started/ended/analyzed
m
appreciate your help @Reece - Integration @ Retell AI . I am good now. using FastAPi with webhooks solved my issues
r
You're very welcome! Glad FastAPI worked for you. I'm not sure sometimes if the "fast" refers to its performance or how fast one can build things with it. Perhaps both! 🙂
m
message has been deleted