Learn how to use Novu to quickly send multi-channel (SMS, Email, Chat, Push) notifications with Kotlin.
pom.xml
file;
build.gradle
file;
Novu.kt
class using any of the following constructors:
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 | ✅ |
Use the create workflow button to create a workflow
Rename the workflow to a more suitable title
Select Email as the channel you want to add, by dragging it from the right sidebar.
Add the fields in the email editor
Add the variables in the Variables section in the test tab
By default, the dashboard will display a subscriber, as you were added automatically during sign-up.
phone
, avatar
, and data
. The data
field can accept an Object or a Map with the info you want to attach to the subscriber.
payload
is an array of the data that you want to be dynamically injected into the workflow content.subscriberId
is the ID of the subscriber on Novu. Replace 12345
with your subscriber ID.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: