Human-in-the-loop email agents
An approval queue checks the agent’s replies. A hand-off gives the conversation to a person. Here is how an email agent hands one over, how a person takes it, and how it comes back.
A queue for approval is not a hand-off
Most "human in the loop" setups for email agents are an approval queue: the agent writes a reply, and a person checks it before it goes. That is useful, and it is not the hard case. The hard case is the conversation the agent should stop answering altogether: the customer who wants a refund above what it may approve, the supplier who is angry, the reply that is really a legal question.
For that, the conversation has to change hands. A person has it now, the agent has stepped back, and everything watching knows.
The owner is a field on the thread
In Zurchin every conversation has an owner: agent, human or automation, and a status: open, waiting, resolved or human_review. Handing one over is one call: the agent sets the owner to human and the status to human_review, and can name the member who should take it with assignee_id.
The person named, or everyone on the team when nobody is, gets an email with the conversation's latest message. While a person has the conversation, new mail in it emails them again, at most once every 15 minutes. They can answer as the same address from Apple Mail or any other mail app, signed in with an app password for that inbox.
Your code hears all of it: thread.updated is logged on every change with what changed, and can be sent to a webhook. Set the owner back to agent and the agent finds it among its own conversations again. An agent on the MCP server can do the same.
The other side keeps writing to the same address, in the same thread. Whether to tell them a person has joined is your call.
An inbox per role, and a key for each
Builders who run several agents tend to land on the same shape:
- One inbox per agent role.
support@,billing@,scout@, each created in one call. Conversations start owned by the agent, so each agent's queue is the list of its own threads. - A key for the job. A key has an access level: one that reads can never send, and one with
draftaccess can only write drafts, which a person approves before they go. - Rules per inbox. Block a sender or a domain at one inbox, or name the senders it trusts. Mail from a sender a receive rule allows is never marked spam and never held, so keep that list short.
Start
Sign up, create an inbox and try it against your own mail: mail arrives, the agent gets stuck, a person takes it and hands it back. To have a person check each reply instead, give the agent drafts a person approves. Everything an agent's inbox does is on Zurchin Email.