Tutorials

How to Build a Human-in-the-Loop Approval Step Into Any Workflow

November 18, 2026
How to Build a Human-in-the-Loop Approval Step Into Any Workflow

Approval gates keep agents and automations from doing expensive or public things unsupervised. Here is how to design the pending record, the decision surface and the resume path.

An approval step is the cheapest guardrail in automation. It is a deliberate pause where the workflow writes down what it intends to do, asks a named person to approve or reject it, and only then continues. Done well, it takes an afternoon to add. Done badly, it becomes a graveyard of unanswered messages and stale records.

The mistake most teams make is treating approval as a notification. A notification is fire and forget: the workflow keeps running whether or not anyone reads it. An approval step is a branch that cannot resolve until a human decides, and it has to survive the workflow engine restarting, the approver being on holiday, and the same button being clicked twice.

This tutorial covers the architecture that works across n8n, Make, Zapier and GoHighLevel, plus the design details that decide whether your gate gets used or gets muted.

An approval step is an event, not a pause

Long-running pauses are the fragile part of every automation platform. Some engines can hold an execution open for days. Others time out, lose state, or bill you for the waiting. The robust pattern removes the pause from the engine entirely.

Instead of blocking, the workflow does four things in order: it writes the pending decision to a record, it sends the request, it ends the run, and it exposes a way back in. The approval itself arrives later as a new trigger, usually a webhook from a form, a button in a CRM, or a reply parsed by an inbound email step.

That reframing matters because it makes approval behave like every other integration you already know how to debug. The pending decision is data, not process state. You can list it, query it, expire it and report on it.

The four components you need

  1. A pending record. A row or object with an ID, the payload being approved, the requesting workflow, the assignee, the deadline and a status field. In GoHighLevel this is often a custom object or an opportunity stage. In n8n and Make it is frequently an Airtable, Postgres or Notion record.

  2. A decision surface. The page or message the approver sees. It must show the actual payload, not a link to a dashboard they have to search.

  3. A resume path. A webhook or scheduled poll that finds approved records and continues the process. Webhook resume is cleaner. Polling is more forgiving.

  4. An audit entry. Who decided, when, from where, and what changed after. This is the part people skip and later regret.

Where to put the gate

Not every step deserves a human. Gate the actions that are expensive, public, irreversible or regulated. Everything else should run.

Gate pointWhat it protectsCost of the delayBefore an outbound sendBrand reputation, deliverability, wrong-list sendsMinutes to hours, usually acceptableBefore a refund or creditCash, fraud, policy complianceLow, because volume is smallBefore writing to a system of recordData quality across downstream reportsModerate, can block a queueBefore an agent takes an external actionScope creep, unintended API callsDepends on the actionAfter an agent drafts, before it commitsQuality and toneLow, and it trains the agent

The last row is the one teams underuse. When an AI agent produces a draft, the approval is not just a safety net, it is a labelled example. Approve and edit counts are the most useful quality signal you will get without building a full evaluation harness.

Designing the decision page

The approver should be able to decide without opening another tab. That means the request contains the payload, the reason it exists, and two buttons. Anything else is friction that turns a ten second decision into a task people postpone.

  • Show the exact text, amount or record that will be committed, not a summary of it.

  • Name the workflow and the trigger that created the request, so the approver knows what they are authorising.

  • Include the deadline and what happens when it passes.

  • Make reject require a reason. Free text on the reject path is where your best process improvements come from.

  • Keep approve and reject as separate signed links, not a single form with a dropdown.

Timeouts and the nobody answered branch

Every gate needs a default. There are three sensible ones and you should choose deliberately rather than letting the workflow hang.

The first is auto-approve on timeout, which suits low-risk actions with a trusted requester. The second is auto-reject and notify, which suits anything touching money or public communication. The third is escalation to a second approver, which suits decisions that are important but not urgent.

Whichever you pick, write the expiry into the pending record and let a scheduled job close it out. A pending record with no deadline is a leak. It sits in the list for months and teaches everyone to ignore the list.

Handling double clicks and replays

The approve button will be clicked twice. The resume webhook will be delivered twice. Someone will forward the email to a colleague who also clicks. Treat approval as an idempotent state transition: approved can only move to executed once, and the second request returns the existing result rather than running the side effect again.

The practical version is a status field with a guarded update. The resume step attempts to move the record from approved to executing and checks that exactly one row changed. If zero rows changed, another request already claimed it, so the step exits quietly. That single check prevents the duplicate refund, the duplicate invoice and the duplicate email that make people distrust automation.

Audit trail worth keeping

Store the approver identity, timestamp, the decision, the reason on rejection, and the ID of the run that continued. If a link can be forwarded, also store which identity used it. When an auditor or a client asks why a payment went out, you want one query, not a search across three tools.

Keep the payload hash too. If the record was edited after approval but before execution, the hash will not match and you can block the action. That closes a quiet gap where an agent or a colleague changes the amount between approval and send.

Testing the gate before it matters

Build the failure cases first. Send an approval request, reject it, and confirm nothing downstream ran. Send another, approve it twice in quick succession, and confirm one side effect. Let a request expire and confirm the default fired. Forward a decision link to a second person and confirm the audit log recorded it.

Then test the unhappy middle: approve, pause the workflow, edit the source record, resume. If your hash check is in place, this should block. If it does not, you have found the bug that would have shipped.

When not to add a gate

Approval is a cost. It slows the process and it consumes attention. If an action is reversible, cheap and already covered by a rollback, automate it and log it instead. Gates belong where the downside is asymmetric, and adding them everywhere is how teams end up with approval fatigue and a rubber stamp culture.

If you are buying a workflow rather than building one, check whether the template ships a pending record and a resume path or just a notification. The difference is whether your team can audit it later. You can browse patterns like this in the AutoStack marketplace, and the how it works page covers installation and ongoing support if you would rather not maintain the plumbing yourself.