A field technician has one hand on a ladder and wants the job notes before going upstairs. “Find Northwind.” Two jobs come up. “Actually, just the open ones.” Now there is one. “Add a note that I’ll call on Friday.” At each turn, a different part of the application has work to do. The first request searches, the second keeps that search and changes its filter, and the third needs a record, a form and permission to save.
You can try that sequence on this page. The example uses fictional records and a small set of commands. The downloadable version adds a React voice SDK, a private agent connection and a server that can accept or refuse a save. Start with the visible controls if you are choosing a workflow for your product. Start with the same actions in code if you are implementing it. Download the React voice workspace and tests.
- 01Give speech a few named actionsThe agent can navigate, search and prepare a form through the same application functions as the screen controls.
- 02Keep the search when the user corrects a filter“Just the open ones” refers to the current results. Preserve the query and change the status before counting the matches again.
- 03Make a save a separate actionShow the target record and proposed note. Check the user’s permission when they press Save, then return the actual outcome.
- 04Replay what the recogniser heardThe five sample recordings produced “North Wind” and a sentence break inside a command. Both affected what the app did.
01 — Hands onTry a spoken correction
Start with “Find Northwind”. You should see an installation and a renewal. Try “Actually, just the open ones” and watch the search field. Northwind stays in place, the status changes to open and the selected record becomes N17, the installation. Now try “Draft a note: Call on Friday”. The words appear on the correct record. You can save the sample note or cancel the draft.
The example buttons and typed commands run entirely in this page. On a browser that supports dictation, the microphone button listens for one English request and feeds its final transcript into the same command handler. The response is displayed on screen. Your browser may use an online recognition service for audio. You can use every example by keyboard if speech recognition is unavailable or you prefer to keep the microphone off. MDN’s browser speech recognition reference.
Try the workspace
These sample records reset when you reload. The microphone uses your browser’s speech service, which may process audio online. Typing works without microphone access.
Dashboard
3 sample records · 2 open · 1 closed
Choose a request or type one below.
02 — Action designChoose what someone can do by voice
Start by watching a person complete a task using the existing app. Where do they have to put down a tool, remember a customer number or repeat information that is already on screen? In the field-service example, opening a screen saves little effort on its own. Finding one job among similar names and putting a short dictated note on it can save several switches between a phone and a work surface.
Write down the inputs and the visible result of each action. In the starter, navigation accepts either Dashboard or Records. A search accepts a name or ID. Preparing a note takes the text to put in the selected record’s form. These functions give your product team a small contract to review. Someone can change the layout of the records page while leaving the meaning of “find Northwind” intact.
“Open the records”
The workspace changes screen and returns its new name. An unsupported screen leaves the person in the current view.
“Find Northwind”
Return the matching records the user can see. Two matches leave the selection empty so that a later note cannot silently attach to the wrong job.
“Draft a note: Call on Friday”
Populate the review form for the selected record. The person can dictate replacement wording, discard the draft or press Save.
03 — Shared contextGive the agent its bearings
“Open the first one” changes meaning when somebody sorts the list, taps a different customer or receives a new result. Keep the application’s current screen, query, filter and selected record together. In the starter, a tool called workspace_action accepts read_screen to retrieve that state. It also returns the new state after each supported action. A user who switches records manually has already changed the answer to the next question.
Send a compact description that will help the agent resolve a reference. In the example, that is a list of IDs, display names and statuses. In a real account, build the list from records the signed-in person may read, and leave fields such as customer contact details out when they serve no purpose. If a name returns two rows, let the agent read their distinguishing details and ask which one the user means. Sorting order alone is a poor way to choose the customer who receives an update.
Make corrections specific. A fresh “Find Cedar” starts a new search and clears the old filter. “Just the closed ones” keeps the search term in place and changes a single field. If the selection moves to another record, the example clears the old draft and reports that it did so. That small rule prevents the Friday note from following the technician from Northwind to Cedar.
04 — React integrationConnect the same actions to a private agent
Unzip the starter, use Node 24 or newer and run npm ci, npm test and npm run dev. Open the local address in its README and sign in with the editor code printed by that server. At this point the record example works by keyboard. Press Save, reload and look up N17 again. The note survives a page refresh because the local server holds it in memory until you stop the process.
For a model-driven conversation, configure your own private ElevenLabs agent. Register the client tool named workspace_action with string parameters action and value. Enable Wait for response so the conversation receives the tool result. The README supplies the descriptions and a short agent prompt. The React app registers the handler under the identical name inside a ConversationProvider. A connected user can speak naturally or send a typed message to the agent. ElevenLabs client tools · React SDK documentation.
Put the agent ID and API key in the starter’s server environment and restart it. When a signed-in person starts voice, the server obtains a signed WebSocket URL for the configured agent. The browser uses that URL to connect. End the session when you are finished. This path uses your provider account and its allowance. An app you distribute will also need a decision about who may start sessions, for how long and at whose expense. Signed conversation URL reference.
05 — Write accessMake the app answer “Did it save?”
A draft gives the person a chance to spot a wrong name or date. It also gives the application a clear point at which to check authority. The article demo simulates that decision in the tab. In the download, the Save button sends a record ID, proposed text and request ID to a local HTTP endpoint. The server reads the session cookie issued at sign-in, identifies the workshop user, checks the record-level grant and validates the note. A role claimed in the request body cannot grant permission.
Try the same note on N17 with the editor and viewer codes in separate browser windows. The editor receives a saved note number. The viewer can prepare the same form but receives a read-only result and keeps the draft. The editor gets the same refusal on Cedar, illustrating why the role and the target record both matter. The React app shows the returned result and, while voice is connected, supplies it to the conversation as a context update for the next turn.
Consider a dropped reply after the server has already stored the note. A second press of Save with the same request ID should recover the original receipt. The starter handles that retry and rejects attempts to reuse the identifier with different text. For a database-backed app, enforce uniqueness for the request ID and user in the same transaction as the write. A friendly spoken acknowledgement needs the same evidence as the receipt on a screen.
06 — Turn-takingHandle a change of mind while work is under way
There are two things to interrupt. First is the voice answering the old question. Second is any unfinished action that could change the screen. If a person says “Actually, just the open ones” while the agent is reading both names, the test should finish with audible silence from the old answer and a list containing only the open installation. A quick stop in playback tells you little about which filter the app eventually applied.
The sample searches a tiny local list synchronously. An app searching a live database also needs to account for results arriving out of order. Give each search a revision, advance it when the person corrects the query or filter, and apply a response only if its revision still matches. For a save that has already reached the server, fetch its receipt before telling the person whether a cancellation took effect. Handling background work in a voice conversation.
Keep a visible Stop control, a usable text path and a way to inspect the proposed values. Someone sharing a desk may speak the search privately through a headset and type the note. A person working in a noisy workshop may want to tap a result after the agent narrows the list. Both interactions should preserve the same selected record and the same permissions.
07 — Recorded exampleWhat five recorded commands actually produced
On December 1, 2026, five short English lines were rendered to separate audio files with the macOS Samantha voice and transcribed locally with Whisper large-v3-turbo. The transcripts were replayed in order against one workspace. The first pass opened the records. The next line came back as “Find North Wind.” Searching for that spelling returned zero matches. The following correction changed the filter to open, as requested, but still left the person with an empty list.
The fourth transcript read “Draft a note. Call on Friday.” The command handler expected a space, comma or colon after “note” and did not open the form. After adjusting name matching to ignore spaces and accepting a full stop at the dictation boundary, the same recorded inputs found two Northwind jobs, selected N17 after the correction, prepared “Call on Friday” and discarded it on the fifth request. The downloadable test contains the original five transcripts and the expected state after every turn.
These were five separate synthesised clips and a local transcription engine. They exercise the command path and reveal how punctuation or spacing can change its outcome. Measuring live timing and recognition quality calls for recordings from human speakers on the target device and voice service. For names that sound alike, ask the person to choose among the matches before preparing a form. Testing names and numbers in a voice workflow.
08 — Product trialRun one job from first word to saved record
Ask a colleague to run the connected starter on a device your customers use. Give them the desired outcome, such as leaving “Call on Friday” on the open Northwind job, and let them choose the words. Watch which names they repeat, where they look for confirmation, and whether they can recover when the first search is ambiguous. Repeat with microphone permission denied, then with the viewer account. Record the visible state and the final record ID alongside any transcript.
For an interruption trial, have the agent start reading both names aloud and ask your colleague to cut in. Note when the old audio stops, which name the agent acknowledges and whether the correct record stays selected after the turn. This test needs a real audio session on the target device. The starter’s automated checks cover the action and permission paths, and its provider exchange uses a test response. Download the turn-taking pilot scorecard.
For a pilot in an existing product, bring a representative account, its read-only counterpart and a task the team can repeat on a phone. Digital Applied’s web development team can use that pair to connect the first voice action to your application’s own sign-in and records.
After a successful save, can someone reload the record and see exactly one note with the intended wording? After a denial, can they tell that the draft is still available and the original record is intact? Give the person doing acceptance testing both accounts.
Start with the task that costs someone a free hand
Pick one search, one correction and one form that people already use. Give each action a visible result and make the server supply the receipt. Then hand the workflow to someone who knows the job and listen to how they actually ask for it.