---
title: "Authoring overview"
description: "Find the authoring guide for each task in building a workflow."
---

An Andon workspace contains workflow code, prompts, and small source data
under `andon/`, with workflows declared in `andon.toml`. Start with the
[first-workflow guide](/first-workflow) or run
`andon docs show first-workflow`. These topics describe the installed SDK. Use
this contract, the tool catalog, and `andon workspace validate` as the authority for
SDK imports and call shapes.

## Choose a guide

| Guide | What you can do |
|---|---|
| [Workspaces and data](/authoring/workspaces-and-data) | Sync source, recover from conflicts, define inputs, and package reference data. |
| [Workflow definitions](/authoring/workflow-definitions) | Declare steps and child workflows, choose operator-facing names, and preserve identity. |
| [Orchestration](/authoring/orchestration) | Run steps in parallel, map over lists, branch, loop, call child workflows, and order effects. |
| [Human review and waits](/authoring/human-review-and-waits) | Pause for a person's decision, an event or a wake time, and read the outcome safely. |
| [Retries and durability](/authoring/retries-and-durability) | Choose what a step retries, what fails fast, and how side effects survive a rerun. |
| [Agents and models](/authoring/agents-and-models) | Define an agent's inputs, prompt and output, choose a model, and validate output. |
| [Agent tools](/authoring/agent-tools) | Write and grant tools, and decide when a tool returns a result or asks for a retry. |
| [Documents and files](/authoring/documents-and-files) | Read and extract documents with citations, render pages, and pass files between steps. |
| [Start and resume runs](/authoring/triggers) | Start or resume work from a schedule, a webhook, Gmail, or S3. |
| [Testing and debugging](/authoring/testing-and-debugging) | Trial a change, inspect run evidence, diagnose errors, and compare results. |

## Find a topic in the CLI

Each guide above collects several chapters, and the CLI serves each chapter
as its own topic: `andon docs list` prints their IDs. Read the agent
declaration and examples with `andon docs show authoring/agents`. Run
`andon docs list --search <text>` to find a topic by its content. Use
`andon --help` to find a command and append `--help` for its arguments, or
`andon commands --json` for every command as structured data. That list
declares authentication in `authentication_required` and any flag that
bypasses it in `authentication_required_unless` (`offline` for
`platform-tools`).

## Save and trial a workflow

```bash
andon workspace push --message "Save the workflow"
andon workspace validate --revision <revision>
andon deployments create --revision <revision> --message "Build the workflow"
andon workflows list --deployment <deployment_id>
andon runs start <workflow_key> --deployment <deployment_id> --input-file inputs/case.json
andon runs watch <run_id>
andon runs show <run_id>
```

Use the revision returned by the save and the deployment ID returned by the
build. To answer a review, use `andon signals list --run <run_id>`,
`andon signals show <signal_id>`, and
`andon signals respond <signal_id> --response '{...}'`.

After the trial, read the current active deployment with
`andon deployments list --active`. Review
`andon deployments diff <active_id> <tested_id>` and, when the organization has
triggers, `andon deployment-triggers show <tested_id>`, then ask for approval
of the tested deployment. Activate with `andon deployments activate <tested_id>
--expected-active-deployment <active_id>`. Omit the flag for first activation.
If the active deployment changes, review the new diff before retrying.
