Six Workflows We Will Build
Each workflow is a different shape of graph. We build them one by one.
Sequential
A straight line
Steps in a fixed order. Each one improves the last.
Parallel
Split and merge
Independent steps run at the same time, then the results join.
Loop
Go back until good
A reviewer sends the work back until it passes.
Memory
Remember the chat
The graph saves its state, so the next message continues the talk.
Human in the loop
Pause for approval
The graph stops, a person decides, and then it continues.
Conditional RAG
Choose a path
A router sends each question to the right knowledge base.
Which Workflow for Which Job?
Choose by the shape of the job.
| Workflow | Shape | Good for |
|---|---|---|
| Sequential | a straight line | fixed steps: clean up, rewrite, format |
| Parallel | split and merge | independent checks that can run together |
| Loop | a cycle | write, review, rewrite until the quality is good |
| Memory | a cycle that remembers | support bots and personal assistants |
| Human in the loop | a graph that can pause | risky actions: payments, deleting data, approvals |
| Conditional RAG | a tree of paths | one assistant, many knowledge bases (HR, finance, IT) |
Quick Revision
The whole lesson on one page.
Why
Real tasks loop
A chain only goes forward. A graph can go back, share notes and wait.
Three blocks
State, node, edge
The notebook, the worker functions, and the arrows between them.
Six shapes
One graph, many uses
Sequential, parallel, loop, memory, human in the loop, conditional RAG.