Slack Incoming Webhooks provide an easy way to post messages to Slack from a PubNub Function

Slack Incoming Webhooks provide an easy way to post messages to Slack from a PubNub Function.

With Incoming Webhooks you can create notifications or alerts and even make them interactive. You can use Incoming Webhooks to send an alert when a user has paid, an error occurred, or if a service isn’t responding. You can also use Incoming Webhooks to ask if a user has permission for a resource with the ability to respond from Slack.

Setup

  1. Login or Register to Admin Portal

  2. Select Functions

  3. Select your desired App and Keyset

  4. Select "Explore Templates" and proceed with selected integration.

Walkthrough

You'll need a Slack account and a workspace. Follow Slack's documentation for creating an Incoming Webhook. Configure the Incoming Webhook settings to your preferences. Replace SLACK-WEBHOOK-URL-HERE with your Incoming Webhook URL and edit the message text to be whatever you want.

By default this function will make a "Hello World!" post to Slack each time it is executed. You can use any event type with this function.

Talk to an expert