Learn about how to use Slack provider for chat notifications
webhookUrl
that Novu requires to send chat messages to your customers.
We will provide the basic flow that the user needs to perform, to successfully send notifications via the Slack integration.
Shareable URL
to perform authentication.Shareable URL
in the Integration StoreUse the 'Shareable URL' from the Novu Integration Store
Add to Slack
button or use the Shareable URL
directly, in the application you’ll be using Novu in.
Shareable URL
that is found under the Slack integration in the Integration Store. The Shareable URL
should have the following format:SUBSCRIBER_ID
is a custom identifier used when identifying your users within the Novu platform.ENVIRONMENT_ID
is a context of an environment you can locate your environment id in the setting in the dashboard settings.PROVIDER_ID
(optional) is a unique identifier of the integration and is required when you have multiple slack integrations in Novu. You can locate your integration identifier in the Integration Store. When not provided, the last created integration will be used.
If you are using the Add to Slack
button you have to provide the Shareable URL
as the redirect_uri
parameter like in this example. Make sure that the Shareable URL
is URL encoded:Shareable URL
, you should land here:Select the channel and grant this permission
Select the channel and grant this permission
Now you can send notifications to the channel you chose earlier
webhookUrl
and plug it into your backend.
Turn on 'Incoming Webhooks' in your Slack app
Click the 'Add New Webhook to Workspace' button
Select the channel
Copy the webhookUrl from Slack
webhookUrl
on the relevant subscriber entity in Novu. Here’s an example to do the same using our Node SDK:subscriberId
is a custom identifier used when identifying your users within the Novu platform.providerId
is a unique provider identifier. We recommend using our ChatProviderIdEnum.Slack if you’re using Node, else string of Slack to specify the provider.webhookUrl
property to specify the webhook URL generated in the previous step.https://api.novu.co/v1/subscribers
.