DialogWright

DialogWright / Agent mode

Agent mode

A natural conversation, with what gets done still fixed. A model talks with your callers from one file that describes your business. Nothing is booked or sent until the line reads it back and the caller confirms.

How it works

  1. Describe the businessOne file: services, prices, hours, common questions and what callers can do. No call flow to design.
  2. The model talksIt answers in its own words and takes details in any order, like a person at the counter.
  3. DialogWright decidesEvery action is checked against your rules and logged. Nothing runs until the caller confirms.
apps/wheelshop-agent/agent.yaml (excerpt): the start of the wheel shop example's file
business:
  name: Example Wheel Works
  hours: Monday to Friday, 7:30 am to 5:30 pm, with two drop-off windows a day; closed Saturday and Sunday. # assumption: the owner corrects these
  timezone: America/New_York
services: # assumption: the owner corrects these
  - name: curb rash repair
    about: Scrapes and gouges on the rim's edge from a curb.
    price: { from: 125, to: 175, per: wheel }
priceCaveat:
  en: "That's a ballpark; the shop firms up the price once it sees the damage."
questions: # assumption: the owner corrects these
  - q: Do I need to bring anything when I drop the car off?
    a: Just the car and its keys; there's no paperwork.

What stays fixed

  • Read back in your wordsBefore anything is booked or sent, the line reads the details back exactly as they will be sent.
  • Only when the caller confirmsA separate model checks that the caller really confirmed. If it is not sure, nothing runs.
  • Your rules, in codeEvery action goes through a policy gate, and every decision is logged.
  • Nothing quietly droppedThe line will not end a call with a request still unconfirmed without asking the caller first.
  • No invented prices or timesPrices come only from your file, and times only from your calendar.
  • Honest about being automatedAsked if it is a person, it says it is the business's automated assistant.

Built for the phone

  • Interrupt any timeCallers can talk over any reply. The line stops and listens.
  • Confirmations are heardIf a caller talks over a read-back, the next one plays in full, so they know what they are confirming.
  • Patient with silenceAfter nine seconds of quiet, the line checks the caller is still there, and ends politely if no one is.
  • Knows your hoursIt greets after-hours callers accordingly and never promises a callback time you do not give.
  • One task at a timeOn a line that does several things, the model sees only the task the caller is on.
  • Phone and chatThe same app answers calls on Telnyx or Twilio, and a chat on your website.

It's a fine line between time to think and "did it hang up on me?"

Jason Stiles, on how long the line should wait when a caller goes quiet before it checks they are still there

Measured, not assumed

  • 0.7 sto the first words of a reply, at the median
  • Halfthe wrong replies, after measuring and fixing what caused them
  • 83%of simulated callers got what they came for, on a line with two tasks
  • 8conversation models compared on the same callers before choosing one

From the wheel shop example, on simulated callers (a model playing each caller) and live test calls.

What a call costs

  • $0.19a call on Telnyx, as billed, for the phone line, recognition and voice
  • $0.24a call on Twilio, as billed
  • Under 1¢a call for the models, in either mode
  • $0.005a minute for Krisp noise suppression on Telnyx, an option

The phone line is most of the cost, so choose the mode and the model for what the job needs.

The mode and the model for a line are chosen by what the job needs, not by their price.

Jason Stiles, after reading what each part of a call costs

Try it

The wheel shop example takes repair requests, dealership bookings and callback notes. Its tests run with no key:

pnpm --filter @dialogwright/example-wheelshop-agent test

Not every line suits agent mode: how to choose.