Agentic AI in Practice · Module 04

Module 4 · Workflows & AI Task Execution

The workflow layer: stop being the wiring between the steps.

Five short lessons on turning a task that works into a task that repeats. See its four moments, draw the diagram and its twin table, pick the smallest pattern that fits, describe the workflow so an AI can build it, give every loop a stop rule, and assemble it once so it runs any week.

  • Four moments
  • Diagram and table
  • Five patterns
  • Loop engineering
  • Stop rules

Module introduction

Stop being the wiring between the steps.

By the end of Module 3 you had three good teammates: the intern who drafts, the auditor who checks, and the Data Steward who organizes the evidence. Each step works. The problem the notes name is that you are still the wiring between them, copying output from one chat to the next and remembering which step comes first. Module 4 adds the workflow layer, which makes the whole task visible as one shape that you can draw, hand to someone else, and eventually let an AI build and run.

The finance workflow as a blueprint · Module 4 lecture notes pp. 2-3
  1. Step 1 · Data StewardInput prepRaw files become a clean ledger.
  2. Step 2 · InternDraft summaryFrom the clean ledger.
  3. Step 3 · InternCategorizeThe draft becomes a categorized table.
  4. Step 4 · AuditorAudit gatePass goes on to delivery. Fail loops back to the draft.
  5. Step 5 · HumanDeliverThe email and the reminder.

Boxes are steps, arrows are what flows, and the audit gate is the diamond. Its fail arrow returns the work to Step 2.

Your learning path

Five short lessons, then one workflow you can run any week.

Open source guide
01The four momentsA task that works but does not repeat cleanly needs a workflow. Almost any task, however messy, breaks into four moments: what comes in, what transforms it, a fork on a check, and what leaves.10 min02Draw the blueprintA workflow you can draw and document is one someone else could run. The diagram shows the flow; its twin table records each step’s input, output, dependency, failure point and owner.12 min03Choose the shapeFive reusable patterns cover almost every workflow: chaining, routing, parallelization, orchestrator and workers, and evaluator and optimizer. The skill is not knowing all five, but picking the smallest one that fits.13 min04Say it, don’t code itDescribe the workflow in plain language and let an AI turn it into a structured plan. You still check that the translation is right, and any loop that refines its own work needs a stop rule, or it never stops.13 min05Assemble the workflowFive steps turn a diagram into something you can run: number the stations, name every handoff, give every gate a fail path and every loop a stop condition, and assign a tool to each station.11 minWhat you keep from Module 4Each part in one line, the five Mental Model cards, and the deliverable bundle.SummaryHands-on: Lina’s weekly workflowThe source pack, the standards, the audit gate with its stop rule, and the output contract, station by station.Hands-onPrompt libraryThe Codex build chain H1 to H8, six foundation prompts and four guardrails, each as a weak and an improved version.PromptsFurther readingFive core readings, four Codex references and four optional dives, mapped to the module's parts.Reading