Skip to main content

Can I put a voice-call button for my agent on my own website?

Yes: your backend starts a web voice session through the API and your page streams microphone audio to the agent.

Yes, through the API. The agent needs the Web Voice Channel skill and must be Running.

  1. Your backend calls POST /UserAgent/Realtime/WebStart with your project's API key. Never put the key in the browser.

  2. It returns wsUrl, sessionToken, cancelToken and expiresAt. Your page opens the WebSocket at wsUrl, sends the sessionToken in its first message, then streams 24 kHz mono microphone audio.

  3. If the call never gets going, for example because the visitor blocks the microphone, call POST /UserAgent/Realtime/Cancel with the cancelToken.

There's an hourly session limit (HTTP 429 when reached) and a maximum session length. Call audio is paid from the Wiro AI Models project's wallet. Guide: Web Voice. Phone calls: Twilio.

Did this answer your question?