# Make Your AI Agent Wait for Human Approval Before It Sends Anything

The scariest step in any agent workflow is the last one: the agent sends the email, merges the PR, or posts the update. Up to that point everything is a draft. After it, a client has seen it.

Most "human in the loop" setups are a Slack message saying "OK to send?" and a person typing "yes". That works until someone asks which version was approved, whether the agent sent what was approved or something slightly different, and when.

This guide sets up an approval gate where the person reviewing can edit the draft, the agent has to use the approved version, and each step leaves a receipt. I ran it against the live Zambo MCP server on December 1, 2026, on the free tier. IDs are shortened.

## The two tools

- `hitl_submit` sends content to a review page and returns a link for the human.
- `hitl_check` tells the agent whether that review is pending, approved, rejected or expired. When it's approved, it returns the human's version, which may be edited.

Both go through `https://zambo.dev/mcp`, with no API key or account. Setup per AI client is at [zambo.dev/add](https://zambo.dev/add/).

## Step 1: The agent submits its draft

My test draft was a client email an agent was about to send:

```json
{
  "tool": "hitl_submit",
  "content": "Draft email to Acme: Hi Dana, the MCP session fix is deployed to staging. Unknown session IDs now return 404 so clients re-initialize. Session IDs use crypto.randomUUID(). Please test before Friday.",
  "context": "The agent will send this email to the client after approval",
  "expires_minutes": 60
}
```

The response:

```
review_id     a482523f-…
review_url    zambo.dev/api/hitl/a482523f-…
poll_url      zambo.dev/api/hitl/a482523f-…/status
expires_at    60 minutes from submission
receipt       zambo.dev/run/bc1d47a9-…
instruction   Share review_url with the human. Poll poll_url every 5–10 seconds
              until status is 'approved' or 'rejected'. Approved response
              includes edited content (use that instead of original).
```

The receipt stores a hash of exactly what the agent proposed. That's the "before" half of your record.

## Step 2: The human reviews on their phone

The review page is plain and mobile-friendly. Mine showed:

- "Review before your agent acts"
- the context line ("The agent will send this email to the client after approval")
- the draft in an editable box: "Edit directly. Your changes will be sent to the agent when you approve."
- two buttons: **Approve & Continue** and **Reject**
- a countdown: "Expires in 60 minutes"

The editing is the useful part. The reviewer doesn't have to reject a draft just to fix "before Friday" to "by Thursday 5pm". They change it and approve, and the agent gets their version.

## Step 3: The agent waits for the decision

Before anyone acts, `hitl_check` returns:

```
status             pending
was_edited         false
seconds_remaining  3581
instruction        Still pending. 3581s remaining. Poll again in 5–10 seconds.
receipt            zambo.dev/run/0611d891-…
```

Once the human approves, the status changes to `approved` and the content field holds their version, with `was_edited` showing whether they changed it. Tell your agent plainly:

```
After hitl_submit, wait for a decision. If approved, send exactly the
content returned by the check, not your original draft. If rejected or
expired, stop and tell me. Never send anything while the status is pending.
```

I didn't press Approve in this test, so the approved response shape here comes from the tool's own documentation, not from my output.

## The free-tier tip that matters: poll the status URL, not the tool

The tool description tells the agent to poll every 5 to 10 seconds. On the free tier, that burns your allowance fast. `hitl_check` is a metered tool: one free call per network per UTC day, then it draws on 3 continuation calls shared across all tools. A reviewer who takes two minutes would cost you a dozen checks.

But `hitl_submit` also returns a `poll_url`, and that's a plain GET:

```
GET https://zambo.dev/api/hitl/<review_id>/status
```

```json
{"status":"pending","review_id":"a482523f-…","was_edited":false,
 "context":"The agent will send this email to the client after approval",
 "expires_at":"…","seconds_remaining":3594}
```

It isn't an MCP tool call, and the response in my test carried no receipt and no quota fields. So the cheap pattern is:

1. `hitl_submit` (receipted: what the agent proposed)
2. Poll the `poll_url` with a plain HTTP GET while waiting (from an automation, a script, or an agent with web fetch)
3. One `hitl_check` once the status changes (receipted: what was approved, and whether it was edited)

You keep the two receipts that matter, the proposal and the decision, without paying for the waiting.

## Treat the review link like a key

The review URL is just the review ID, with no extra token or login. Anyone who has the link can approve or reject. So:

- Send it only to the person who should decide, through a private channel.
- Keep `expires_minutes` short for anything sensitive. Per the tool's own instructions, an expired review means submitting a new one.
- Don't put secrets in the draft. The reviewer sees it, and so does anyone who gets the link.

## Where this fits with the rest of a client job

The approval gate covers one decision. For the whole job, run every call in one job session so the proposal, the approval and the work around it end up in the same record. When the job is done, a wrap-up handover gives the client one link with all the receipts. The wording to remember: **one free wrap-up per network per day, pickup always free.**

## What the free tier covers, and when to pay

On the free tier, each metered tool gets one call per network per UTC day, plus 3 continuation calls shared across tools. Reset is 00:00 UTC. In practice:

- **One approval a day** (submit, poll the free status URL, one check) fits comfortably.
- **An agent that asks for approval on every outbound action**, like a support agent or a daily client update across several clients, runs past that by mid-morning. When it does, the call is refused with "Job saved", nothing runs, and nothing is charged. Your agent should treat that as "stop and wait", never as approval.

From the live [pricing page](https://zambo.dev/pricing/):

- **Day Pass, $0.99 for 24 hours:** lifts the standard daily limits for a busy day of approvals.
- **Zambo Pass, $29 for 30 days:** the same access for a month, for anything that asks for approval every day.
- **Lifetime, $250 once,** bought by a person at checkout.

## Limits worth stating

- An approval records that someone holding the link pressed Approve. Zambo doesn't verify who that person was.
- The receipt proves the saved proposal and decision haven't changed. It doesn't prove the email was a good idea or that it was sent. If sending happens outside Zambo, log it separately.
- Expiry is real. Plan for "expired" as a normal outcome, not an error.

More on what a receipt does and doesn't prove: [zambo.dev/verify](https://zambo.dev/verify/). For a full client delivery flow: [prove a code audit to a client](https://zambo.dev/workflows/prove-code-audit-to-client/).
