Send notifications to Slack, SMS, or the notification bell ​

The Channel of a notification decides where the message goes:

ChannelWhere the message goes
EmailTo the email addresses in the Recipients table.
SlackTo a Slack channel.
System NotificationTo the notification list under the bell icon in ERPNext.
SMSTo mobile numbers, through your SMS provider.

Send to Slack ​

Create a Slack webhook ​

  1. Go to Slack apps, and create a Slack app in your workspace.
  2. In the app, open Incoming Webhooks, and add a webhook to the channel.
  3. Copy the webhook URL.

Add the webhook to ERPNext ​

  1. Open the Slack Webhook URL list, and select New.
  2. Enter a Name, and paste the Webhook URL.
  3. Keep Show link to document selected to add a link to the document.
  4. Select Save.

Set the channel ​

  1. Open the notification.
  2. Set Channel to Slack.
  3. In Slack Channel, select the webhook.
  4. Select Save.

Slack does not accept HTML. Write the message in Slack's Markdown format:

jinja
*Order Overdue*

Transaction {{ doc.name }} has exceeded its due date.

{% if comments %}
Last comment: {{ comments[-1].comment }} by {{ comments[-1].by }}
{% endif %}

• Customer: {{ doc.customer }}
• Amount: {{ doc.grand_total }}

Send a system notification ​

A system notification appears in the notification list under the bell icon in the top bar. ERPNext also sends system notifications for assignments, mentions, and shared documents.

  1. Open the notification.
  2. Set Channel to System Notification.
  3. Select Save.

When a user selects the notification, ERPNext opens the Notification Log. It shows the subject, the message, and the print attachment if Attach Print is selected.

To send an email or Slack message and a system notification together, keep Channel as Email or Slack, and select Send System Notification.

Send an SMS ​

  1. Set up your SMS provider in SMS Settings.
  2. Open the notification.
  3. Set Channel to SMS.
  4. Select Save.

INFO

Older versions had a WhatsApp channel through Twilio. In version 16, this channel is not part of ERPNext. Use a separate app to send WhatsApp messages.