# 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.

Canonical: https://www.novu.co/blog/ai-agent-approval-timeout/

Markdown: https://www.novu.co/blog/ai-agent-approval-timeout.md

Last updated: 2026-11-26T22:52:00.000Z

How an AI agent should handle approval timeouts: every outcome from approved to expired, exit codes, TTLs, late answers, backup approvers and audit trails.

Authors: Victor Yakubu

Published: 2026-11-26T22:52:00.000Z

Category: Agent Inbox

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](<https://agentinbox.md/>) 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:

| Outcome | What happened | Exit code | What the agent should do |
| --- | --- | --- | --- |
| Approved | The person tapped Approve before the timeout | 0 | Go ahead, and record who approved |
| Denied | The person tapped Deny | 10 | Stop. Don't retry, and don't look for another way to do the same thing |
| Timed out | The command stopped waiting, but the question is still open | 11 | Park the work. Don't treat it as a yes or a no yet |
| Expired | The TTL ran out with no answer, or the request was canceled | 12 | Treat it as not approved |
| Answered late | The person answered after the command exited 11, but before the TTL | (none) | The answer lands in the conversation; check it before resuming |

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.

```bash
#!/usr/bin/env bash
# nightly-cleanup.sh: ask Tamar before deleting stale orders

result=$(npx @agentinbox/cli send approve "Delete 342 stale rows from the orders table?" \
  --to tamar \
  --body "Orders older than 18 months with status 'abandoned'. Backup taken at 02:10 UTC." \
  --ttl 2h --timeout 20m --json)
code=$?

case "$code" in
  0)
    who=$(jq -r '.response.respondedBy' <<<"$result")
    when=$(date -d "$(jq -r '.response.respondedAt' <<<"$result")" +%H:%M)
    echo "Approved by $who at $when" | tee -a approvals.log
    ./delete-stale-orders.sh
    ;;
  10)
    echo "Denied. Rows left in place." | tee -a approvals.log
    ;;
  11)
    echo "No answer in 20 minutes. Cleanup parked; the question stays open for 2 hours." | tee -a approvals.log
    exit 75   # temporary failure: let the scheduler try again later
    ;;
  12)
    echo "Approval expired. Treated as not approved." | tee -a approvals.log
    ;;
  *)
    echo "Agent Inbox returned an error (see the message above)." >&2
    exit 1
    ;;
esac

```

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:

```bash
- name: Ask before deploying
  env:
    INBOX_SECRET_KEY: ${{ secrets.INBOX_SECRET_KEY }}
    INBOX_TO: tamar
  run: npx @agentinbox/cli send approve "Deploy ${{ github.sha }} to production?" --ttl 1h --timeout 30m --from ci

```

## **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.

```bash
# Ask without waiting, and keep the ids
npx @agentinbox/cli send approve "Delete 342 stale rows from the orders table?" \
  --to tamar --ttl 2h --async --json > pending-approval.json

```

```bash
# Later: has Tamar answered?
id=$(jq -r '.id' pending-approval.json)
conv=$(jq -r '.conversations[0].id' pending-approval.json)

status=$(npx @agentinbox/cli show "$conv" --json \
  | jq -r --arg id "$id" '.messages[] | select(.interaction.id == $id) | .interaction.status')

case "$status" in
  approved) ./delete-stale-orders.sh ;;
  pending)  echo "Still waiting for Tamar." ;;
  *)        echo "Not approved ($status). Rows left in place." ;;
esac

```

`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.

| Task | TTL | Timeout | Fallback with no answer |
| --- | --- | --- | --- |
| Production deploy from CI | Until the next commit is likely to land, such as 1 hour | What the pipeline can spare, such as 30 minutes | Fail the step; the next push asks again |
| Nightly data cleanup | Until the backup is stale or the next run starts, such as 2 hours | Short, such as 20 minutes, then retry later | Skip tonight's delete; the rows can wait a day |
| Refund a customer | Long enough for the approver's working day, such as 8 hours | --async: the agent doesn't need to sit and wait | Tell the customer it's under review |
| Send an email outside the company | Until the content goes stale | --async | Keep it as a draft |
| Interactive coding session | Short, such as 15 minutes | Same as the TTL | Stop and say what's waiting |

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:

```bash
npx @agentinbox/cli send approve "Deploy v2.4.1 to production?" --to tamar,oren --ttl 1h --timeout 30m
```

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:

```bash
npx @agentinbox/cli contact invite oren --name "Oren Levi"

```

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:

```bash
Approved by tamar at 14:02
```

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 &lt;conversation&gt; --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 `11` and exit `12 `are 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 `status` in `--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 `respondedBy` and `respondedAt` with 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:

```bash
npx @agentinbox/cli contact invite tamar --name "Tamar Cohen"
# once Tamar has connected her channel:
npx @agentinbox/cli send approve "Test: can you see this approval?" --to tamar --ttl 10m --timeout 2m; echo "exit $?"

```

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.
