> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflow Automation

> Run repeatable processes with workflows, background execution, human review, and schedules.

Engineering and operations teams use workflows to automate processes that need consistent execution and a traceable result. Agno combines model-driven steps with branches, loops, parallel work, approval gates, background execution, schedules, and persisted run history.

```python incident_workflow.py theme={null}
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.workflow import Workflow

triage = Agent(
    name="Triage",
    model="openai:gpt-5.5",
    instructions="Extract the issue, severity, and responsible team.",
)

action_plan = Agent(
    name="Action Plan",
    model="openai:gpt-5.5",
    instructions="Turn the triage result into a short action plan.",
)

incident_workflow = Workflow(
    name="Incident Triage",
    steps=[triage, action_plan],
    db=SqliteDb(db_file="tmp/workflows.db"),
)

incident_workflow.print_response(
    "Checkout requests return HTTP 500 after the latest deployment."
)
```

Create a virtual environment, install the OpenAI, AgentOS, and SQLite integrations, and set `OPENAI_API_KEY` before running the workflow:

```bash theme={null}
uv venv --python 3.12
uv pip install -U "agno[openai,os,sqlite]"
uv run python incident_workflow.py
```

Each step receives the previous step's output. The database stores workflow runs so they can be inspected after execution.

## Choose the control model

| Requirement | Use |
| - | - |
| One model-driven task | [Agent](https://agno-v2.mintlify.site/agents/overview.md) |
| Dynamic delegation among specialists | [Team](https://agno-v2.mintlify.site/teams/overview.md) |
| Fixed steps, branches, loops, or parallel groups | [Workflow](https://agno-v2.mintlify.site/workflows/overview.md) |

## Production building blocks

| Need | Capability |
| - | - |
| Continue work after the client disconnects | [Background execution](https://agno-v2.mintlify.site/background-execution/overview.md) |
| Pause before sensitive or irreversible work | [Human-in-the-loop workflows](https://agno-v2.mintlify.site/workflows/hitl/overview.md) |
| Run recurring jobs | [Scheduling](https://agno-v2.mintlify.site/features/scheduling.md) |
| Trigger work from another service | [Agent API](https://agno-v2.mintlify.site/features/api.md) |
| Inspect runs, latency, and failures | [Observability](https://agno-v2.mintlify.site/features/observability.md) |

## Common patterns

| Pattern | Workflow shape |
| - | - |
| Intake and triage | Extract input, classify it, route it, and request review when needed. |
| Data enrichment | Fetch records, enrich them in parallel, validate output, and persist results. |
| Recurring reports | Collect data, analyze it, render a report, and run on a schedule. |
| Long-running research | Start in the background, persist events, and reconnect to the stream. |

## Next steps

| Task | Guide |
| - | - |
| Define workflow steps | [Building workflows](https://agno-v2.mintlify.site/workflows/building-workflows.md) |
| Choose an orchestration pattern | [Workflow patterns](https://agno-v2.mintlify.site/workflows/workflow-patterns/overview.md) |
| Run a workflow through AgentOS | [Using the AgentOS API](https://agno-v2.mintlify.site/agent-os/using-the-api.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.