Easily integrate the Vapi Voice Widget into your website for enhanced user interaction.
Insert the Widget Snippet
</body>
tag.Generate Your Assistant
Modify the Button
buttonConfig
object to align with your website’s style and branding. Choose between a pill or round button and set colors, positions, and icons.Add Functionality to Vapi Instance
vapiInstance
returned from the run function in the snippet to further customize the behaviour. For instance, you might want to listen to various EventSource, or even send some messages to the bot programmatically..vapi-btn
: The primary class for the Vapi button..vapi-btn-is-idle
: The class for the Vapi button when the call is disconnected..vapi-btn-is-active
: The class for the Vapi button when the call is active..vapi-btn-is-loading
: The class for the Vapi button when the call is connecting..vapi-btn-is-speaking
: The class for the Vapi button when the bot is speaking..vapi-btn-pill
: The class for Vapi button to set pill variant..vapi-btn-round
: The class for Vapi button to set round variant.