---
name: thoughtly-web-calls
description: Let someone talk to a Thoughtly voice agent in a browser. Use for a microphone rehearsal, a private call invitation, ringing an open browser, or embedding WebRTC voice in a product.
---

# Thoughtly browser calls

For “let me try it,” create a browser invitation. Use the connected Thoughtly origin, or `https://agents.thoughtly.com` for the public service. Check browser-call availability in its `/openapi.json`. [Browser guide](https://agents.thoughtly.com/docs#browser-calls)

1. On MCP, call `create_web_call` with one stable `idempotency_key` and `call: {"billing_mode":"demo","prompt":"Practice confirming a Friday delivery."}`. Substitute the user's prompt. Over HTTP, send those call fields directly to `POST /v1/web-calls` with an `Idempotency-Key` header.
2. Share the private `join_url` with the intended participant. They open it, choose Start and grant microphone access. Save the call ID and use `get_call` to report the outcome. Demo time draws from the verified workspace's browser credit. If credit runs out, get approval before switching to `prepaid`. The demo calendar uses sample availability.
3. To ring a browser, use `open_web_call_browser`, open its private `listen_url` on the receiving device, and pass its `browser_id` with `direction: "outbound"` in a new invitation.

For an embed, create the session on the product’s backend with the exact HTTPS `embed_origin`. Set the iframe source to the returned `join_url` and allow microphone and autoplay. For custom controls, exchange the ticket after the participant accepts, then use the returned LiveKit server URL and participant token. Keep the workspace credential on the backend. [Browser client example](https://agents.thoughtly.com/web-call-example.js)
