Building a Simple Planning Workflow
Build a simple planning workflow from scratch that creates a plan, validates it, executes it, and handles failures.
10 min•By Priygop Team•Updated 2026
Planning Workflow Exercise
Design and build a planning workflow for a 'Customer Onboarding Agent'.
The agent receives: customer name, email, company, and plan tier (basic/pro/enterprise).
Your planning workflow should:
- 1Goal definition: write the goal statement for the agent
- 2Task decomposition: list the major tasks (at least 4) the agent must complete to onboard a new customer
- 3Conditional logic: identify at least two decision points in the workflow (e.g., different steps for different plan tiers)
- 4Dependencies: which tasks depend on others? Draw the dependency chain.
- 5Approval gates: which steps require human approval before the agent can proceed?
- 6Failure handling: for each task, what should the agent do if it fails?
- 7Write the plan as a Python list of task dictionaries, following the structure used in this module.