Start a conversation

Zapier: Run a notification on Slack channel for an event in the hub

Overview

This article provides a step-by-step guide on setting up Slack notifications for events occurring within your hub, using Zapier as the automation tool. It emphasizes the need for a Zapier account and being logged into the hub for testing. The example given demonstrates configuring a Zapier webhook to notify a Slack channel when a new member completes an onboarding challenge.

 

Information

In this article, we will go through the steps required to set up Slack notifications for events in your hub. You can set up a Slack notification for any Event Types that are listed here or by going to Settings > Scoring & Achievements > Event Types in the AdvocateHub.

As a pre-requisite, you will need to have a Zapier account in order to begin this process. There are options to set up a free Zapier account for testing purposes. You should also be logged into the hub (preferably as an advocate using a test account) or as an admin ready to quickly trigger the event for which you wish to receive a notification e.g. Posted a topic.

In this particular example, we will set up Zapier to run a notification on a specific channel in Slack when a new member completes an onboarding challenge.


Go to Zapier homepage and Create a Zap:


Step 1: Trigger > Webhooks by Zapier

  1. Event: catch hook.
  2. Copy the webhook URL.
  3. Go to Influitive webhooks settings.
  4. Add a webhook and fill in the data:
    1. Add name.
    2. Add webhook URL you copied.
    3. Format: JSON.
    4. Type: Event.
    5. Select the event from the list “Completed Challenge”.
  5. Go back to Zapier and test the trigger (log the event on Influitive and check Zapier if the request is received) and if all is good, continue.

Step 2: Action > Set an action to filter for the challenge id

As per this Zapier article.
  1. Action > Filter by Zapier.
  2. Only continue if ... Challenge id <> Exactly matches <> Onboarding challenge UUID.
  3. Test this out by completing the challenge you specified and seeing if the event is triggered.

Step 3: Action > Set an action to send a notification to Slack

  1. Select “Slack” from apps list.
  2. Event: Send Channel Message.
  3. Choose account: connect Slack.
  4. Set up an action:
    1. Channel: Select the channel you want.
    2. Message text: add the text message you want to post on the channel when the event is triggered.
    3. The rest are optional fields you can enable and disable, whichever you want.
    4. You can now test the full flow and see if it works.
    5. Save as a draft or publish your Zap and turn it on.

You can refer to the following recording for details. http://recordit.co/jJn993SXj7

 

FAQ

Do I need a paid Zapier account to set up Slack notifications for hub events?

No, Zapier offers free accounts that can be used for testing purposes to set up Slack notifications.

What do I need to do before setting up Slack notifications for hub events?

Before setting up notifications, ensure you have a Zapier account and are logged into the hub as an advocate or admin to trigger the events.

Can I configure notifications for any event in the hub?

Yes, you can configure Slack notifications for any event type listed under Settings > Scoring & Achievements > Event Types in the AdvocateHub.

What are the main steps involved in setting up Slack notifications via Zapier?

The main steps include setting a trigger using Webhooks by Zapier, filtering for the specific event or challenge id, and then setting an action to send a notification to a designated Slack channel.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments