Skip to navigation

playbooks

Read and change the Playbooks of your AI Agent. A v1 Playbook holds Markdown. A v2 Playbook holds structured steps in JSON.

Commands

CommandWhat it does
playbooks listLists Playbooks, one page at a time. --tags filters by tag ID.
playbooks get <id>Shows one Playbook. --content adds the Markdown or the step tree.
playbooks createCreates a Playbook from Markdown, from JSON steps, or from a file.
playbooks update <id>Changes the content, settings, tags, or availability rules of a Playbook, or turns it on or off.
playbooks update-step <id> <step-id>Sets or clears the conversation deviation behavior of one Ask step in a v2 Playbook.
playbooks deviations <id>Shows the conversation deviation behavior of a v2 Playbook and of each Ask step.
playbooks delete <id>Deletes a Playbook.
playbooks steps-schemaPrints the v2 step format, with each step type and examples.
playbooks export-steps <id>Exports the steps of a v2 Playbook as JSON, ready for create or update.
playbooks upload-image <file>Uploads an image for a v2 Send step and prints its attachment and placeholder.
playbooks generateDrafts a Playbook from instructions or from a PDF. It does not save the draft.

Examples

Create a v2 Playbook from a JSON steps file. The new Playbook is off:

adacli acme playbooks create --name "Order status" --version 2 --file order-status.json \
--description "The end user asks where their order is"

Edit the steps of a v2 Playbook. Export the steps, change the file, then send it back:

adacli acme playbooks export-steps <playbook-id> --sections -o steps.json
adacli acme playbooks update <playbook-id> --file steps.json

Turn on a Playbook:

adacli acme playbooks update <playbook-id> --active

Keep the AI Agent in the Playbook when the end user asks for a human at one Ask step, then check the result:

adacli acme playbooks update-step <playbook-id> <step-id> --on-human-request stay_in_playbook
adacli acme playbooks deviations <playbook-id>

Draft a Playbook from a policy document:

adacli acme playbooks generate --pdf refund-policy.pdf --instructions "Focus on self-service refunds"

Details

  • create makes an inactive Playbook unless you pass --active. An inactive Playbook does not run in conversations.
  • The name has a maximum of 128 characters. The description has a maximum of 512 characters. --referenced-articles takes a maximum of 5 article IDs.
  • --file reads a .md file as v1 Markdown and a .json file as v2 steps. An update with JSON steps makes the Playbook v2.
  • Start each steps update from export-steps <id> --sections. The export keeps the reasoning level and the images of each step.
  • upload-image accepts a PNG, JPEG, or GIF file of 5 MB or less. Save a Playbook that uses the image within 24 hours, or the upload expires.
  • update-step takes inherit to clear an override. The step then follows the Playbook default.
  • delete fails while another Playbook references the Playbook. Before you turn off or delete a Playbook, run start-triggers list --playbook <id>.
  • In --rules, v() takes a variable ID from adacli acme variables list, not a variable name.

For every option of a command, run it with --help, for example adacli acme playbooks create --help.

  • start-triggers: run a Playbook when a conversation starts on a channel.
  • api-tools: manage the API tools that a Playbook runs.
  • changesets: stage and test Playbook changes before they go live.