https://retellai.com/?utm_source=discord&utm_medium=seo logo
Prevent agent answering an inbound call if dynamic...
# ❓・bug-report
b
Is there a way to prevent agent answering inbound call if dynamic variables are not set? ie when webhook returns 400/500 error or incorrect response format Last week I was able to do it with an incorrect response format but today is answering the call anyway
c
https://docs.retellai.com/build/dynamic-variables#add-and-test-dynamic-variables if dynamic variables are not set, they remain in the raw format but the call is still answered not sure why inbound call was not getting picked before 🧐. Since the current one is expected behaviour.
b
These are the kind of breaking changes that should be warned by mail
We relied on the fact that retell would not asnwer the call when we sent a response 500
Our customers are really angry at us because the agent randomly started picking calls he shouldn't
+ "this is the expected behavior" from a product standpoint, having the agent pronounce "Hi I'm name_agent" instead of "Hi I'm John" is a terrible UX
I really don't understand this change
cc @chiraggupta1910_87616
f
You could always return { variables... , success = true } in your webhook and then check in your prompt if success was set to true
if not end the call