Back to catalog / Agent workflows
Orchestrate a multi-step agent task as a sequential workflow
Split input preparation, specialist work, and final synthesis into dependent nodes that consume earlier outputs.
Goal
Execute task nodes in a defined dependency order and deliver their results to one synthesis step.
Steps
- Break the goal into ordered nodes such as input validation, processing, and synthesis. [workflow]
- Declare ordering explicitly with
Workflow(edges=[(START, prepare, analyze, summarize)]). [workflow] - Build workflow edges and run them; confirm a node starts only after its prerequisites finish. [workflow]
- Define visible failure results and safe stop points so partial conclusions are not presented as complete. [workflow]
How to verify
The event trace shows dependency-ordered execution, and the final node uses only completed outputs.
Troubleshooting
If a node input is empty, check prior output fields and edge mapping; if order is wrong, inspect graph dependencies.
Permissions
Prerequisites
- Python 3.11+, google-adk compatible with the pinned revision, and an isolated test environment
- Configured model-provider credentials for live inference; never place them in code or logs
Permissions
- Use authorized test data only; isolate sessions and credentials per user; obtain human authorization before external side effects
Limitations
This procedure follows Google ADK at the pinned revision; other versions, models, or remote services may differ in APIs and event semantics. Recheck permissions, retention, and recovery before production.
Pinned upstream source
- Repository
- google/adk-python
- File path
- docs/guides/workflow/workflow/index.md
- Pinned commit
e9b74d36140f2594b24c481fb7a3825b2cb01e96- Source checked
- 2026-10-14 · Reviewed against the pinned upstream source
Repository metrics
These values describe the upstream repository, not popularity or likes for an individual skill or playbook.
- Stars
- Not collected
- Forks
- Not collected
- Observed at
- Not collected
No metrics snapshot is available yet.
License: Apache-2.0
Main topic
Turn ecommerce campaign materials into a reviewable weekly brief