# Write Playbooks

> Tell Torben how to handle a kind of request, in plain language, and test it before it goes live.

URL: https://www.torben-ai.com/docs/torben-ai/playbooks

A Playbook tells Torben how to handle one kind of request. It is a short set of steps written in plain language, not a flow chart and not a separate bot.

Torben picks the Playbook that matches each request and follows it.

## What a Playbook contains [#what-a-playbook-contains]

| Part | What it means |
| --- | --- |
| **Starts when** | What starts the Playbook: **A new customer message**, or a timed start |
| **Applies to** | Which tickets it handles: **Topic**, **Channels**, **Except**, and **Only when** for extra conditions. With no conditions, it shows **Any ticket**. |
| **Steps** | What Torben should do, in order |
| **Actions** | The actions this Playbook may call, such as an order lookup, and whether each one **Runs on its own** or **Asks you first** |
| **Replies** | **Send directly**, or **Ask for approval first** |
| **Status** | **Live**, **Draft** or **Archived** |

<Callout title="Playbooks set the limits">
Torben takes actions only when a live Playbook names them. If no Playbook allows an action, Torben doesn't take it. The exception is a channel's [live lookups](/docs/torben-ai/channels#live-lookups), which run only read-only actions you ticked for that channel.
</Callout>

### Timed starts [#timed-starts]

Besides a new customer message, a Playbook can start on its own:

- **Delay after their last message**
- **Delay after a resolved ticket**
- **A CSAT score is given**, for the scores you pick from 1 to 5
- **A snooze ends**. It starts once per ticket, after an earlier run of this Playbook on the ticket.

A delay is at most 20 days. Timed starts run only while Torben answers on all channels of your workspace.

## Example [#example]

<Callout title="Where is my order">
Handles requests where the customer asks about delivery status.

1. Find the order from the order number or the customer's email.
2. Look up the current shipment status.
3. If the parcel is delivered, say so and close the ticket.
4. If it is late by more than 5 working days, apologize and hand over to the team.
5. Otherwise, reply with the status and the tracking link.
</Callout>

## What Playbooks can do [#what-playbooks-can-do]

Besides replying, Playbooks can:

- start from system emails, such as notifications from a carrier, a returns tool, or a review platform
- send an email to a third party, such as a carrier or a warehouse
- set a custom field or add a CSAT link
- stop the AI on a ticket, so your team takes it from there
- check stock in Shopify for each store location, or a SKU's stock and restock date in Hive
- put a PlentyONE order on hold when a customer asks to cancel or change it before it ships

If a Playbook needs an integration you haven't connected, the Playbooks list marks it with **Needs your … to work**. Until you connect it, Torben tells the customer the team will check and hands the ticket over.

## Create a Playbook [#create-a-playbook]

Only admins can create Playbooks. On **Playbooks**, choose **New playbook**. Torben asks **What should this playbook do?**

- Describe it and choose **Create with Torben**. Torben writes the Playbook as a draft in the chat. When it's done, choose **Turn on** to make it live, or **Open playbook** to review it first.
- Pick a suggestion **From your open tickets**, or **Or start from an example**.
- Choose **Start empty** to write it yourself.

If your workspace has no Playbooks yet, the page shows **Teach Torben his first playbook** with the same choices.

If you used AI Agents in Chatarmin CX before, Ask Torben can turn them into Playbooks. Ask it to “migrate our agents to Playbooks”. It designs a set of Playbooks from your agents, shows you the design, and creates them as drafts once you confirm.

## Test before you go live [#test-before-you-go-live]

Open a Playbook and choose **Test**. Nothing is sent to customers.

<Steps>
<Step>
Pick a past ticket, or type a **Customer message**.
</Step>

<Step>
Torben checks which Playbook would answer. If another Playbook would take the ticket, you see **It would go to** with its name. You can still choose **Test anyway**.
</Step>

<Step>
Choose **Run test**. Torben reads your real data, but changes are only described, never made. You see the reply the customer would get, or that a teammate would take over the ticket.
</Step>
</Steps>

Tests use the saved version of the Playbook, so save your changes first. Adjust the steps until the results look right.

## Turn a Playbook on [#turn-a-playbook-on]

Set the status in the **Status** column of the Playbooks list, or choose **Turn on** on the Playbook. Drafts never answer customers. Only live Playbooks do.

The list has the tabs **All**, **Active**, **Drafts** and **Archived**. **Archive** stops a Playbook from handling new tickets. You can **Restore** it as a draft at any time.

### Change a live Playbook [#change-a-live-playbook]

When you edit a live Playbook, your changes are saved but not live yet. The Playbook shows **Not live yet**: customers still get the published version, and tests use your changes.

- Choose **Publish** to make your changes live.
- Choose **Discard changes** to keep the published version.

If someone published another change in the meantime, discard your changes and make the edit again.

**Change history** on the Playbook lists each saved version and who made it: you, Torben, or the Chatarmin team.

## Phone [#phone]

Phone flows can use a Playbook too, so a caller gets the same handling as a customer who writes in.

## Skills [#skills]

Skills hold the text Playbooks reuse, such as reply templates and hand-over rules. A Playbook names the skills it uses in its steps, and the Playbook page lists them under **Skills**.

- Open a skill from the Playbook page to read or change it. Admins, and the teammate who wrote a skill, can change its name, what it is for, and **What Torben reads**, then choose **Save**. If other Playbooks or AI Agents use the skill too, the dialog says so above **Save**, for example **Also used by 2 playbooks and 1 AI agent**.
- On **Playbooks**, choose **Skills** to see every skill with the Playbooks that use it. Choose **New skill** to add one.

The skill list in Settings stays where it is and shows the same skills.