Impose Minimum Call Limit
We’ve enabled the end-call functionality in VAPI, but we’d like to enforce a minimum call duration of 10 minutes. Currently, we try to manage this through the system prompt by instructing the bot not to end the call unless explicitly told to do so. To reinforce this behavior, we’ve even experimented with exaggerated prompting techniques like "a dog will be killed if you end the call...". However, despite these efforts, the bot consistently ends the call around the 9-minute mark with a polite sign-off.
Is there a parameter to enforce a minimum call duration? Additionally, is there a way for the bot to know how much time has elapsed? We have tried using
Is there a parameter to enforce a minimum call duration? Additionally, is there a way for the bot to know how much time has elapsed? We have tried using
vapi.send() to send a system message containing the elapsed time once every minute, but that has resulted in some weird interruptions. Is there a better way to solve this?