Slack (via Zapier)

Messenger Partner

Overview

Slack is a messaging platform that enables teams to communicate and collaborate in real time. By integrating Slack with CleverTap via Zapier, businesses can automate workflows, track user interactions, update user profiles, and trigger personalized campaigns based on Slack activities.

The following are some of the use cases that the CleverTap Slack integration can address:

  • Track Key Engagement Activities: Capture Slack interactions such as message posts, reactions, or mentions and log them as events in CleverTap.
  • Automate Internal Notifications: Send automated notifications to a Slack channel when key events are raised in CleverTap.
  • Update or Create User Profiles: Automatically update user profiles in CleverTap based on Slack interactions, ensuring accurate and real-time data synchronization.

Prerequisites for Integration

The following are the prerequisites for Slack integration:

  • Ensure you have access to your Slack workspace with admin permissions.
  • Ensure you have an active Zapier account to create the CleverTap integration.
  • Ensure you have a CleverTap account with valid Account ID, Passcode, and Region.

Integrate Slack with CleverTap using Zapier

The integration process involves the following two major steps:

  1. Create a Passcode on the CleverTap Dashboard.
  2. Create/Update User Profiles.OR
    Upload Event.

Create a Passcode on the CleverTap Dashboard

CleverTap uses a header-based authentication model to authenticate API requests. Every CleverTap API call must include Account ID and Passcode as request headers. To create a passcode, refer to Create Account Passcode.

Create/Update User Profiles

To ensure real-time updates and maintain accurate user data in CleverTap, you can automatically update or create user profiles based on Slack interactions. Perform the following steps:

  1. Log in to the Zapier dashboard and click + Create Zap.
Create a Zap on Zapier Dashboard

Create a Zap on Zapier Dashboard

  1. Set up a Trigger. To do so, perform the following steps:
    1. Select Slack from the App section. This starts the Zap when a trigger occurs on Slack.
    2. Select Trigger Event from the dropdown list and then select New Message Posted or New Reaction Added for this use case.
    3. Select Account and sign in using your Slack account credentials. Authorize Zapier to access your Slack workspace. You can also connect a new account if your account does not appear in the dropdown
    4. Click Continue.
Set up a Trigger

Set up a Trigger

  1. Click Test Trigger. This ensures that the right account is connected and the trigger is set up correctly.
  2. After testing the trigger, you will see details of pulled records similar to the image below.
Selected Record

Selected Record

  1. Select any one record, and click Continue with selected record.
  2. Select the Action that the zap must perform after the trigger event occurs. To do so, perform the following steps:
    1. Select CleverTap from the App dropdown.
    2. Select Create/Update User Profile from the Action event dropdown. This will create or update user details such as email, role, and activity based on Slack interactions.
    3. Select Account to connect the CleverTap account. The Zapier window opens. Enter all the required details to connect to the CleverTap account. Enter the same passcode you obtained during the Create a Passcode on CleverTap Dashboard step.
    4. Click Continue after successfully connecting your account.
Select the Action

Select the Action

  1. Configure the Action. Map Slack data fields to CleverTap fields as follows:
CleverTap Profile FieldSlack Field
IdentitySlack user ID field, email ID, or any unique identity field corresponding to the user.
Creation DateDate of the user’s creation in Slack.
Profile PropertiesInclude user properties in JSON format (such as name, email, role, and other custom properties).

🚧

Mapping Identity and Object ID

You can keep the Identity field blank if you provide an Object ID, and vice versa.

Configure the Action

Configure the Action

  1. Click Continue and click Test Step to test the zap after mapping the files.
  2. Click Publish.

After publishing this, Zap will automatically create or update user profiles in CleverTap whenever relevant Slack interactions occur. This ensures user data remains up-to-date and helps in deliver personalized engagement. You can verify this by checking your CleverTap dashboard to confirm the user profile has been created or updated.

Verify user in CleverTap

Verify user in CleverTap

Upload Event

Consider an example where you want to track user engagement activities in Slack and log them as events in CleverTap. This allows you to analyze interactions and personalize engagement strategies. To do so, perform the following steps:

  1. Log in to the Zapier dashboard and click + Create Zap.
  2. Set up a Trigger. To do so, perform the following steps:
    1. Select Slack from the App section. This starts the Zap when a trigger occurs on Slack.
    2. Select Trigger Event from the dropdown list and then select New Message Posted or New Reaction Added for this use case.
    3. Select Account and sign in using your Slack account credentials. Authorize Zapier to access your Slack workspace. You can also connect a new account if your account does not appear in the dropdown.
    4. Click Continue after successfully connecting your account.
Set up a Trigger

Set up a Trigger

  1. Click Test Trigger. This ensures that the right account is connected and the trigger is set up correctly.
  2. After testing the trigger, you will see details of pulled records similar to the image under step 4 of Create/Update User Profiles. Select any one record, and click Continue with selected record.
  3. Select the Action the zap must perform after the trigger event occurs. To do so, perform the following steps:
    1. Select CleverTap from the App dropdown.
    2. Select Upload Event from the Action event dropdown. This will log interactions (messages, reactions) as events for analytics and automation.
    3. Select Account to connect the CleverTap account. For more information about how to do this, refer to step 6 (iii) under Create/Update User Profiles.
    4. Click Continue after successfully connecting your account.
Select Action for Zap

Select Action for Zap

  1. Configure the Action. Map Slack data fields to CleverTap fields as follows:
CleverTap FieldSlack Field
User IDSlack user ID field, email ID, or any unique identity field corresponding to the user.
Creation DateEvent creation date.
Event NameSelect a predefined event or create a custom event. You can also map the event name using the Slack data fields.
Event PropertiesInclude metadata in JSON format (for example, event type, priority, event properties).

🚧

Mapping Identity and Object ID

You can keep the Identity field blank if you provide an Object ID, and vice versa.

Configure the Action

Configure the Action

  1. Click ContinueClick Test Step to test the zap after mapping the files.
  2. Click Publish to activate the Zap.

After publishing this, Zap will log Slack events as CleverTap events, providing actionable insights into user engagement. This data can be leveraged for analytics and triggering automated campaigns. You can verify this by checking your CleverTap dashboard to confirm if the event has been logged.

Verify Events in CleverTap

Verify Events in CleverTap

FAQs

What happens if I do not map the required fields?

Not mapping required fields may result in incomplete data transfer or failure to trigger events and campaigns correctly.