yar_kew
11/17/2024, 6:31 PMVapi
11/17/2024, 6:34 PMjavascript
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!Vapi
11/17/2024, 6:34 PMShubham Bajaj
11/19/2024, 8:53 AMjson
{
...exisitingAssistantConfig,
"firstMessageMode": "assistant-waits-for-user"
}
Shubham Bajaj
11/19/2024, 8:53 AM