ModulesLabQuizAll courses

Multi-Step and Multi-Agent Workflows

Chain agents together only where it pays, cap the loops, and recognise an always-on personal agent when you see one.

Module 9 of 14 · Day 5 · Session 9 · AI Administrator: Agentic Workflows & Automation

Module 09 ~50 min read + lab No code

What you will learn

Prerequisites: Module 8: Building Your First Agent. Your Ops Desk assistant workflow should be working.

1. Three shapes of multi-step work

Once a single AI step or agent works, the temptation is to add more. Three shapes cover nearly every case, and each maps to a way of organising people that you already know.

Sequential

An assembly line. Extract the fields, then classify, then draft. Each step gets the previous output. Easiest to test and log; slowest if the steps are heavy.

Parallel

Fan out, then merge. Three summarisers each read one tracker at the same time, and a fourth step combines them. Faster, and each part can use a different model.

Supervisor

A manager agent reads the request and hands it to a specialist: scheduling, suppliers, reporting. Flexible, but the supervisor is another model call that can misroute.

Office taskShapeWhy
Invoice to approved payment fileSequentialEvery invoice takes the same steps in the same order
Weekly report from five project trackersParallelTrackers are independent; summarise them at once, then merge
A department chat desk that handles scheduling, suppliers and reportsSupervisorThe request type is not known until it is read

In n8n the shapes are literal: sequential is nodes in a row, parallel is branches into a Merge node, supervisor is an AI Agent whose tools are other workflows.

2. The critic-and-revision loop

The most useful two-agent pattern in office work is the writer and critic. One step drafts; a second step, with a different prompt and ideally a different model, checks the draft against a checklist and either approves it or returns specific fixes; the writer revises. It is a code review for text.

What the critic checks is whatever you would check: facts match the source, tone matches policy, nothing promised that we cannot deliver, no personal data, under the word limit. Write the checklist into the critic's prompt and make it answer in a fixed form: APPROVED or REVISE: followed by numbered points.

Cap the loop

Two agents can disagree forever, and each round costs money. Set a hard maximum, two revisions is typical, and route to a person when the cap is reached. In n8n the cap is a counter field incremented on each pass and checked by an IF node before looping back. Module 10 treats the cap as a formal control.

A critic loop with a cap of two roughly triples the cost of a draft step. Use it where the reader is a customer, a regulator or the board; not for internal reminders.

3. Hand-offs, and the two protocols

When one agent passes work to another, the hand-off should carry three things: the task in one sentence, the facts gathered so far, and the constraints (deadline, tone, what not to do). Anything not passed is lost; the next agent does not see the previous conversation unless you send it. Passing everything is expensive and confusing; pass a summary plus the raw items that matter.

MCP (Model Context Protocol, Module 7) standardises how an agent talks to tools and data: one plug for CRMs, calendars and files. A2A (Agent-to-Agent) standardises how an agent talks to another agent, possibly from a different vendor: how it announces what it can do, how a task is handed over, and how progress and results are reported back. In short, MCP is the agent's hands; A2A is the agent's colleagues. For an administrator, both mean one thing: the supplier's agent and yours can be made to cooperate without a bespoke integration project.

4. When multi-agent is overkill

Multi-agent designs are fashionable, and most of them should be one good prompt. Add a second agent only when at least one of these is true:

DesignModel calls per itemTypical latencyFailure points
Single AI step12 to 5 seconds1
Sequential, three steps36 to 15 seconds3
Writer + critic, cap 23 to 510 to 30 seconds3, plus the loop
Supervisor + three specialists2 to 610 to 40 secondsMisrouting, plus each specialist

Every extra agent is another prompt to maintain, another log to read and another place for something to go wrong. Count the calls and the failure points before you draw the diagram.

5. Instructor demo: always-on personal agents

Everything so far runs inside a workflow you trigger. A newer category runs all the time as a service on a server or laptop, and you talk to it on the messaging app you already use. Two open-source examples are widely used in 2026, and your instructor will demonstrate them live. This section is for recognition, not for building.

OpenClaw

Open-source (MIT licence), a long-running service that connects to WhatsApp, Telegram, Slack and more. Its capabilities are skills: folders with a SKILL.md file describing when and how to do something, installable from a public marketplace called ClawHub. It can run tools inside a Docker sandbox, but that isolation is off by default.

Hermes Agent

From Nous Research. Built around persistent memory in three layers (working, episodic and long-term skills), so it remembers across sessions and gets more capable with use. When it works out a non-trivial procedure it saves it as a reusable skill. Reachable from twenty-plus messaging platforms through one gateway, and it runs on cloud or local models.

What to notice in the demo: the four parts are still there (model, tools, memory, instructions), but the memory is deep and personal and the tools are broad (shell, files, browser, email). That combination is powerful for one person and unsuitable for a shared department desk, which is why Module 8's memory advice was the opposite.

Do not install these unsupervised

Both tools need a server, API keys and broad permissions, and both have had real security incidents: malicious skills in the OpenClaw marketplace that stole API keys and rewrote the agent's memory files, and sandbox escapes fixed in later releases. They are shown here so you can recognise the category and ask the right questions. Module 11 uses the OpenClaw incidents as a case study in agent security and supply-chain controls. If your organisation wants an always-on agent, that is an IT and security project, not a lab exercise.

Practical lab

You will extend Module 8 into a writer, critic, reviser chain for supplier emails in n8n. The writer drafts; the critic checks against a checklist and returns APPROVED or numbered fixes; the writer revises, at most twice; every pass is logged to a Sheet, and anything still not approved after two revisions goes to a person.

1

Start from a form

New workflow Supplier email with review. Add an n8n Form Trigger with fields: supplier name, purpose of email, key facts, deadline. This replaces the chat so the run is repeatable.

2

Add a counter

Add a Set node that creates a field revision with value 0 and a field feedback that is empty. The counter is your loop cap.

3

Add the writer

Add a Basic LLM Chain called Writer. Prompt:

Write a professional email to the supplier below on behalf of the Finance team. Use only the facts given. Do not promise payment dates or amounts not listed. Under 150 words. Sign off as "Finance Operations". If reviewer feedback is present, revise the previous draft to address every numbered point. Supplier: {{ $json.supplier }} Purpose: {{ $json.purpose }} Facts: {{ $json.facts }} Deadline: {{ $json.deadline }} Reviewer feedback: {{ $json.feedback }}
4

Add the critic

Add a second Basic LLM Chain called Critic, ideally on a different model. Prompt:

You review outgoing supplier emails for the Finance team. Check the draft against this list: 1. Uses only the facts provided; nothing invented. 2. No payment date or amount promised unless in the facts. 3. Polite, professional, under 150 words. 4. Mentions the deadline if one was given. 5. No personal data beyond the supplier's company name. Reply with exactly APPROVED if all five pass. Otherwise reply with REVISE: followed by numbered points, each naming the failing item and the fix. Facts: {{ $json.facts }} Deadline: {{ $json.deadline }} Draft: {{ $json.draft }}
5

Log every pass

After the critic add a Google Sheets node, Append row, into a sheet Review log with columns timestamp, supplier, revision, critic verdict, draft. This is the audit trail Module 10 will ask you for.

6

Decide and loop

Add an IF node: verdict starts with APPROVED. True branch: a Gmail node, Create draft, for a person to send. False branch: a Set node that increments revision by 1 and copies the critic's points into feedback, then a second IF: revision is 2 or less. True: connect back to the Writer. False: a Slack or Gmail node that notifies a person with the last draft and the critic's points.

7

Run three cases

Submit the form three times: a simple request (should approve first pass), one with a tempting missing fact such as "ask them to confirm the payment date" with no date given (should trigger a revision), and one that is impossible to satisfy (should escalate after two revisions). Check the Review log shows every pass.

Deliverable

A screenshot of the loop on the canvas with the counter and both IF nodes visible, and the Review log sheet showing at least five rows across the three cases, including one escalation. Save as M9-writer-critic.

Knowledge check

Pick one answer per question, then check your score. These mirror the style of the final exam.

1. Which shape fits 'summarise five independent project trackers into one report'?

Why: The trackers are independent, so summarise them at the same time and combine the results.

2. What must every critic-and-revision loop have?

Why: Two agents can disagree indefinitely; the cap bounds cost and hands unresolved cases to a human.

3. In one sentence, what does A2A standardise?

Why: MCP covers tools and data; A2A covers agent-to-agent cooperation across vendors.

4. Which is a good reason to split a task across two agents?

Why: Least privilege, different models, independent checking and parallelism are the legitimate reasons; fashion is not.

5. Why are OpenClaw and Hermes shown as a demo rather than a lab?

Why: They are powerful personal agents whose deployment is an IT and security project. Module 11 uses their incidents as a case study.

Self-check

Answer in your own words first, then open the model answer.

1. Describe an office process for each of the three shapes and say what the n8n node structure would look like.

Sequential: nodes in a row (invoice extract, classify, draft). Parallel: branches into a Merge node (tracker summaries). Supervisor: an AI Agent whose tools are other workflows (department desk).

2. What three things should a hand-off between agents carry?

The task in one sentence, the facts gathered so far, and the constraints such as deadline, tone and prohibited actions.

3. What is the key design difference between a personal always-on agent and a shared department assistant?

Personal agents have deep, persistent memory and broad tools for one trusted user; shared assistants need per-user, short-window memory and narrow, mostly read-only tools.

Summary

Key takeaways

  • Sequential, parallel and supervisor are the three shapes; in n8n they are a row, branches into Merge, and an agent whose tools are workflows.
  • The writer-and-critic loop is code review for text: fixed verdict format, hard revision cap, human route when the cap is hit.
  • Hand-offs carry task, facts and constraints. MCP is the agent's hands; A2A is the agent's colleagues.
  • Add agents only for least privilege, different models, independent checks or parallelism; count calls and failure points first.
  • OpenClaw and Hermes are always-on personal agents: recognise the category, and treat deployment as an IT and security project.

Further reading: Agent-to-Agent Protocols · Model Context Protocol · LangGraph: agents as graphs · OpenManus multi-agent architecture