
# Notifications in Slack and email

Agent Cloud notifies the right people in Slack and by email with no setup. To also send an app's notices to a team Slack channel or email address, run `agc notifications add`.

## Who gets notified by default?

An approval waiting goes to each person who may decide it. A release that fails or is held, an incident the platform opens for the app, and a new ask on the app's Work go to the app's owner. An item waiting on a person goes to its asker and the app's owner.

## How do I send an app's notices to a Slack channel?

1. In the Slack channel, type `/invite @agentcloud` to add the bot.
2. List the channels the bot is in, with their ids:

   ```bash
   agc notifications channels
   ```

3. Subscribe the channel by its id. With no `--notices`, it gets approvals and failures:

   ```bash
   agc notifications add C0123ABCD --notices approvals,failures,releases,work
   ```

Agent Cloud posts a test message in the channel first. Success is exit 0, and `agc notifications` lists the channel. Running `add` again for a channel already subscribed changes what it gets. In Slack, `/agentcloud subscribe <app>` in a channel does the same.

## How do I send notices to a team email address?

```bash
agc notifications add --email oncall@acme.co --notices failures
```

The address gets one email to confirm, and nothing else until someone there confirms. Every email it gets has an unsubscribe link. An email recipient never gets Approve or Decline buttons: approvals stay with the people who may decide them.

## Which notices can a channel get?

| Notice | What it sends |
|---|---|
| `approvals` | A release waiting for a person's approval |
| `failures` | Failures, such as a release that failed or was held |
| `releases` | The app's releases |
| `work` | New asks on the app's Work |

## Pause, resume or remove a channel

```bash
agc notifications pause C0123ABCD
agc notifications resume C0123ABCD
agc notifications remove oncall@acme.co
```

Each takes the channel id or the email address. `agc notifications` shows each one's notices, whether it's paused, whether an address has `confirmed`, and who added it and how; `may_change` says whether your agent may change them. The app's settings page, **Notifications**, changes the same list.

## Who can change notifications?

An owner of the app or of its organization, in the app's settings or through their own agent. A change made by an agent is recorded as that person's.

## Errors

| `code` | exit | Cause | Fix |
|---|---|---|---|
| `notifications.not_owner` | 12 | The agent isn't working for an owner of the app or its organization | Ask an owner, or change it in the app's settings |
| `notifications.not_connected` | 1 | Slack isn't connected to the app's organization | An owner connects it in Org settings |
| `notifications.not_in_channel` | 1 | The bot isn't in that channel | Invite it with `/invite @agentcloud`, then run `add` again |

## Agent notes

- Read with `agc notifications` any time; change notifications only when an owner asked for that change.
- Channels are named by Slack id (`C0123ABCD`), never by name: take the id from `agc notifications channels`.

## Related

- [Activity log](/docs/owners/activity-log.md)
- [Approvals](/docs/concepts/approvals.md)
- [Approving in a session vs the console](/docs/ship/approving-in-a-session-vs-the-console.md)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "owners/notifications: <what is wrong>" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
