Learn · Agentic architecture & orchestration · CCAR-F

Workflows vs agents

Six patterns from one call to a free agent, and the rule for picking: if the steps are known, let code control the path.

Key ideas

Worked example: Picking the pattern for an invoice pipeline

Every invoice is extracted, validated against the PO, then summarised. The steps never change, so use a prompt chain with a code gate after extraction, not an agent that decides what to do next. If invoices came in three distinct types, add a router in front.

Exam traps

Official docs

Practise CCAR-F questions · Next lesson: Coordinators and subagents