# Alerts and notifications

> Email, SMS, Slack, Discord, Telegram and more: who gets told what, and how.

Source: https://usewrit.app/docs/notifications/

Writ sends two kinds of alerts. Account notifications tell you about your own runs and account,
such as a failed run or a run that needs you; you choose how each one reaches you. Alerts you set up
on monitors and automations go to the channels and people you pick, such as a Slack channel or an
ops phone number.

## Where alerts can go

| Channel | Reaches | Set up in |
| --- | --- | --- |
| In-app alert | The bell in the app and the Notifications inbox. | Nothing to set up. |
| Email | Your account address, or recipients you add. | Settings, or Integrations → Recipients. |
| SMS, WhatsApp, Signal | A phone number. | Settings (your phone), or Integrations → Recipients. |
| Pushover | The Pushover app on a phone or computer. | Settings (your user key), or Integrations → Recipients. |
| Slack, Discord | A channel. | Integrations. |
| Telegram | A chat, through your own bot. | Integrations. |
| Outbound webhook | Your own server or another tool. | The automation step. See webhooks. |
| Desktop notification Desktop | A system notification on the computer running Writ Desktop. | Writ Desktop settings. |

Account notifications use In-app, Email, SMS, WhatsApp, Signal and Pushover. Monitors and
automations can use every channel above. A channel appears only when it can deliver: if a column
or a channel is missing, Writ cannot send on it from your workspace.

## Your account notifications

Open **Settings → Notifications**. Each row is one kind of notification, grouped by
topic, and each column a channel. Turn on the cells you want.

- **Automations & runs**: Run failed, Run needs you (a CAPTCHA, a sign-in, a code), Run auto-repaired, Crawl finished, Scheduled run skipped.
- **Agents & devices**: New device linked, Agent went offline.
- Plus security, billing, team and support notices.

Under **Delivery details**, add your **Phone number** in international
format (for example `+33612345678`); SMS, WhatsApp and Signal use it. Add your **Pushover user key** for Pushover. These are personal: they never receive your team's
monitor alerts.

> **note:** Security and payment alerts always stay on. Product news & tips is the only marketing email, and you choose whether to get it.

Everything sent in-app lands in the inbox at **Notifications** (the bell, or `app.usewrit.app/notifications`), where **Mark all read** clears it. These
settings are yours alone, for this organization; teammates set their own.

## Add recipients and channels for your team

Only an owner or admin of the workspace can manage recipients and channels. Open **Integrations**.

### People: email, phone and Pushover

-

1. **Add the recipient**

On the **Recipients** tab, add an email address, a phone number (for SMS, WhatsApp or Signal) or a Pushover key, with an optional name.

-

2. **Confirm the code**

Writ sends a 6-digit code to that address or number. Enter it under **Enter code** (ask the recipient if it is not yours). Nothing is delivered to a recipient until its code is
confirmed; **Send a new code** sends another.

### Slack, Discord and Telegram

Pick the tool in the **Catalogue** (or under **Add quickly** on the overview), then:

- **Slack**: click **Continue with Slack** and choose the channel, or add the "Incoming Webhooks" app to a channel and paste its **Webhook URL**.
- **Discord**: click **Continue with Discord**, or open the channel → Edit channel → Integrations → Webhooks, create a webhook and paste its URL.
- **Telegram**: message @BotFather, send `/newbot` and paste the **Bot token**; add the bot to your chat and paste the **Chat ID**.

Use **Test** on a connected channel to send a test message.

> **note:** The Continue with buttons appear only when quick connect is available; pasting a webhook URL always works.

## Send alerts from monitors and automations

On a monitor, choose **Notify me** as the reaction to a change. In an automation, add a **Send Notification** step. Either way you pick one or more channels and, for each, who
receives it. When you pick nobody on a channel, the alert goes to every confirmed recipient of
that channel.

Write the **Title (optional)** and the **Message** with placeholders that
Writ fills in when the alert is sent:

```
Title (optional):
  Change on {{target_name}}

Message:
  {{target_url}} changed on {{now_date}} at {{now_time}}.
  What changed: {{diff_snippet}}
  New price: {{extracted.price}}
```

```
Title (optional):
  {{workflow_name}}: {{workflow_status}}

Message:
  Finished in {{workflow_duration_seconds}} s.
  Top result: {{result.title}}
  Error, if any: {{workflow_error}}
```

| After | Placeholders |
| --- | --- |
| Anything | {{now}}, {{now_date}}, {{now_time}}, {{target_name}}, {{target_url}} |
| A monitor change | {{content}}, {{diff_snippet}}, {{extracted.field}}, {{selector_name}}, {{change_detected_at}} |
| A workflow run | {{workflow_name}}, {{workflow_status}}, {{success}}, {{workflow_duration_seconds}}, {{workflow_error}}, {{result.field}} |
| An incoming webhook | {{payload.field}} |

The automation builder lists the placeholders each step can use under **Available Placeholders**.

> **cost:** Alerts don't cost credits. The run or the monitor check that triggers them is billed as usual.

## On Writ Desktop

Writ Desktop raises system notifications on your computer: when a run needs you (a CAPTCHA, a
sign-in, a code), and when an automation sends to the **Desktop notification** channel.
In **Settings → Notifications**, check that your operating system allows them, then
click **Send a test**.

**Settings → Connectors** holds Slack, Discord and Telegram destinations that work with
no account at all: Writ Desktop posts to them directly from your computer, and their webhook URLs
and bot tokens stay on this machine. Set one up, then pick it in an automation's **Send Notification** step.

> **limit:** Email, SMS, WhatsApp, Signal and Pushover go through Writ Cloud, so on Writ Desktop they need a linked account. Your account-wide preferences are set in Writ Cloud and apply to the desktop app too.

## Next

-
- [Schedules, triggers and webhooks](https://usewrit.app/docs/automations-webhooks): Build the automations that send these alerts.
-
- [Monitor a page](https://usewrit.app/docs/monitors): Watch a page and get told when it changes.
-
- [Blocks, CAPTCHAs and hand-offs](https://usewrit.app/docs/bot-walls): What happens when a run needs you.
-
- [Zapier, Make and n8n](https://usewrit.app/docs/integrations): Send Writ events to your automation tools.
