Embed Your Agent
Add a call or chat button for one published GetVoiceBot agent to a website.
Use the Agent embed to let website visitors call or chat with one published GetVoiceBot agent. This is
different from embedding the complete authenticated GetVoiceBot application.
Add the embed
<button class="gvb-button" data-gvb-button data-target="AGENT_USERNAME" data-type="call">
Call
</button>
<button class="gvb-button" data-gvb-button data-target="AGENT_USERNAME" data-type="chat">
Chat
</button>
<script src="https://www.getvoicebot.com/embed/button/v1/script.js" defer></script>
Replace AGENT_USERNAME with the selected Agent's published username.
Configure the button
data-targetis required and identifies the published Agent username.data-typeis required and must becallorchat.data-numberis optional. On supported mobile devices, it can send a call through the phone
dialer instead of browser voice.
Style the button with your own CSS. Keep the data-gvb-button attribute so the embed script can
attach the intended behavior.
Test before launch
- Confirm the Agent username and live configuration.
- Test call and chat separately when you expose both.
- Verify microphone permission and browser behavior.
- Test desktop and mobile layouts.
- Inspect the resulting conversation and reporting values.
- Confirm escalation, transfer, and external actions.
If you need authenticated customers to manage Agents and settings inside your product, use
Embed the GetVoiceBot app instead.
