DialogWright

Voice and chat agents that understand people like an LLM, and act like code.

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.

GitHub repository Quick start

Open source, Apache-2.0. Pre-release. Try it on your laptop, no keys needed.

Two ways to build a line

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

Scripted

What callers hear
Your lines, word for word
What gets done
Each step decided by your code
What you write
The steps, the lines and the rules
The example
The clinic

Agent mode

What callers hear
A model's own words, from a file about your business
What gets done
Read back, and run only when the caller confirms
What you write
One file: services, prices, hours, questions and actions
The example
The wheel shop

How to choose

Choose agent mode when

  • callers should talk to it like a person at the counter,
  • you can accept not choosing every word,
  • you would rather describe your business than design each step.

Choose scripted when

  • every word must be yours, such as a regulated disclosure,
  • callers must prove who they are,
  • you need a knowledge base, several languages or a keypad menu.

Both give you

  • Your rules, enforcedEvery action checked against your policy, and every decision logged.
  • Phone, chat and textsCalls on Telnyx or Twilio, a chat on your website, and texts.
  • Every call in viewA console with each call, turn by turn, and what was done.
  • A policy anyone can readWhat the line may do, written out in plain English for review.

How it is different

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

Traditional IVRs and bots

Understanding
Menus and rigid grammars
What callers hear
Recorded prompts
What it does
A fixed flow
Each turn
Fast
Tuning
Grammars and menu trees

LLM agents

Understanding
Understands natural speech
What callers hear
Generated, different every call
What it does
Whatever the prompt leads to
Each turn
Slower, and pays for every word generated
Tuning
Editing the prompt

DialogWright

Understanding
Understands natural speech
What callers hear
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
Decided by code, or in agent mode run only when the caller confirms it. Every action checked and audited
Each turn
Fast, and a fraction of a cent
Tuning
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.

Decision models are the heart of it

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.

The question, as the example app writes it apps/secretary/slots.yaml (excerpt)
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
The caller says

It's not urgent, but could Sam call me back about the brochure?

What comes back An illustration: four answers, in the model's own format (a 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}}
What code does with it intents.yaml and app.yaml (excerpts)
  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.

Decision models in depth

Questions in a turn
about 20, in one request
Answered in
about 90 to 150 ms at p50, 150 to 250 ms at p95
Cost
309 requests to Jev for about $0.046, about $0.00015 a turn

Measured on our recorded calls, 2026-10-14. The cost is from the front desk example's recording.

Why you would use it

Describe your line in a paragraph. Claude Code builds the app.

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.

  1. Your paragraph
  2. A worksheet
  3. The scaffold
  4. YAML, code, example phrases, test calls
  5. Checks, types and tests pass
  6. Your recording, reviewed

Examples

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.

Example Family Practice

Appointments: schedule, reschedule, cancel. The app to learn from.

Read about the clinic

Example Power & Light

Outages, balances and payment plans behind a one-time code. The app for policy.

Read about the utility

Example Front Desk

Messages, repeated back to the caller in short. The app for generated wording.

Read about the front desk

Harbor Mutual

Claims, and coverage questions answered from a knowledge base. Brokers use the chat for their members. The app for the knowledge base.

Read about Harbor Mutual

Example Wheel Works

Repair requests with a drop-off window, dealership bookings, callback notes. The app for agent mode.

Read about the wheel shop

Quick start

Node 22.19 or later and pnpm. No keys: without a model, each app understands callers from its own labelled example phrases.

  1. Clone and install.

    git clone https://github.com/DialogWright/dialogwright.git
    cd dialogwright
    pnpm install
  2. Talk to the clinic in a text console.

    pnpm --filter @dialogwright/example-clinic cli --client heuristic
  3. 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.