How to keep AI silent, till the user speaks
# support
y
how can i make sure the AI does not speak when its called. it waits for user to speak ? is it possible to do in Vapi ? I see that Retell allows it
v
@yar_kew Yes, it's certainly possible to configure your VAPI instance so that the AI waits for the user to speak first. You can achieve this by setting up your VAPI instance to not send any initial prompts or messages. Instead, you can configure it to listen for the user's speech and respond accordingly. Here's a basic example of how you might set this up:
Copy code
javascript
vapiInstance.on('ready', () => {
  // The AI is ready but will not send any initial message.
  console.log('VAPI is ready and waiting for user to speak.');
});

vapiInstance.on('speech-start', () => {
  console.log('User has started speaking.');
});

// Add more event listeners and logic as needed to handle user input and AI responses.
In this configuration, the AI is set to wait for the user to initiate the conversation. If you need more specific guidance or if there's a particular event or behavior you're looking to implement, please let me know, and I can provide further assistance!
You can continue this conversation by mentioning me in the message.
s
Hey @yar_kew set the assistant first message mode to assistant waits for the user.
Copy code
json
{
...exisitingAssistantConfig,
"firstMessageMode": "assistant-waits-for-user"
}
Do let me know if you require further help.
11 Views