Open in
Create a web widget in the app
Set up a click-to-talk widget for your site from Phone & web → Web widget — no API calls required.
Phone & web → Web widget creates and manages the publishable keys that power ThunderPhone's embeddable voice widget. Everything the API version of this guide does with cURL, this tab does with a form, and it writes the embed code for you. You can also ask Zeus to "put my agent on my website": it makes the widget and shows the code.
Create a widget
Click New widget. The panel shows a live preview as you go.
- Set what visitors see
Name (for you), Button text, Corner, Theme (light or dark) and Color.
- List the sites it runs on
Under Sites it runs on, enter one domain per line or separated by commas. At least one is required, and browsers can only start sessions from the hostnames you list.
*.example.comcovers every subdomain (not the bare domain); a bare*is rejected. The list stops casual reuse of your key on other sites but is not authentication: a script outside a browser can send anyOriginheader.localhostis not allowed automatically; add it to test locally. - Choose who answers
- An agent — the widget always runs the agent you pick. The simplest setup.
- Your server picks — on every widget session, ThunderPhone calls
your server's address and your server returns the agent configuration
for that visitor (per-page routing, logged-in users, rollouts). Once
saved, the widget shows its Signing secret; each delivery carries
an
X-ThunderPhone-Signatureheader made with it.
Longest call caps a widget call's length; the agent's own limit still applies if it is shorter.
- Choose the browser overrides
Under Browser overrides, switch on each session setting your page sends: Page context, Variables, Voice, Language. New widgets accept none, and a session request carrying a setting that is off fails with
400. Your key is public, so allow only what you use. See Browser overrides. - Make it
Click Make widget.
Grab the embed code
The widget's panel shows ready-to-paste script-tag code with your publishable key and look filled in, with Copy. Paste it on your site.
The code starts calls only on the sites you listed. On any other site, or a page opened from a file on your computer, the button still shows but can't start a call, and the session is refused with a message that says the site isn't allowed. Add the site under Sites it runs on to fix it.
For a React component, the headless hook, styling hooks and the full prop reference, see the widget SDK docs.
Manage widgets from the list
The list shows each widget, who answers it, the sites it runs on and its status (On, Off or Key revoked). Click a row to open its panel:
- Change any field above, then Save changes.
- Turn off / Turn on — a turned-off widget stops accepting sessions immediately.
- Move… — copy or move the widget to another organization you belong to (moving removes it here).
- Delete widget — revokes the publishable key; the widget stops working immediately on all sites. This can't be undone.
Widget sessions appear in Calls with the same transcript, recording and review as phone calls. See Review calls.