Skip to main content

Prerequisites

1

Get your Workspace ID

In the Trillet Portal sidebar, click the workspace name dropdown at the top. Your Workspace ID is displayed next to each workspace - click to copy.
2

Get your Agent ID

Navigate to Call Flows in the sidebar. Each call flow card displays its Agent ID - copy it from the card.
3

Whitelist your domain

Go to Settings → Domain and add the domain where you’ll embed the widget (e.g. https://yoursite.com). This is required to avoid CORS errors. Allow up to 24 hours for propagation. Skip this if you’re using a whitelabelled custom domain.
4

Enable public access

Open your call flow, go to the Settings tab, and toggle Public Access on. Without this, startPublicCall() will be rejected.
Never expose your API key in client-side code. The widget uses startPublicCall() which only requires the Workspace ID and Agent ID.

Integration

Choose between a minimal quick-start snippet or a complete styled widget, then pick your framework.
Paste this before the closing </body> tag. A chat bubble appears in the bottom-right corner.
A polished chat widget with status indicators, typing animation, and transcript polling. Self-contained HTML file you can use directly or hand off.

Events Reference

The SDK emits these events you can listen to: