Assistant didn't speak
# support
a
Hello! I’m experiencing an issue where many calls ring, but the assistant doesn’t start speaking. I’m using the "assistant-speaks-first-with-model-generated-message" option. Additionally, in some cases, the assistant finalizes the call right at the start, saying goodbye and thank you instead of following the prompt as expected. Here are a few call IDs for you to check: 08d08cf8-70be-41ff-9a56-fadd9660ed23 773c4166-c90b-47b4-b9a9-27aa9a51f2a2 d84bbd5e-4416-4cb3-bf78-60daf39289a7 44a33ab6-18af-49ed-b615-04ae05212595 Thanks in advance!
s
do you have firstMessage set to anything?
a
What do you mean? Sorry. I'm using the same agent for each one of these calls. Should I use a First Message in the Assistant from VAPI dashboard even if I'll use the "assistant-speaks-first-with-model-generated-message" from API?
k
Hey Adrian Gomez,You should modify your assistant configuration to include both firstMessage and firstMessageMode. Here's how to fix it: const assistant = { // ... other configurations ... firstMessage: "Hello! I'm your AI assistant. How may I help you today?", firstMessageMode: "assistant-speaks-first", // or use one of the other supported modes }; The available firstMessageMode options are: - 'assistant-speaks-first' - Uses the specified firstMessage - 'assistant-waits-for-user' - Waits for user to speak first - 'assistant-speaks-first-with-model-generated-message' - Generates first message using the model
a
Hey! I'm using "assistant-speaks-first-with-model-generated-message", I have added a first message, but that's making the assistant introduce itself twice, I don't think that's the solution mate. Any chance you have a different recommendation?
k
> Hey Adrian Gomez,You should modify your assistant configuration to include both firstMessage and firstMessageMode. Here's how to fix it: > > const assistant = { > > // ... other configurations ... > > firstMessage: "Hello! I'm your AI assistant. How may I help you today?", > > firstMessageMode: "assistant-speaks-first", // or use one of the other supported modes > > }; Hey Adrian, I suggested to use mode assistant speaks first with predefined message by looking at your call ids and transcription to overcome the issue of early call hagnup and so. Give it a try and let me know.