All pages

Docs / Build

Simulations, drafts and versions

What you change about the assistant (instructions, procedures, help text, actions) goes to a draft. People keep talking to the live version until you publish the draft as the next version. Any earlier version can be made live again from the Versions page.

Scenarios

A scenario is a scripted customer. Dezzi plays the turns against the draft or the live version on the real model, with made-up answers in place of your actions, so nothing reaches your app and nothing is saved in conversations.

{
  "name": "Refund within 30 days",
  "turns": ["I bought the big pack yesterday by mistake, can I get my money back?"],
  "answers": { "request_refund": { "ok": true, "summary": "Refund $19 for the pack bought yesterday" } },
  "mustCall": ["request_refund"],
  "mustNotCall": ["hand_to_human"],
  "handedOff": false,
  "rubric": "The assistant says the refund is proposed and the team decides, and promises no date."
}

Each plan runs simulations a set number of times a day (Developer 5, Starter 20, Growth 50).

In CI

The dezzi command takes your app’s API key. Keep the configuration and scenarios in your repository and check every change before it goes live:

# .github/workflows/dezzi.yml
on: { pull_request: { paths: ['support/**'] } }
jobs:
  simulate:
    runs-on: ubuntu-latest
    env: { DEZZI_URL: ${{ vars.DEZZI_URL }}, DEZZI_API_KEY: ${{ secrets.DEZZI_API_KEY }} }
    steps:
      - uses: actions/checkout@v4
      - run: npx dezzi draft push support/assistant.json
      - run: npx dezzi scenarios push support/scenarios.json
      - run: npx dezzi simulate

Then publish from the dashboard, or with dezzi publish --note "…" on merge.

CommandWhat it does
dezzi draft push <file>Puts any of instructions, procedures, knowledge, actions in the draft.
dezzi scenarios push <file>Replaces the saved scenarios with the file’s list (up to 50).
dezzi simulate [--live] [--name N]Runs the saved scenarios on the draft, or on what’s live; exits 1 when one fails.
dezzi publish [--note "…"]Makes the draft live as the next version.
dezzi versionsLists the versions; * marks the live one.