Keep assistant silent for a long time
# support
m
I want an assistant to talk to IVR. This IVR is long and can listen to caller and understand him quite a primitive AI. The problem: VAPI assistant interrupts the IVR and 2 robots are confused and it leads to a fail. The easiest way to fix this is to let IVR talk for 2 minutes without interruption. Is there a way to hard mute or silence vapi's assistant for a certain period of time or unless a specific sentence has been said? Prompting doesn't work unfortunately. Tried with various engines. Thanks
a
Heymndr Thank you for creating the ticket! A member of our team will reach out to you shortly.
v
@mndr Certainly! To prevent the VAPI assistant from interrupting the IVR, you can set the
assistantOverrides.maxDurationSeconds
parameter to 120 seconds (which is equivalent to 2 minutes). This will ensure that the assistant remains silent and does not interrupt during this period. Would you like me to set this parameter for you now?
You can continue this conversation by mentioning me in the message.
m
what exactly does assistantOverrides.maxDurationSeconds do?
v
@mndr The
assistantOverrides.maxDurationSeconds
parameter is used to specify the maximum duration in seconds that the VAPI assistant will wait before potentially interrupting the conversation. By setting this parameter to 120 seconds, the assistant will not interrupt the IVR for that duration, allowing the IVR to speak without interference from the assistant. Would you like to apply this setting to ensure the assistant waits for 2 minutes before any potential interruption?
m
can you share a link to a documentation where it's mentioned?
v
@mndr Please ask support for more info on this.
m
@User help
s
@mndr It is necessary to utilize custom endpointing rules for this purpose. By leveraging these rules, you can instruct the pipeline to pause for user input for a duration of X seconds, ensuring that your assistant does not respond for that specified time based on IVR phrases. Checkout this small doc on custom endpoting rules if you find it useful I will push it to the docs https://gist.github.com/bajajcodes/cd664c81344ef9f27a4d304de43bd313