Browser Voice
Let people talk to your flow from a web browser: a call button on your website, a hosted call page, and voice tests in the portal.
The Browser Voice Module runs the same voice flows as a phone line, without a phone number. The caller presses a call button, allows the microphone, and talks: every OutputTask is spoken to them, every InputTask listens and turns what they say into text. Use it to add a "call us" button to your website, to share a link to a call page, or to try a phone flow from the portal before you connect a real number. It requires Environment configuration: a voice to speak with and an Azure Speech resource to understand the caller.
How it works
A call always belongs to one Environment, and runs the Process deployed to it on the WebSocketVoice Channel.
- The caller starts a call. From your website (the call button), from the hosted call page, or from the Voice button of the test chat in the portal.
- The Environment is chosen by its token. The website script and the call page carry the Environment token (the same token as the Environment's other public links). The call runs the Process deployed to that Environment, with that Environment's settings. To move a website to another Environment, change the token on the website.
- The checks. A website call is accepted only when the Environment allows calls from websites, the page comes from one of its allowed websites (or the hosted call page), and the per-hour, per-day and calls-at-once limits are not reached. A portal test call needs you to be a member of the workspace.
- The flow runs. The Voice start writes the call into
{call}. Each OutputTask is spoken with the configured voice. Each InputTask speaks its prompt, then listens until the caller stops talking, and stores the text. The End Event hangs up. - The call ends when the flow reaches its End Event, when the caller hangs up, or when the call reaches the Environment's longest call length. What was said is kept in the Session's conversation, like a chat; the audio is never stored.
The flow needs a Voice start. A Process can have several starts, one per Channel: put a Voice start next to a phone start (for example the ACS call start) and connect both to the same first step to use one flow for the phone and the browser.
Configuration
Set these fields in the Module's Environment configuration (Environments → your Environment → Browser voice).
Voice
| Field | Type | Required | Description |
|---|---|---|---|
| TTS Provider | string | Yes | The voice the flow's Output and Input prompts are spoken with. One of ElevenLabs, Azure, OpenAI, Resemble. Default: ElevenLabs. |
The settings for the selected provider appear below the TTS Provider field.
ElevenLabs settings shown when TTS Provider is ElevenLabs.
| Field | Type | Required | Description |
|---|---|---|---|
| ElevenLabs API Key | string | Yes | Your ElevenLabs API key. |
| Voice ID | string | Yes | ID of the voice to speak with (Voice Library or a voice you cloned). |
| Model | string | No | eleven_flash_v2_5 (fast, the default), eleven_v4_turbo (fast and expressive), eleven_v4 (most expressive, slower), eleven_multilingual_v2 or eleven_v3 (previous generation). |
| Stability / Similarity / Speed | number | No | Voice settings: 0 to 1, 0 to 1, and 0.7 to 1.2. Defaults 0.5, 0.75 and 1.0. |
| Prerender and cache phrases | boolean | No | On (default): when you deploy, the fixed text of every spoken phrase is rendered once and kept in the Environment's storage, so a call only synthesizes its {variables}. Off: every prompt is synthesized during the call. |
| Phrases with {variables} | string | No | Shown when caching is on. Splice (default): the cached pieces play around the live {variables} (fastest; the joins can be slightly audible). Whole sentence: a phrase with variables is synthesized whole during the call (most natural, slower). |
Azure Speech settings shown when TTS Provider is Azure.
| Field | Type | Required | Description |
|---|---|---|---|
| Azure Speech Endpoint | string | No | Azure Speech endpoint URL (e.g. https://italynorth.api.cognitive.microsoft.com). |
| Azure Speech Key | string | Yes | Azure Speech subscription key. |
| Azure Speech Region | string | No | Region of the Speech resource. Default: italynorth. |
| Default Voice | string | No | Neural voice (e.g. it-IT-ElsaNeural, en-US-JennyNeural). Default: it-IT-ElsaNeural. |
OpenAI TTS settings shown when TTS Provider is OpenAI.
| Field | Type | Required | Description |
|---|---|---|---|
| OpenAI API Key | string | Yes | OpenAI API key (sk-...). |
| Model | string | No | One of gpt-4o-mini-tts, tts-1, tts-1-hd. Default: gpt-4o-mini-tts. |
| Voice | string | No | Voice persona, e.g. marin, cedar, alloy, nova. Default: marin. |
| Speed | number | No | Playback speed (0.25–4.0). Default: 1.0. |
Resemble TTS settings shown when TTS Provider is Resemble.
| Field | Type | Required | Description |
|---|---|---|---|
| Resemble API Key | string | Yes | Resemble.ai API token. |
| Voice UUID | string | Yes | UUID of the Resemble voice (from the Resemble dashboard). |
Listening
| Field | Type | Required | Description |
|---|---|---|---|
| Azure Speech Key | string | Yes | Key of the Azure Speech resource that transcribes the caller. |
| Azure Speech Region | string | Yes | Region of that Speech resource (e.g. italynorth). Default: italynorth. |
| Default Language | string | No | Language of the call when the flow does not set one. One of it-IT, en-US, en-GB, de-DE, fr-FR, es-ES. Default: it-IT. |
| End of speech (ms) | integer | No | Silence that ends what the caller says (300 to 5000). Default: 1000. |
| Wait for the caller (s) | integer | No | How long an InputTask waits, after its prompt, for the caller to start answering (2 to 30). Default: 8. |
| Let the caller interrupt Input prompts | boolean | No | Like the phone: speaking during an Input prompt stops it and answers. Output prompts always play to the end. Default: on. |
Limits
| Field | Type | Required | Description |
|---|---|---|---|
| Longest call (minutes) | integer | No | A call ends after this many minutes (1 to 60). Default: 10. |
| Calls at once | integer | No | Calls that may run at the same time on this Environment (1 to 50). Default: 3. Past it, a new call ends at once with "Too many calls on this environment right now". |
Website
Calls from websites are off until you turn them on. Each call costs voice, speech recognition and any AI the flow uses, like a phone call.
| Field | Type | Required | Description |
|---|---|---|---|
| Allow calls from websites | boolean | No | Turns on the website call button and the hosted call page for this Environment. Default: off. |
| Allow localhost (testing) | boolean | No | Also accepts pages served from localhost / 127.0.0.1 on any port, to try the button while you build a site. Default: off. |
| Websites | string | No | The websites the call button may run on, one per line, as scheme and host (and port if any), e.g. https://www.example.com. The hosted call page is always allowed. |
| Button text | string | No | The call button shows a phone icon; this text is its tooltip, what screen readers announce, and the title of the hosted call page. Default: Chiamaci. |
| Calls per visitor per hour | integer | No | Calls one network (IP address) may start in an hour (1 to 60). Default: 6. |
| Website calls per day | integer | No | Calls all website visitors together may start in 24 hours (1 to 10000). Default: 100. Past it, the button answers that calls are not available. |
The Websites list keeps other websites from showing your call button, but it is not a password: anyone who has the Environment token can start a call. The per-hour and per-day limits, with the longest call length, are what bound the cost of website calls. Set them to what you are willing to spend.
Once calls from websites are on and saved, the Environment page shows a Calls from websites card with the hosted call page link and the script tag to copy.
Add the call button to a website
Copy the script tag from the Calls from websites card and paste it before </body> on the pages of your website:
<script src="https://files.cdn-ew-flow.com/ew/voice/v1/ew-voice.js"
data-engine="https://engine.ew-flow.com"
data-environment="3f2b1c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
data-label="Chiamaci" async></script>
| Attribute | Required | Example | Description |
|---|---|---|---|
data-environment | Yes | 3f2b1c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d | The Environment token: the call runs the Process deployed to this Environment. |
data-engine | Yes | https://engine.ew-flow.com | Where the calls go. Keep the value from the card. |
data-label | No | Call us | The button's tooltip and accessible name. The card fills it with the Button text setting. Default: Chiamaci. |
data-position | No | left | right (default) or left: the corner of the floating button. |
data-container | No | #call-box | Puts the button inside this element instead of floating in a corner. |
data-language | No | en-US | The call's language. Default: the Environment's Default Language. |
The button is a round phone icon. Pressing it asks for the microphone, then opens a small panel with Hang up and Mute. Your page can also start or end a call from its own script with window.EWVoice.call() and window.EWVoice.hangup().
A website with a Content-Security-Policy must allow files.cdn-ew-flow.com in script-src, and the engine address in connect-src (both https: and wss:).
The hosted call page. If you don't have a website, or want to send a link by email or message, use the call page link from the same card. It is a page with only the call button, served by EW-Flow, and is always allowed.
Test a call from the portal
Open the test chat of the Process, pick the Environment, and press Voice. The call runs the deployed Process with that Environment's settings, like a website call, and the path of the run is drawn as you talk. Portal test calls do not need Allow calls from websites: they need you to be a member of the workspace.
Tasks
The Voice start is the Module's own start. OutputTask, InputTask and EndTask are channel-specific implementations for the WebSocketVoice Channel: they use the same Task types as the Standard Module, so the property panel in the BPMN Editor is identical to the chat versions; only the runtime behavior differs.
Voice start (Channel: WebSocketVoice)
Starts the Process when someone calls this Environment from a browser, and hands the flow the call as one variable.
Properties
| Property | Type | Required | Example | Description |
|---|---|---|---|---|
| Call variable | variable | No | {call} | The variable that receives the call. Default: {call}. |
Variables
| Variable | Example | Description |
|---|---|---|
{call.from} | web:7c1e9a2b… | Who is calling. A website visitor is web: followed by an anonymous id the button keeps in the visitor's browser (the same visitor calling again has the same id). A portal test call is browser: followed by your name. |
{call.name} | Anna | The caller's name on portal test calls; empty for website calls. |
{call.to} | voice | Always voice. |
{call.callId} | wsvoice:4d2f… | The id of this call. |
{call.direction} | inbound | Always inbound. |
{call.language} | it-IT | The call's language: the button's data-language, else the Environment's Default Language. |
{call.channel} | WebSocketVoice | The Session's Channel (Chat in test mode). |
{call.isTest} | false | true for portal test calls and when the start runs in the test chat. |
The caller and voice are also the Session's sender and recipient, as shown in the Sessions list.
Behavior
- Reads the caller and the language the call was started with.
- Sets the Session language (the language the flow speaks and listens in) and writes
{call}. - Moves the Token on at once: the call is already connected.
Test mode
Started from the test chat (or by the assistant with test data), the start writes {call} from the test data instead of a real call: from, to, callId, name and language (the Environment's Default Language when missing), with isTest = true. On any Channel other than WebSocketVoice and Chat the start stops the Session with error 8025 StartWrongChannel.
Example
A visitor of https://www.example.com presses the call button. The Voice start writes {call.from} = web:7c1e9a2b… and {call.language} = it-IT, and the next OutputTask says Buongiorno! Come posso aiutarla?
OutputTask (Channel: WebSocketVoice)
Speaks a message to the caller with the configured voice.
Properties
| Property | Type | Required | Example | Description |
|---|---|---|---|---|
| Output Message | string | Yes | Thanks {call.name}, your order has shipped. | The text spoken to the caller. Supports {variable} placeholders. |
Behavior
- Resolves every
{variable}placeholder against the current Session variables. - Adds the text to the Session's conversation and speaks it to the caller with the configured voice, in the Session language. With
ElevenLabsand caching on, the fixed parts come from the Environment's prerendered cache and only the{variables}are synthesized during the call. - The Token moves on at once; the next prompts are spoken in order after this one. An Output prompt always plays to the end.
If the Output Message is empty, the Session logs error 3005 TaskInvalidData.
Example
An OutputTask with Output Message Your appointment is on {appointmentText}. speaks Your appointment is on Monday 25 May at 14:30. and the Token continues to the next node.
InputTask (Channel: WebSocketVoice)
Speaks a prompt, listens to the caller, and stores what they said as text.
Properties
| Property | Type | Required | Example | Description |
|---|---|---|---|---|
| Prompt Message | string | No | How can I help you? | Spoken before listening. Supports {variable} placeholders. Leave it empty to listen straight away. |
| Store result in | string | Yes | {request} | Type the variable as a {name} reference. What the caller said is written there as text. |
Behavior
- Speaks the prompt (if any). When Let the caller interrupt Input prompts is on, the caller can start talking during the prompt: the prompt stops and the Task listens.
- Waits for the caller to start talking, up to Wait for the caller (s).
- Listens until the caller has been silent for End of speech (ms), and transcribes what they said in the Session language.
- Writes the text to the variable in Store result in, adds it to the conversation, and the Token resumes.
If the caller says nothing in time, the Task ends with warning 4009 ModuleInputEmpty, as on the phone.
Example
An InputTask with Prompt Message Which day would you like to book? and Store result in {day}. The caller answers "next Tuesday, please": {day} now holds next Tuesday, please, and an AI or Date step can turn it into a date.
EndTask (Channel: WebSocketVoice)
Hangs up the call when the Token reaches the End Event.
Properties
| Property | Type | Required | Example | Description |
|---|---|---|---|---|
| (none) | — | — | — | The EndTask has no configurable properties on the WebSocketVoice Channel. |
Behavior
- Every prompt the flow queued before the End Event is spoken to the end.
- The call is hung up, the call panel shows "Call ended", and the Session closes. If the flow stops with an error instead, the call ends with "The flow stopped with an error."
To say goodbye, place an OutputTask with your farewell text right before the End Event.
Example
After a final OutputTask Thank you for calling, goodbye!, the Token reaches the End Event: the caller hears the goodbye, the call panel shows "Call ended", and the Session closes.
Limits
- A call ticket is valid for 60 seconds and for one call only: the button gets a new one for every call.
- A website can request at most 20 call tickets per network per minute, on top of the Environment's per-hour and per-day limits.
- Microphone audio is accepted at real-time speed: audio sent faster than a person can speak is dropped.
- The audio of a call is never stored; the text of what was said and spoken is kept in the Session like a chat conversation, and follows your plan's run retention.
Common recipes
Add a voice assistant to your website
Let visitors ask questions by voice and answer them with an AI step.
- Environment configuration TTS Provider
ElevenLabswith your API key and Voice ID; Listening with your Azure Speech Key and Region, Default Languageen-US; Website: Allow calls from websites on, Websiteshttps://www.example.com, Calls per visitor per hour6, Website calls per day100. Save, deploy, and paste the script tag from the Calls from websites card on your site. - Voice start Call variable
{call}. - OutputTask Output Message
Hi! I'm the Example assistant. What would you like to know? - InputTask Prompt Message empty, Store result in
{question}. - AI step (for example the Claude or OpenAI Module) answers
{question}into{answer}. Ask for short, spoken-style answers: they are read aloud. - OutputTask Output Message
{answer}, then loop back to the InputTask until the caller says they are done. - OutputTask
Thanks for calling, goodbye!and the EndTask hangs up.
Test a phone flow from the browser
Try the voice flow of a phone line without calling the number.
- Open the Process that has an ACS call start.
- Add a Voice start and connect it to the same first step as the phone start.
- In the Environment, fill in the Browser voice Voice and Listening settings (use the same voice as the phone line), and deploy.
- In the test chat, pick the Environment and press Voice: the flow speaks and listens through your microphone, and the run's path is drawn as you go. The phone start keeps serving the phone calls.
Best practices
- Start with the hosted call page share the call page link to try a flow with real people before you add the button to your website.
- Set the limits to your budget Website calls per day, Calls per visitor per hour and Longest call together cap what website calls can cost.
- Keep spoken answers short long prompts add latency and cost; ask AI steps for one or two sentences.
- Turn on caching with ElevenLabs prerendered phrases start playing faster than live synthesis.
- Turn Allow localhost off when you go live it is meant for building a site on your own computer.
Error codes
| Code | Name | Description |
|---|---|---|
| 3005 | TaskInvalidData | An OutputTask has no message, or an InputTask's Store result in is not a {name} reference. See full details |
| 4009 | ModuleInputEmpty | The caller said nothing before the InputTask stopped waiting. See full details |
| 8025 | StartWrongChannel | The Voice start ran on a Channel other than WebSocketVoice or the test chat. Add a start for that Channel to the Process. See full details |