Send notifications to Slack, SMS, or the notification bell
The Channel of a notification decides where the message goes:
| Channel | Where the message goes |
|---|---|
| To the email addresses in the Recipients table. | |
| Slack | To a Slack channel. |
| System Notification | To the notification list under the bell icon in ERPNext. |
| SMS | To mobile numbers, through your SMS provider. |
Send to Slack
Create a Slack webhook
- Go to Slack apps, and create a Slack app in your workspace.
- In the app, open Incoming Webhooks, and add a webhook to the channel.
- Copy the webhook URL.
Add the webhook to ERPNext
- Open the Slack Webhook URL list, and select New.
- Enter a Name, and paste the Webhook URL.
- Keep Show link to document selected to add a link to the document.
- Select Save.
Set the channel
- Open the notification.
- Set Channel to Slack.
- In Slack Channel, select the webhook.
- Select Save.
Slack does not accept HTML. Write the message in Slack's Markdown format:
*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.
- Open the notification.
- Set Channel to System Notification.
- 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
- Set up your SMS provider in SMS Settings.
- Open the notification.
- Set Channel to SMS.
- 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.