For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Control voice transmission timing for responsive conversations
Overview
The flush syntax is a VAPI audio control token that forces immediate transmission of LLM output to voice providers, eliminating buffering delays for real-time voice interactions.
When to use flush syntax:
Acknowledge user requests immediately during processing
Provide feedback during long-running tool executions
Create natural conversation pauses
Support custom LLM integrations with processing delays
Use flush strategically—overuse can cause audio fragmentation and degrade
conversation quality.
How it works
The flush syntax bypasses normal buffering to provide immediate audio feedback:
Detection: VAPI scans LLM output for flush syntax using regex pattern
Split: Text is divided at the flush position
Immediate Send: Content before flush is sent instantly to voice provider
Cause: chunkPlan.enabled is set to false or missing Solution: -
Verify chunkPlan.enabled: true in voice configuration - Check assistant
configuration in dashboard or API calls - Test with a minimal configuration
to isolate the issue
Syntax not recognized
Cause: Malformed flush syntax or typos Solution: - Use exact formats:
<flush /> , <flush>, or </flush> - Avoid extra parameters or attributes - Check for
typos in tag spelling
Audio sounds choppy or fragmented
Cause: Overuse of flush syntax
Solution:
Reduce flush frequency in responses
Place only at sentence boundaries
Test with real users to
validate experience
Technical considerations
Provider compatibility
Effectiveness varies by voice provider
Test thoroughly with your chosen provider
Monitor performance impact on response times
Cost implications
Increased API calls to voice provider
Higher usage on usage-based pricing
Monitor billing if using flush frequently
VAPI-only feature
Platform exclusive - not available on other voice platforms