What happens when a person doesn't answer your AI agent?
How an AI agent should handle approval timeouts: every outcome from approved to expired, exit codes, TTLs, late answers, backup approvers and audit trails.

An agent that asks a person for approval has to decide what to do when the answer doesn't come. The approver is asleep, on a flight or in back-to-back meetings, and the agent is holding a deploy, a refund or a delete until it hears back. If nobody planned for that, the agent either hangs forever or, worse, takes the silence as a yes.
This article walks through every way an approval request can end (approved, denied, timed out, expired and answered late) and how an agent should handle each one.
No answer is the normal case
It's tempting to build the happy path first: the agent asks, the person taps Approve, the agent carries on. That's the path you'll see in a demo. In production, agents run at 03:00, CI pipelines run during standups, and the one person who can approve a production change is presenting to a customer.
So an approval step has two clocks, not one:
- How long the question stays valid. A yes to "delete 342 rows" is only good while there are still 342 rows and the backup is still fresh. After that, a yes is dangerous, not helpful. This is the TTL.
- How long the agent can afford to wait. A CI job has a budget. A coding agent in a chat session has a person waiting on the other side. This is the timeout.
The two are independent, and most of the interesting behaviour lives in the gap between them.
The five ways an approval can end
We'll use Agent Inbox for the examples. It sends the approval to a person on email, Telegram or Slack with Approve and Deny buttons, and the command waits for the answer. Two flags set the clocks: --ttl (how long the question stays answerable, 24 hours by default and 5 days at most) and --timeout (how long this command waits; by default, until the question is answered or expires).

Every request ends in one of five ways:
There's also exit 1, an error: no inbox set up, the agent paused, the free demo used up. The command prints what to do. Pass that on to whoever runs the agent instead of retrying.
Two details matter here. First, the agent should branch on the exit code, never on the printed text, which can change. Second, exit 11 is the one people get wrong. It doesn't mean "no". It means "this process stopped waiting", and the person can still answer until the TTL runs out.




Handle every outcome in code
Here's a nightly cleanup job that asks Tamar, who owns the orders database, before it deletes anything. It waits up to 20 minutes, keeps the question answerable for 2 hours, and does something deliberate in every case.
With --json, the command prints the interaction: its status (approved, denied, expired and so on) and, once there's an answer, a response with respondedBy and respondedAt. That's where the "Approved by tamar at 14:02" line in the log comes from.
Notice what each branch does:
- Approved runs the action and writes down who said yes.
- Denied does nothing to the data and says so. It doesn't ask again in five minutes hoping for a different answer.
- Timed out exits with a temporary-failure code so the scheduler can retry, and leaves the question open. If Tamar answers at 03:40, the answer is waiting for the next run.
- Expired treats silence as a no. The rows stay.
- Error fails loudly instead of guessing.
In CI, the same idea fits in one step. The step fails unless someone approves within 30 minutes:
Pick up an answer that arrived late
When the command exits 11, the person can still answer. Where that answer goes depends on how the agent is connected.
From the CLI. There's no command that goes back to waiting on a question. The answer lands in the conversation, and the agent checks it when it's ready. If you expect long waits, don't block at all: send with --async, save the ids, and check back on the next run.
show lists the conversation's messages, and each question the agent sent carries its interaction with an id, kind and status. It doesn't mark the conversation read.
From MCP. A tool call can't block for long, so inbox_send waits 45 seconds by default (50 at most) and, if there's no answer yet, returns the request's id. The agent calls inbox_wait with that id, again for as long as it says the request is still open. That's the MCP equivalent of exit 11, and it never means yes. (We cover the MCP side in detail in how to add human approval to an AI agent through MCP [LINK: Article 8, once live].)
From a run that listen started. If a message to the agent started Claude Code, Codex or OpenCode on your computer, an answer that no waiting command took (an --async question, or one whose command timed out) joins that run, so the agent sees it and carries on.
Choose the TTL, the timeout and the fallback
Start with the TTL, because it's about the world, not the agent. Ask: how long will the facts in this request stay true? Then set the timeout from the agent's side: how long can this process hold its slot? Then decide what happens if neither produces an answer.
A few rules hold across all of them:
- The TTL caps how stale a yes can be. Shorten it whenever a late yes would be dangerous. The maximum is 5 days, which suits slow processes, not destructive ones.
- The timeout should be shorter than the TTL when the agent has other work, so it can park this task and move on while the question stays open. Leave the timeout off when the agent has nothing else to do; the command then waits until the question is answered or expires.
- The fallback is the safe default, decided in advance. For anything destructive, that's "don't do it". For anything reversible and low-stakes, it might be "do the cautious version and report". Write it into the code, not into a prompt the agent might reinterpret.
- Say what's waiting. If an agent parks a task, a short notification ("cleanup parked, waiting on Tamar's approval until 04:10") saves someone from wondering why nothing happened.
Ask someone else when you're away
The best answer to "what if the approver is away?" is often "ask more than one person".
Send to several approvers at once. --to takes up to 50 contacts, comma-separated. Each gets the question, and the first valid answer wins:
That's simpler than escalation chains, and it doesn't depend on the agent noticing the timeout. People who aren't in --to can't answer.
Add the backup as a contact first. Someone new connects with an invite link:
The command prints a link, valid for 3 days, where Oren connects Telegram, Slack or email and picks his default. Nothing is sent for you, so share the link with him. Once he's connected, --to oren reaches him. contact list shows everyone the agent can reach.
Set a default in CI. INBOX_TO sets who a send without --to reaches, so a pipeline can name its approvers in one place: INBOX_TO=tamar,oren.
If you escalate after a timeout, say so in the question. A first request that timed out is still open, so the original approver can still answer it. If the agent then asks someone else, make the second message clear about what it replaces ("Tamar hasn't answered: approve the deploy?"), and have the code act on whichever answer it reads first.
Review who approved what
An approval is only useful later if you can answer three questions about it: who said yes, when, and to what. Agent Inbox records who agreed and when, and there are three places to read it.
In the command's result. With --json, an answered request includes response.respondedBy and response.respondedAt, plus the interaction's id, status, createdAt and expiresAt. Write those into your own log next to what the agent did, as the cleanup script does:
For anything that matters, log the request text too, so the record says what was approved, not just that something was.
In the conversation. npx @agentinbox/cli show <conversation> --json lists every message in order, with each question's interaction and its status. list --json shows each conversation's channel, so you can see whether the approver answered on Slack, Telegram or email. When you send to several approvers, each one gets their own conversation.
On agentinbox.md. The operator sees the agent's conversations in the dashboard, including the approval requests and their answers.
Put the record where your team already looks: the PR description for a deploy, the ticket for a refund, the job log for a cleanup. "Approved by Tamar at 14:02 on Slack" in the PR is worth more than the same fact in a dashboard nobody opens.
Mistakes that turn silence into damage
- Treating no answer as a yes. The worst one. Exit
11and exit12are never permission. If the code has a default branch, make it the safe one. - Asking again until someone says yes. A denial is an answer. If the facts change, send a new request with the new facts; don't resend the same one.
- No timeout in CI. Without
--timeout, the command waits until the question is answered or expires, which is 24 hours by default. Set a timeout your pipeline can afford. - A long TTL on a destructive action. A 5-day TTL on "drop this table" lets a yes arrive long after anyone remembers what the table held.
- Branching on the printed text. The wording can change. The exit code (or
statusin--json) won't. - Escalating without closing the loop. If the agent asks a backup after a timeout, the first request is still live. Make sure the code acts once, on the first answer it reads.
- Not recording the approver. "It was approved" isn't an audit trail. Log
respondedByandrespondedAtwith the action.
Try it with a teammate
The quickest way to see every outcome is to send a real approval to someone else. Invite a teammate, then send them a test request with a short TTL:
Ask them to approve once, deny once, and ignore it once, and watch the exit code change. Agent Inbox is free for 100 conversations a month, and no credit card is required. For where approvals fit among the other ways an agent can involve a person, read ask, approve, choose, or notify [LINK: Article 9, once live].
FAQ
What should an AI agent do if nobody approves its request?
An AI agent should treat no answer as not approved. It can park the task and check again later while the request is still open, but it should never go ahead on silence. With Agent Inbox, an unanswered request either times out (the command stops waiting, exit 11, and the question stays open) or expires when its TTL runs out (exit 12).
What is the difference between a TTL and a timeout for an AI agent approval?
The TTL is how long the approval request stays answerable; after it, nobody can approve it. The timeout is how long the agent's command waits for an answer. A timeout shorter than the TTL lets the agent stop waiting and move on while the person can still answer. In Agent Inbox, the TTL defaults to 24 hours and can be up to 5 days.
What do Agent Inbox exit codes mean?
Agent Inbox CLI commands exit 0 when a request is answered, approved, chosen or delivered, 10 when it's denied, 11 when the command timed out but the question is still open, 12 when the request expired or was canceled, and 1 on an error. Scripts should branch on these codes, not on the printed text.
Can a person approve after the agent stops waiting?
Yes, until the request's TTL runs out. With the Agent Inbox CLI, the late answer lands in the conversation, where the agent can read it with show. Over MCP, the agent calls inbox_wait with the request's id to keep waiting. In a run started by listen, the answer joins the run.
How do I make sure someone approves when the main approver is away?
Send the request to more than one person. Agent Inbox's --to flag takes up to 50 contacts, and the first valid answer wins. Add backups as contacts first with contact invite, which prints a link they open to connect Telegram, Slack or email.
How can I see who approved an AI agent's action?
With Agent Inbox, run the request with --json: an answered request includes respondedBy and respondedAt. Log those with the action the agent took. The conversation, readable with show, keeps the full history of the request and its answer.