Can I press a button to interrupt AI on web call?
# support
r
Now seems the only way to interrupt AI is by talking over it. Can I interrupt it by user pressing a button to let the AI change to wait stage? like how chatgpt and Pi works in their App?
v
@Ray Absolutely! In a voice application, you can indeed implement a feature where the user can press a button to interrupt the AI, similar to how it's done in chat applications. This would involve programming the voice application to listen for a specific interrupt signal, such as a button press, and then pausing or stopping the current speech output to wait for further user input. If you're developing such a feature and need assistance with the specifics of implementing it in your VAPI application, please let me know, and I'd be happy to help guide you through the process.
You can continue this conversation by mentioning me in the message.
r
I don’t see any docs on this under web call documentation
@Vapi I don’t see any docs on this under web call documentation
v
@Ray I apologize for any inconvenience. If the documentation for implementing an interrupt feature in web calls is not readily available, it might be a more advanced feature that requires specific guidance. Please reach out to support for more detailed information on how to implement this functionality in your voice application. They can provide you with the necessary resources or documentation to achieve the desired interrupt feature.
r
How to reach out for support
@User
s
@Ray in phone call that is not possible but for web call you can mute the assistant.
What is the function for mute assistant?
I only see mute for user’s microphone
@User
s
yeah using that you can stop assistatn from generating output.
r
I tried and it is indeed turning the user microphone off. It is not interrupting the AI response
Setmuted is not stopping assistant from generating output
a
You can mute participants with a phone call if you are nice with twilio API
You are likely going to want to get the phone call to be inside of a twilio conference call, which will allow you to control the participants, like muting and unmuting.
r
Sorry but I am actually asking if we can interrupt the AI while it is speaking
Not about muting human or microphone
And I am only asking for the webcall scenario
a
Interruption handling is built into vapi, and you can even dial in the settings for it.
s
@Ray there is no event type to interrupt the assistant as of now, even manipulting context history worn't work.
r
I see, hope it can be added as a new feature. This feature is critical for my customer experience.
Is there a work around trick I can do? I am thinking send AI a message stop, or restart the call with no welcome message
s
try if addmessgae. works for you.
7 Views