Telephony (Voice Calls)
Availability: Test environment Answers FORBIDDEN in production; enabled on the test environment on request.
What it is
Section titled “What it is”Wetel Telephony is a live voice call between a caller (a browser or an app) and a Wetel agent, carried over WebRTC with LiveKit. The caller talks, the agent talks back, and either side can interrupt.
On a call, the agent:
- speaks first, says it is an AI, and offers to hand over to a person;
- listens while it talks, so a caller can interrupt it (barge-in);
- answers with the agent’s published workflow, the same rules, guardrails, hard-locked response nodes and tools as the chat version of that agent;
- uses the same session and memory model as chat: a call is a session, and its text is stored like a chat transcript.
Under the hood each call is three steps in a loop: streaming speech recognition turns the caller’s speech into text, the agent’s workflow answers that text, and streaming speech synthesis speaks the reply. The recognition, language-model and voice providers are Wetel’s choice behind the agent and can be replaced; this documentation does not commit to any vendor for them.
The two kinds of call
Section titled “The two kinds of call”| Kind | Who starts it | Where it is documented |
|---|---|---|
| A browser or app call to an agent | Your server, with an API key, through sdkStartVoiceCall | Start a call from your app (code for both sides), API reference |
| A phone call from an AI employee to the workspace owner’s own number (the “Call my phone” self-test) | The signed-in workspace owner, through startOutboundCall | Call my phone |
Phone calls over a carrier number for your customers, inbound or outbound, are a separate surface with its own status row. For a pilot, Wetel can arrange a test call to a demo phone number so that you can talk to an agent from a handset; ask when you request a test session.
Who answers: the two engines
Section titled “Who answers: the two engines”Every call runs on one of two engines, chosen per call with the engine field of the start mutation:
| Engine | What answers | Workflow, guardrails, tools | Transcript in the session | Reply time (about) |
|---|---|---|---|---|
WORKFLOW (default) | The agent’s published workflow, one turn per caller utterance | Yes, the same as chat | Yes, written turn by turn | 3 to 5 s per turn |
LIVE | A speech-to-speech model, from the agent’s instructions only (status row) | No | Yes, stored once after the call | about 1.5 s per turn |
Choose LIVE for the fastest feel and simple questions. Choose WORKFLOW when the call must follow guardrails, use tools or approvals, or when every turn must be in the session as it happens.
How a call runs
Section titled “How a call runs”In short: your server starts the call and passes a LiveKit URL and token to the caller’s page, which joins the room; the voice worker joins, greets the caller, and answers each turn until the call ends.
sequenceDiagram participant S as Your server participant W as Wetel API participant P as Caller's page or app participant L as LiveKit participant V as Voice worker S->>W: sdkStartVoiceCall (X-Api-Key) W-->>S: livekitUrl, livekitToken, sessionId S-->>P: livekitUrl, livekitToken P->>L: join the room, publish microphone L->>V: dispatch worker into the room V-->>P: greeting (says it is an AI) loop each caller turn P->>V: caller speech V->>V: transcribe, run the agent's workflow V-->>P: reply, spoken sentence by sentence end Note over P,V: If the caller speaks while the agent talks, the agent stops and that turn is cancelledA call from an AI employee to a phone runs the same loop in the other direction: the platform dials the number through a carrier connection, the called phone joins the room as the caller, and the voice worker is dispatched into it. Step-by-step code for the browser call is in Start a call from your app.
Each part:
| Component | Role |
|---|---|
| Wetel API | Starts the session, mints a join token for one room, meters usage and stores the transcript. |
| LiveKit room | The real-time audio session between the caller and the agent; one room per call. |
| Voice worker | Dispatched into the room when the caller joins. Listens, detects the end of a turn, transcribes, asks the agent, speaks. |
| Agent workflow | The agent’s published workflow (or the live model’s instructions), the same “brain” that serves chat. |
Reply time
Section titled “Reply time”On the WORKFLOW engine a reply arrives about 3 to 5 seconds after the caller stops speaking, which feels like a slightly slow phone line rather than a person. The target for a human-feeling call is about 1.5 seconds, and only the LIVE engine reaches it, at the cost of the workflow. Where the time goes on the workflow engine:
| Step | About |
|---|---|
| End-of-turn detection | 0.6 s |
| Language model, first token | 0.7 to 1.1 s |
| Speech synthesis, first audio byte | 0.35 s |
| Network | the rest |
Replies reach the voice layer per workflow turn, not token by token, so every node before the reply costs silence. The single biggest improvement is a fast modelOverride on the workflow’s llm nodes: a workflow on the slower default provider took 2 to 12 s per turn, on a fast model about 2 s. See Building a voice-safe workflow.
Why a media server, and why LiveKit
Section titled “Why a media server, and why LiveKit”Wetel’s browser voice chat (the <vai-avatar> embed, see Voice interface) does the audio work in the page: one recorded clip per turn, uploaded for speech-to-text, sent as text. A live call moves the audio work to a server-side voice worker in a media room: the caller’s audio streams continuously, the worker runs voice-activity and end-of-turn detection and streaming recognition, and the agent’s reply streams back as speech. That is what makes a call full duplex and interruptible, and what lets a phone or an app join the same room as a browser.
Wetel runs that room on LiveKit (an open-source WebRTC server and agent framework, used through its cloud service) because it documents the things a voice agent needs, a bring-your-own brain, vendor-flexible speech providers, turn detection and interruption handling, SIP for phone numbers, and a self-hosting path, and because in our own measurements the agent stopped about 1.2 seconds after the caller started speaking over it. The two paths coexist: the embed for an on-page avatar, the live call for a natural conversation, an app or the phone.
What is stored, and what it costs
Section titled “What is stored, and what it costs”- Audio is not recorded or stored by Wetel by default. Speech is processed live by speech and language services.
- Conversation text is part of the session record, exactly like chat. Read it with the sessions API.
- Usage is metered with the session (speech and model usage), as for chat, and counts toward the monthly spend cap. Voice minutes are priced in credits on the pricing page, as indicative examples.
- The join token’s contents are readable by the caller’s browser; see security.
Disclosure, recording, consent and what Wetel will not build are on Call controls, privacy and compliance.
How to get access
Section titled “How to get access”Ask for a test session. Wetel enables voice for your workspace on the test environment, agrees a time window with you and runs the voice worker for it. Send us the agent you want to test and a workflow you have made voice-safe (see the authoring guide).
Known limits
Section titled “Known limits”- A request for a person is a spoken offer of a callback; the call is not transferred.
- Replies reach the voice layer per workflow turn, so a long chain of nodes before the reply is heard as silence.
- A call that is started but never joined is closed as
EXPIREDwithin about 15 minutes of the request; until then its session shows as active. - Each API key can start at most 1,000 calls per UTC day by default, and each workspace 30 calls a minute (see limits).
- The test environment runs one call at a time: a second call is refused with a typed busy error (
TOO_MANY_REQUESTS, HTTP 429, retry after about 30 seconds), and an outbound call takes the same slot. Each call is memory-heavy, so do not load-test. Renewal of the session credential during a long call is deployed but not yet verified with a live call over an hour, so keep calls under an hour. See capacity. - An agent’s voice settings reach a phone or voice call only when the environment has the voice-settings dispatch setting on (on for the test environment, off by default elsewhere), and they have not yet been confirmed by ear on a live call. When a call starts with the setting on, the agent’s text-to-speech voice name (
ttsVoice), voice language (ttsLang),speakingRateand speech-to-text language (sttLanguageCode) are passed to the voice worker, which validates them and falls back to its own defaults. Limits: the voice name decides the voice, andvoiceTieris not sent; text-to-speech applies with the default Google engine only; the speech-to-text language applies with the Gemini (as hints), Google and streaming Google engines, not with Deepgram or the speech-to-speech live engine; an agent still on the default voice (en-US-Standard-C) now speaks that voice on a call; settings are read when the call starts, so a running call keeps its voice. See the status page. - Live calls have been tested in English. Speech recognition and synthesis for English, Malay and Mandarin exist for voice messages; Malay, Chinese and code-switching on a live call have not been tested.
- Joining a Google Meet, Zoom or Teams meeting as an AI participant is not offered: the meeting platforms limit how a third-party AI can join and speak, and everyone in the meeting would need to be told an AI is present and agree to it.
For what is planned next, see the roadmap.
Can I call it from my own backend and web page without Wetel’s help? The API is self-service once voice is enabled for you, but a voice worker must be running for the room. Wetel runs it for arranged test sessions.
Which agent answers? Any agent in your workspace with a published workflow. Make it voice-safe first.
Does it make outbound calls? An AI employee can phone the workspace owner’s own, confirmed number as a self-test; see Call my phone. Calls to anyone else are refused. Wetel’s policy is no cold outbound sales calls, that is, calls to people who did not ask to hear from you; see controls and compliance.
Do you record calls? Not by default. See controls and compliance.
What does it cost? Metered with the session, like chat, and priced in credits: the pricing page gives an indicative figure for a minute of browser voice call. There is no separate per-minute price list.
Pages in this section
Section titled “Pages in this section”- Partner onboarding: a step-by-step guide and pre-demo checklist for showing voice and phone calls to your customers.
- Start a call from your app: server and browser code.
- Call my phone: the owner self-test call and confirming your phone number.
- API reference: every operation, with errors and limits.
- Building a voice-safe workflow
- Call controls, privacy and compliance
- Telephony primer: PSTN, SIP, RTP and WebRTC in ten minutes.