GTS
03/23/2025, 9:37 PMVapi Support Bot
03/23/2025, 9:39 PMjavascript
const assistant = {
// other configurations
numWordsToInterruptAssistant: 5,
maxDurationSeconds: 10,
startSpeakingPlan: {
waitSeconds: 0.8
}
};
[Source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334027136305991750)
### 2. Enable Smart Endpointing
Enable the smartEndpointingEnabled
feature which uses advanced processing to detect when a customer has truly finished speaking, even with pauses:
javascript
const assistant = {
// other configurations
startSpeakingPlan: {
waitSeconds: 0.8,
smartEndpointingEnabled: true
}
};
[Source](https://docs.vapi.ai/customization/speech-configuration)
### 3. Adjust Transcriber Settings
For Deepgram, you can set the endpointing
parameter to a higher value (e.g., 300) to allow for longer pauses:
javascript
const assistant = {
// other configurations
transcriber: {
model: "nova-2",
language: "en",
provider: "deepgram",
endpointing: 300
}
};
[Source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1338497725917827196)Vapi Support Bot
03/23/2025, 9:39 PMjavascript
const CONTEXT_MANAGEMENT = `
[Context Management]
- Maintain a running list of collected information
- On interruption, store current progress
- After handling interruption, explicitly return to last incomplete item
- Before ending call, verify all required information is collected
`;
[Source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344181455567196170)
### 5. Use Custom Endpointing Rules
Implement custom endpointing rules to instruct the pipeline to pause for user input for a specified duration, especially useful for collecting contact details.
[Source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335807780287676456)
Would you like more specific guidance on implementing any of these solutions for your particular use case?
Sources:
- [Adjusting numWordsToInterruptAssistant and maxDurationSeconds](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334027136305991750)
- [Smart Endpointing Configuration](https://docs.vapi.ai/customization/speech-configuration)
- [Transcriber Settings for Deepgram](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1338497725917827196)
- [Context Management Implementation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344181455567196170)
- [Custom Endpointing Rules](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335807780287676456)Pen 💻
03/24/2025, 8:42 AMKings Big
03/24/2025, 10:18 PMPen 💻
03/25/2025, 6:33 AM