Learn how to use Novu to quickly send multi-channel (SMS, Email, Chat, Push) notifications with Go.
<NOVU_API_KEY>
with your own API key that you got from the API Key section of your Novu Dashboard.
Options | Detail | Default Value |
---|---|---|
RetryMax | Specifies total number of retries to perform in case of failure | 0 |
WaitMin | Specifies the minimum time to wait before retrying | 0 |
WaitMax | Specifies the maximum time to wait before retrying | 0 |
InitialDelay | Specifies the initial delay before the first retry attempt | 0 |
Channel | Providers |
---|---|
MailGun, Mandrill, MailJet, Amazon SES, Sendgrid, Postmark, Netcore | |
SMS | Twilio, Amazon SNS, Plivo, SMS, SMSCentral, Kannel, Infobip, Termii |
Chat | Mattermost, Slack, Microsoft Teams, Discord |
Push | FCM, APNS, Expo |
Channel | Content Style | Custom Variables{{handlebars}} format |
---|---|---|
HTML | ✅ | |
Visual Editor | ✅ | |
SMS | Text | ✅ |
Chat | Text | ✅ |
In-App | Text | ✅ |
Push | Text | ✅ |
Select any channel you want. We'll use the email channel
Update email template
Send a test email to test the workflow
Navigate to `Subscribers` from the left sidebar
eventId
should be the notification workflow’s trigger ID/slug.The value of `eventId` should be the notification workflow's trigger ID/slug
payload
is an array of the data that you want to be dynamically injected into the notification template content.subscriberId
is the id of the subscriber on Novu.key
, ensure it is unique and accurately identifies the topic. Document naming conventions and communicate them to team members to avoid confusion and ensure a smooth workflow.name
should be a descriptive topic name.to
field of the notification trigger.
To trigger a notification to all subscribers of a topic, copy and paste the code below: