Add a complete AI chat and voice interface to your website with a single line of code. The Vapi Web Widget provides a customizable, floating chat interface that supports both text chat and voice conversations.
What You’ll Build:
Widget Features:
View the complete source code and examples on GitHub.
We’ll add a customer support widget to “TechFlow’s” website that allows visitors to get help through both voice and text conversations.
Add the widget script to your HTML page:
You must provide either assistant-id, assistant, or both assistant-id and assistant-overrides. The assistant prop is only supported in voice mode.
Enhance your widget integration:
The widget automatically handles microphone permissions, audio processing, and cross-browser compatibility. For custom implementations, consider using the Web SDK directly.