<script> tag that handles all WebRTC signaling, UI, and state management — no additional CSS, JS, or dependencies required.
Integration
Add a single<script> tag to your page. The only required attribute is webrtc-code, which is the agent code (starts with grtc-) obtained from the Guava dashboard.
index.html
Self-contained. The widget injects its own HTML and CSS with no global variables or style conflicts. Works on any page with a modern browser — just add the script tag and configure with attributes.
Customization
Try it
Configure the widget and copy the script tag for your site.Chat panel
The chat panel adds a full conversation interface when the user clicks the orb:- Live message transcript (agent and caller speech)
- Text input for sending messages during the call
- Mic toggle to mute/unmute
- Call timer and hang-up button
- Draggable header to reposition the panel
- Post-call “New conversation” button to start another session
Generating a WebRTC code via SDK
- Python
- TypeScript
Instead of obtaining a WebRTC code from the Guava dashboard, you can generate one programmatically with
client.create_webrtc_agent(). This is useful when you need to create codes on-the-fly or control their TTL.generate_code.py
Returns:
str — a WebRTC code (e.g. grtc-...) that can be passed to agent.listen_webrtc() or used as the widget’s webrtc-code attribute.Raises an HTTP error if the API request fails.