Original source guide

Module 4: Workflows & AI Task Execution — The Workflow Layer

Where each lesson comes from, what was not supplied, and the places where the material needs a careful reading.

The four sources

The Module 4 lecture notes (7 pages), the Module 4 additional readings (4 pages), the hands-on input, a folder of eleven files, and the Module 4 prompt library (16 pages), for Agentic AI in Practice, American University of Beirut. Page numbers below are PDF pages, and the hands-on input is cited by file name. The documents themselves are not republished here.

Listening

Module 4 is the first module of this course with a recorded AI narration voice, generated in advance from the lesson text. If a lesson changes after it was recorded, the reader falls back to your device’s own voice. Back to the lessons

Lesson map · Module 4 lecture notes, reading list and hands-on input
LessonSource
1 · The four momentsLecture notes pp. 1-2 (opening, Part 1, Card #16)
2 · Draw the blueprintLecture notes pp. 2-3 (Part 2, documentation table, Card #17); readings pp. 1-2
3 · Choose the shapeLecture notes pp. 3-4 (Part 3, the chooser, pattern overkill, Card #18); readings p. 1
4 · Say it, don’t code itLecture notes pp. 4-5 (Part 4, loop anatomy, stop rule, Card #19); readings p. 2
5 · Assemble the workflowLecture notes p. 6 (Part 5, assembly protocol, Card #20); readings pp. 2-3
Module summaryLecture notes pp. 6-7
Hands-on: Lina’s weekly workflowThe eleven hands-on input files
Prompt libraryPrompt library pp. 1-16
Further readingAdditional readings pp. 1-4

Lesson 01

See the four moments

A 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.

Open the lesson
Module snapshot and opening

Three teammates, you as the wiring, and the workflow layer on top of the knowledge layer.

Lecture notes p. 1
Part 1 — Workflow decomposition

The tell, decomposition, and the four moment types.

Lecture notes pp. 1-2
The four moments table and Card #16

Input, process, decision, output, with finance examples.

Lecture notes p. 2

Lesson 02

Draw the blueprint

A 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.

Open the lesson
Part 2 — The workflow diagram

Boxes, arrows, a diamond, and the fail arrow back to the draft.

Lecture notes p. 2
Trigger, needs, produces, owner

The four things to name for each step; dependencies and failure points.

Lecture notes p. 2
The documentation table and Card #17

Five steps with input, output, dependency, failure point and owner.

Lecture notes pp. 2-3
Flowchart symbols

The visual vocabulary behind the diagram, in the core readings.

Additional readings pp. 1-2, Core 2

Lesson 03

Choose the shape

Five 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.

Open the lesson
Part 3 — Workflow design patterns

The five shapes with finance examples.

Lecture notes pp. 3-4
Which shape do I need?

Five questions, one per pattern.

Lecture notes p. 4
Pattern overkill and Card #18

Overbuilt designs and the right-sized alternative.

Lecture notes p. 4
Building Effective AI Agents

The primary source the readings give for the five patterns.

Additional readings p. 1, Core 1

Lesson 04

Say it, don’t code it

Describe 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.

Open the lesson
Part 4 — Vibe coding

Describe the workflow; what the AI needs from you.

Lecture notes pp. 4-5
Verify the translation

A misplaced gate, an invented step, a missed dependency.

Lecture notes p. 5
Loop engineering and its anatomy

Schedule, written standards, maker and checker, separate lanes, real connections.

Lecture notes p. 5
The stop rule and Card #19

Three rounds, or zero goals failing, whichever comes first.

Lecture notes p. 5
Vibe coding and loop engineering readings

The refinement cycle, and a different five-part list of a loop’s building blocks.

Additional readings p. 2, Core 4 and 5

Lesson 05

Assemble it once, run it any week

Five 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.

Open the lesson
Part 5 — Putting it together

The five assembly steps in detail.

Lecture notes p. 6
The reusable assembly protocol and Card #20

The one slide to keep, and its checklist.

Lecture notes p. 6
Codex references

The readings’ practical references for building and running the workflow.

Additional readings pp. 2-3, Practical 1-4

Source appendix

Where to read with care

Read with care

The slides were not supplied

The notes describe themselves as a quick-revisit guide to be read alongside slides, not a transcript. The slides were not supplied, so nothing here is attributed to them, and the notes are the main source for every lesson.

The hands-on has files and a prompt chain, not a recording

The hands-on input is a folder of eleven files, and the recording was not supplied. The output contract says the files are created during a live build and none should exist before the demo. The prompt library, supplied later, gives the recording’s exact prompt chain; it calls the folder “Lina — Finance Close” and maps its prompts to the recording’s Steps 4 to 8, whose first three steps are not described. The hands-on page describes the files, the contract and the chain, and reconstructs nothing beyond them.

Two different lists of a loop’s parts

The notes’ anatomy of a loop has five parts: a schedule, written standards, a maker and checker, separate lanes and real connections. The Loop Engineering reading lists five different building blocks: automations, worktrees, skills, connectors and sub-agents. The lessons teach the notes’ list, and the reading page keeps the reading’s own.

Four sections, or three

The goals file asks for a brief in four sections. The inherited audit rubric checks Module 1’s three-section structure, and includes its own compatibility mapping from the four sections onto the three. The site reports both and the mapping, and does not choose between them.

The site’s own arithmetic

The figures in Step 5 of the hands-on, such as confirmed spending of $220.66, are this site’s calculation from the supplied files, using the categories in Lina’s Module 3 workbook. They are labelled as such. The good example report’s figures are, in its own words, not Lina’s real results.

A shifted row in the workbook

In the supplied Module 3 workbook, the CVS row’s cells sit one column to the right of their headers, so its amount column holds receipt text. The row is still correctly flagged for review and excluded from totals.

Codex, at this document’s date

Module 1’s tools were ChatGPT’s, Module 2’s were Claude’s, and Module 3’s were Gemini’s. The Module 4 notes name no tool, while the readings and the output contract name OpenAI Codex. Each is reported as its own document’s recommendation at that document’s date, and nothing here claims how any product behaves today.

Module 5 follows

The notes close by saying Module 5 puts agents on real schedules, connected to real tools. Module 5 was supplied later and follows this module in the library.

Lina’s week is fiction

Lina, Sara Mansour, the Henderson onboarding, Skyline Fiber, the CVS receipt and every amount and date belong to the course’s teaching scenario. Sara’s address uses a reserved example domain.

The links are the course’s, not ours

All thirteen reading links were taken from the supplied readings PDF’s own link annotations. None was added, substituted or assessed here, and the list’s caveat about pages moving is reproduced on the reading page.

Checked against the supplied notes, readings, hands-on files and prompt library.

What not to take away

The lessons actively work against these misreadings:

  • If each step works, the task is fine.
  • A diagram alone is enough for someone else to run the workflow.
  • Failure points are found by running the workflow.
  • More patterns make a better workflow.
  • An AI-built plan can be trusted because it is well organized.
  • A refine loop will stop when the work is good enough.
  • The same chat can draft the work and audit it.
  • Parallel steps must run at exactly the same moment.
  • A blocked result means the workflow failed.

Study-guide synthesis; each item is addressed in the lessons.