Learn how to use Novu to quickly send multi-channel (SMS, Email, Chat, Push) notifications.
CMD
+ B
to make the selected text bold.
@novu/node
package.
to
keyto
parameter contains the information about the subscriber of the notification. You can work with Novu in 2 modes:
subscriberId
is a custom identifier that identifies users within the Novu platform. We suggest using your internal DB identifier for this field.
When the trigger is called, Novu performs an upsert command, which either creates a subscriber with the specified payload, or updates the existing subscriber with the passed information.
Note: The API performs a PATCH command, updating only the fields passed to it. So to reset a specific field, you must explicitly pass null
as the fields param.
subscriberId
(Recommended)subscriberId
as part of the trigger, however, this approach requires you to identify the subscriber using the identify
method from the @novu/node
library.
payload
objectpayload
object can pass any serializable JSON object to be used in the workflows.