Wait function error
# support
s
Hi, I’m trying to change our wait function from its current state “aggressive” to normal or conservative and it is returning the following error attached. Any idea why this is or how to fix? #1211483291191083018 https://cdn.discordapp.com/attachments/1375409838875738223/1375409839567540296/B3F3DEE1-911B-4A43-AC92-1E326DDEC154.png?ex=683195bb&is=6830443b&hm=5c415832a85b1949cbedcea352b9a64808922dc4835411b6dc08d16499974e77&
v
The error is likely due to the use of unsupported functions (like
sqrt
or
max
) in your
waitFunction
expression.
Try switching to a simpler, documented format such as:
Copy code
json
"waitFunction": "200 + 8000 * x"
This is the default and is known to work. If you want a more conservative wait, you can try:
Copy code
json
"waitFunction": "4000 * (1 - cos(pi * x))"
Test with one of these, and if it works, incrementally adjust your function using only basic arithmetic and functions shown in the documentation. If the error persists, consult [the official docs](https://docs.vapi.ai/customization/speech-configuration) or contact support for a list of allowed functions. Source: - [Vapi Speech Configuration Documentation](https://docs.vapi.ai/customization/speech-configuration)
Thanks for sharing the error details. Based on the documentation, this error may be due to an invalid or deprecated property in your
startSpeakingPlan.smartEndpointingPlan
(for example, using
smartEndpointingEnabled
instead of the new
smartEndpointingPlan
or an unsupported
waitFunction
format). Could you please share the exact JSON payload or configuration you are sending when updating the assistant? This will help identify if there are any missing or misconfigured fields. Sources: - [Vapi Speech Configuration Documentation](https://docs.vapi.ai/customization/speech-configuration) - [Vapi Changelog May 3, 2025](https://docs.vapi.ai/changelog/2025/5/3) - [Vapi Changelog May 1, 2025](https://docs.vapi.ai/changelog/2025/5/1)
a
Hey, can you send me the assistant_id? So, that I can take a look into it?