Example Family Practice
Appointments: schedule, reschedule, cancel. The app to learn from.
Callers say what they want in their own words, and are understood. What the line does is predictable: your rules decide every action, and every decision is logged. Script every word, or let a model hold the conversation. Either way, replies are fast.
Open source, Apache-2.0. Pre-release. Try it on your laptop, no keys needed.
Both understand callers in their own words, and both check every action against your rules and log it. They differ in who chooses the words the caller hears.
| Scripted | Agent mode | |
|---|---|---|
| What callers hear | Your lines, word for word | A model's own words, from a file about your business |
| What gets done | Each step decided by your code | Read back, and run only when the caller confirms |
| What you write | The steps, the lines and the rules | One file: services, prices, hours, questions and actions |
| The example | The clinic | The wheel shop |
Three ways to answer a phone line or a chat.
| Traditional IVRs and bots | LLM agents | DialogWright | |
|---|---|---|---|
| Understanding | Menus and rigid grammars | Understands natural speech | Understands natural speech |
| What callers hear | Recorded prompts | Generated, different every call | The lines you approved. In agent mode, the model talks, and before anything is booked or sent, the line reads the details back in your words |
| What it does | A fixed flow | Whatever the prompt leads to | Decided by code, or in agent mode run only when the caller confirms it. Every action checked and audited |
| Each turn | Fast | Slower, and pays for every word generated | Fast, and a fraction of a cent |
| Tuning | Grammars and menu trees | Editing the prompt | Measured on recorded and simulated calls |
DialogWright: an LLM's understanding, with predictable actions and words as fixed as you choose, at a fraction of a cent a turn.
A decision model reads what the caller said and answers questions your app asks about it: yes or no, which of these options, how much. Each answer comes with a probability, and the model never writes text. DialogWright asks all of a turn's questions in one request, and your code acts on the answers against thresholds you set. Below, one turn in the front desk example.
recipient:
type: choice
options:
riley:
say: Riley Moreno
means: The message is for Riley Moreno, or Riley, or the caller asks about them
sam:
say: Sam Okafor
means: The message is for Sam Okafor, or Sam, or the caller asks about them
It's not urgent, but could Sam call me back about the brochure?
noul is its yes-or-no)intent {"type":"choice","choice":"take_message",
"probabilities":{"take_message":0.99,
"agent":0.01,"urgent":0}}
recipient {"type":"choice","choice":"sam",
"probabilities":{"sam":1,"riley":0,
"jordan":0,"anyone":0}}
messageGiven {"type":"noul","noul":0.97}
urgency {"type":"score","score":0,
"probabilities":{"low":1,"normal":0,
"high":0}}
urgent:
priority: { correctsForm: true, threshold: URGENT_SURE }
thresholds:
URGENT_SURE: 0.4
Urgency reads 0, under the app's 0.4, so the call is not put through as urgent. The app starts taking a message, fills in Sam, and asks the caller's name.
Jev is the default, TypeSafe's decision model (jev-1.13). Any model that
answers the same way (TypeSafe's System One API) can replace it, once measured on the app's own recorded
calls, as Microsoft-Decision-1 has been.
Why it is cheap: it writes no text, only a few probabilities, so a turn pays almost only for reading.
Measured on our recorded calls, 2026-10-14. The cost is from the front desk example's recording.
DialogWright ships a Claude Code skill, create-app, in every project
npm create dialogwright makes. Say what callers can ask for, who must verify, what must be
confirmed and what goes to a person. Claude Code plans the app, scaffolds it, writes the YAML, the code,
example caller phrases and scripted test calls, and keeps going until the checks, the type check and the
tests pass. Then it gives you the command to record a real model's answers, and reviews what the recording
changed.
The utility and front desk examples were each built this way, from one paragraph.
Read the skill Your first app, from a paragraph More for assistants
Five fictional organizations. The four scripted ones run with no key. The wheel shop, in agent mode, runs its tests with no key and needs its model's key to take a call.
Appointments: schedule, reschedule, cancel. The app to learn from.
Outages, balances and payment plans behind a one-time code. The app for policy.
Messages, repeated back to the caller in short. The app for generated wording.
Claims, and coverage questions answered from a knowledge base. Brokers use the chat for their members. The app for the knowledge base.
Repair requests with a drop-off window, dealership bookings, callback notes. The app for agent mode.
Node 22.19 or later and pnpm. No keys: without a model, each app understands callers from its own labelled example phrases.
Clone and install.
git clone https://github.com/DialogWright/dialogwright.git
cd dialogwright
pnpm install
Talk to the clinic in a text console.
pnpm --filter @dialogwright/example-clinic cli --client heuristic
Start an app of your own.
pnpm create-app <name>
A real phone line needs a carrier account and a decision model's key (and, for generated wording, a key for the model that words it): run it on a machine you own.