Thiago Bardini
03/22/2025, 4:49 PMVapi Support Bot
03/22/2025, 4:51 PMstartSpeakingPlan.waitSeconds
to add a delay before the assistant starts speaking:
javascript
const assistant = {
firstMessageMode: 'assistant-speaks-first',
startSpeakingPlan: {
waitSeconds: 2 // Waits 2 seconds before speaking
}
// ... other configurations
};
This will add a 2-second delay before the assistant starts speaking, which might give your webhook enough time to return the data ([source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1343915991670853654)).
2. Set assistantOverrides.maxDurationSeconds
to make the assistant remain silent for a specific period:
javascript
assistantOverrides: {
maxDurationSeconds: 5 // Remains silent for 5 seconds
}
This ensures the assistant remains silent for the specified duration, giving your webhook time to return ([source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335807780287676456)).
3. Set firstMessageMode
to assistantWaitsForUser
to make the assistant wait for user input before responding:
javascript
const assistant = {
firstMessageMode: 'assistantWaitsForUser',
// ... other configurations
};
This makes the assistant wait for the user to speak first ([source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1305065394662408192)).Vapi Support Bot
03/22/2025, 4:51 PMKyle
03/23/2025, 2:51 PMThiago Bardini
03/23/2025, 7:13 PMThiago Bardini
03/23/2025, 7:34 PMKyle
03/25/2025, 1:42 AMThiago Bardini
03/26/2025, 5:48 PMShubham Bajaj
03/29/2025, 11:06 AMThiago Bardini
03/31/2025, 4:11 AMKyle
03/31/2025, 1:26 PM