# Notices

A notice is what the agent sends to a person on the team, rather than to a
customer. There are five kinds:

| Kind | When |
|---|---|
| `question` | A customer asked something the agent cannot answer (`ask_team`) |
| `approval` | A tool with [`approval`](https://vatio.ai/docs/tools#approval) is waiting for a yes |
| `handoff` | A customer needs a person |
| `summary` | The agent finished work on its own and has something to tell |
| `alert` | Something is off and someone should know |

The agent never chooses who gets a notice. It says what kind it is, and who
receives it follows from the two kinds of people on a workspace:

| | The team: who attend to the agent | The owner and the team who build it (`developer`) |
|---|---|---|
| Questions, approvals, handoffs, summaries | ✓ | Only while there is no team |
| Alerts | | ✓ |

One rule narrows that further: an approval goes to those with the role the
tool names in `by`, or a higher one. A question goes to the team like the
rest ([Ask the team, keep the answer](https://vatio.ai/docs/handoff#ask-the-team-keep-the-answer)).

## Where a notice arrives

Every notice reaches the person's For you page in the inbox, and their
WhatsApp too unless they turned it off:

- **WhatsApp.** The agent writes it in that person's own chat with it, in its
  own words. A reply there is a message to the agent, which knows what it said:
  "yes, go ahead" settles an approval, an answer settles a question. Outside
  the person's 24-hour window, the notice opens with the workspace's
  team-questions template when there is one. WhatsApp needs a verified number
  on the person's account.
- **The inbox's For you page.** A list of that person's notices, open ones
  first. An approval has Approve and Deny, a question has a box for the answer
  (it reaches the customer in their conversation), a handoff opens the
  conversation so the person can take it over, and the rest are marked Done.

A WhatsApp delivery that cannot go out (no verified number, a closed window and
no template) lands in that person's For you page instead, so a notice is never
lost on the way.


## WhatsApp or not

For you always gets every notice. The one choice each person makes is whether
they get them on WhatsApp too: on by default. Turn it off on the **Team** page
in the inbox (the owner and whoever builds, for anyone), on **Account** (your own),
or with the MCP:

```json
{ "workspace": "acme", "whatsapp": false }
```

That is `set_notifications` for yourself. The owner and whoever builds the agent set anyone's
with `user_id` (from `get_settings`, under `notifications`).

## Send one from the agent

Questions and approvals come from `ask_team` and a tool's `approval`. For
the other three kinds the agent has a built-in tool, `notify_team`, with a
`kind` (`handoff`, `summary` or `alert`) and a `message`. Add it to the agent's
tools with `update_agent`, and say in its instructions when to use it:

```json
{
  "workspace": "acme",
  "tools": ["knowledge_lookup", "notify_team", "list_orders"],
  "instructions": "... Every morning you get a schedule to check overdue orders: if there are any, send the team a summary with notify_team; if there are none, send nothing."
}
```

An agent that works on its own, on a [schedule](https://vatio.ai/docs/schedules) or an
[event](https://vatio.ai/docs/api/events), reports this way: its run ends in a notice, or in
nothing when there is nothing worth saying.

## Act on a notice

From the inbox's For you page, from WhatsApp, or with the MCP:

| Tool | What it does |
|---|---|
| `list_notices` | Your notices, open ones first, with the actions each takes |
| `resolve_notice` | `approve` or `deny` an approval, `answer` a question (or `answered_directly`), `done` for the rest |
| `get_settings` | Under `notifications`: who on the team gets what, and where |
| `set_notifications` | Turn WhatsApp on or off for one person |

A notice is settled once, by whoever acts first, on any channel. An approval
that nobody answers in time, or that the customer called off, closes by
itself. A question that only timed out stays open: a late answer still reaches
the customer.

Notices are recorded in the workspace's Activity when someone lists them, and
they are deleted with the conversation they are about.
