Skip to main content

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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​

FieldTypeRequiredDescription
TTS ProviderstringYesThe 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.

FieldTypeRequiredDescription
ElevenLabs API KeystringYesYour ElevenLabs API key.
Voice IDstringYesID of the voice to speak with (Voice Library or a voice you cloned).
ModelstringNoeleven_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 / SpeednumberNoVoice settings: 0 to 1, 0 to 1, and 0.7 to 1.2. Defaults 0.5, 0.75 and 1.0.
Prerender and cache phrasesbooleanNoOn (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}stringNoShown 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.

FieldTypeRequiredDescription
Azure Speech EndpointstringNoAzure Speech endpoint URL (e.g. https://italynorth.api.cognitive.microsoft.com).
Azure Speech KeystringYesAzure Speech subscription key.
Azure Speech RegionstringNoRegion of the Speech resource. Default: italynorth.
Default VoicestringNoNeural voice (e.g. it-IT-ElsaNeural, en-US-JennyNeural). Default: it-IT-ElsaNeural.

OpenAI TTS settings shown when TTS Provider is OpenAI.

FieldTypeRequiredDescription
OpenAI API KeystringYesOpenAI API key (sk-...).
ModelstringNoOne of gpt-4o-mini-tts, tts-1, tts-1-hd. Default: gpt-4o-mini-tts.
VoicestringNoVoice persona, e.g. marin, cedar, alloy, nova. Default: marin.
SpeednumberNoPlayback speed (0.25–4.0). Default: 1.0.

Resemble TTS settings shown when TTS Provider is Resemble.

FieldTypeRequiredDescription
Resemble API KeystringYesResemble.ai API token.
Voice UUIDstringYesUUID of the Resemble voice (from the Resemble dashboard).

Listening​

FieldTypeRequiredDescription
Azure Speech KeystringYesKey of the Azure Speech resource that transcribes the caller.
Azure Speech RegionstringYesRegion of that Speech resource (e.g. italynorth). Default: italynorth.
Default LanguagestringNoLanguage 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)integerNoSilence that ends what the caller says (300 to 5000). Default: 1000.
Wait for the caller (s)integerNoHow long an InputTask waits, after its prompt, for the caller to start answering (2 to 30). Default: 8.
Let the caller interrupt Input promptsbooleanNoLike the phone: speaking during an Input prompt stops it and answers. Output prompts always play to the end. Default: on.

Limits​

FieldTypeRequiredDescription
Longest call (minutes)integerNoA call ends after this many minutes (1 to 60). Default: 10.
Calls at onceintegerNoCalls 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.

FieldTypeRequiredDescription
Allow calls from websitesbooleanNoTurns on the website call button and the hosted call page for this Environment. Default: off.
Allow localhost (testing)booleanNoAlso accepts pages served from localhost / 127.0.0.1 on any port, to try the button while you build a site. Default: off.
WebsitesstringNoThe 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 textstringNoThe 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 hourintegerNoCalls one network (IP address) may start in an hour (1 to 60). Default: 6.
Website calls per dayintegerNoCalls all website visitors together may start in 24 hours (1 to 10000). Default: 100. Past it, the button answers that calls are not available.
warning

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>
AttributeRequiredExampleDescription
data-environmentYes3f2b1c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5dThe Environment token: the call runs the Process deployed to this Environment.
data-engineYeshttps://engine.ew-flow.comWhere the calls go. Keep the value from the card.
data-labelNoCall usThe button's tooltip and accessible name. The card fills it with the Button text setting. Default: Chiamaci.
data-positionNoleftright (default) or left: the corner of the floating button.
data-containerNo#call-boxPuts the button inside this element instead of floating in a corner.
data-languageNoen-USThe 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​

PropertyTypeRequiredExampleDescription
Call variablevariableNo{call}The variable that receives the call. Default: {call}.

Variables​

VariableExampleDescription
{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}AnnaThe caller's name on portal test calls; empty for website calls.
{call.to}voiceAlways voice.
{call.callId}wsvoice:4d2f…The id of this call.
{call.direction}inboundAlways inbound.
{call.language}it-ITThe call's language: the button's data-language, else the Environment's Default Language.
{call.channel}WebSocketVoiceThe Session's Channel (Chat in test mode).
{call.isTest}falsetrue 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​

  1. Reads the caller and the language the call was started with.
  2. Sets the Session language (the language the flow speaks and listens in) and writes {call}.
  3. 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​

PropertyTypeRequiredExampleDescription
Output MessagestringYesThanks {call.name}, your order has shipped.The text spoken to the caller. Supports {variable} placeholders.

Behavior​

  1. Resolves every {variable} placeholder against the current Session variables.
  2. Adds the text to the Session's conversation and speaks it to the caller with the configured voice, in the Session language. With ElevenLabs and caching on, the fixed parts come from the Environment's prerendered cache and only the {variables} are synthesized during the call.
  3. 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​

PropertyTypeRequiredExampleDescription
Prompt MessagestringNoHow can I help you?Spoken before listening. Supports {variable} placeholders. Leave it empty to listen straight away.
Store result instringYes{request}Type the variable as a {name} reference. What the caller said is written there as text.

Behavior​

  1. 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.
  2. Waits for the caller to start talking, up to Wait for the caller (s).
  3. Listens until the caller has been silent for End of speech (ms), and transcribes what they said in the Session language.
  4. 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​

PropertyTypeRequiredExampleDescription
(none)———The EndTask has no configurable properties on the WebSocketVoice Channel.

Behavior​

  1. Every prompt the flow queued before the End Event is spoken to the end.
  2. 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.

  1. Environment configuration TTS Provider ElevenLabs with your API key and Voice ID; Listening with your Azure Speech Key and Region, Default Language en-US; Website: Allow calls from websites on, Websites https://www.example.com, Calls per visitor per hour 6, Website calls per day 100. Save, deploy, and paste the script tag from the Calls from websites card on your site.
  2. Voice start Call variable {call}.
  3. OutputTask Output Message Hi! I'm the Example assistant. What would you like to know?
  4. InputTask Prompt Message empty, Store result in {question}.
  5. AI step (for example the Claude or OpenAI Module) answers {question} into {answer}. Ask for short, spoken-style answers: they are read aloud.
  6. OutputTask Output Message {answer}, then loop back to the InputTask until the caller says they are done.
  7. 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.

  1. Open the Process that has an ACS call start.
  2. Add a Voice start and connect it to the same first step as the phone start.
  3. In the Environment, fill in the Browser voice Voice and Listening settings (use the same voice as the phone line), and deploy.
  4. 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​

  1. 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.
  2. 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.
  3. Keep spoken answers short long prompts add latency and cost; ask AI steps for one or two sentences.
  4. Turn on caching with ElevenLabs prerendered phrases start playing faster than live synthesis.
  5. Turn Allow localhost off when you go live it is meant for building a site on your own computer.

Error codes​

CodeNameDescription
3005TaskInvalidDataAn OutputTask has no message, or an InputTask's Store result in is not a {name} reference. See full details
4009ModuleInputEmptyThe caller said nothing before the InputTask stopped waiting. See full details
8025StartWrongChannelThe 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