incident_workflow.py
OPENAI_API_KEY before running the workflow:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Run repeatable processes with workflows, background execution, human review, and schedules.
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."
)
OPENAI_API_KEY before running the workflow:
uv venv --python 3.12
uv pip install -U "agno[openai,os,sqlite]"
uv run python incident_workflow.py
| Need | Capability |
|---|---|
| Continue work after the client disconnects | Background execution |
| Pause before sensitive or irreversible work | Human-in-the-loop workflows |
| Run recurring jobs | Scheduling |
| Trigger work from another service | Agent API |
| Inspect runs, latency, and failures | Observability |
| 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. |
| Task | Guide |
|---|---|
| Define workflow steps | Building workflows |
| Choose an orchestration pattern | Workflow patterns |
| Run a workflow through AgentOS | Using the AgentOS API |
Was this page helpful?