Sheetlabs

Workflow Automation

Overview

Sheetlabs is a platform that turns Google Sheets or Excel files into easy-to-use, RESTful APIs. When integrated with CleverTap, it enables you to use a spreadsheet as a lightweight customer data source or content manager for campaigns.

With this integration, you can:

  • Pull dynamic content (for example, messages, titles) into your CleverTap campaigns using Linked Content.
  • Push user data from CleverTap into a Sheetlabs spreadsheet using Webhooks.

Prerequisites for Integration

The following are the prerequisites for integrating Sheetlabs with CleverTap:

  • Ensure you have a valid Sheetlabs account.
  • Ensure you have a spreadsheet in either Google Sheets or in CSV/Excel format
  • Ensure you have access to the CleverTap dashboard.

Integrate Sheetlabs with CleverTap

The integration process involves the following three major steps:

  1. Create an API in Sheetlabs
  2. Configure Linked Content API.
  3. Create Personalized Campaign Using Linked Content.

πŸ“˜

Import Your Spreadsheet into Sheetlabs

To use Sheetlabs as a content source, import your spreadsheet into Sheetlabs by uploading a CSV/Excel file or connecting your Google account to import a Google Sheet. You can optionally enable auto-sync to keep the data updated automatically.

Create an API in Sheetlabs

To programmatically access your imported table data from Sheetlabs, you must create an API. This allows you to fetch data dynamically and use it across external tools or platforms. To do so, perform the following steps:

  1. From API section of your Sheetlabs dashboard, click + New API.
  2. Select the Data table you just imported.
Create an API in Sheetlabs

Create an API in Sheetlabs

  1. Name your API and optionally add a description.
  2. Select GET as the method to fetch data.
  3. Copy the Base URL for the API.
Copy Base URL

Copy Base URL

Configure Linked Content API

Set up Linked Content in CleverTap to connect your Sheetlabs API and retrieve dynamic campaign content using user profile parameters. To do so, perform the following steps:

  1. Go to Settings > Setup > Linked Content in the CleverTap dashboard.
  2. Click + Linked Content.
Add Linked Content

Add Linked Content

  1. In the URL field, paste the Base URL copied in Step 5 of Create an API in Sheetlabs, and append the parameter ID={{id}} to personalize the request.

Example:

<BASE_URL_FROM_SHEETLABS>?ID={{id}}

In this example, ID is used to identify the user, and the corresponding Title and Message fields from the sheet will be used in the campaign. ID acts as the lookup parameter for fetching personalized content.

  1. Click Test Linked Content to verify if the data is being correctly retrieved based on the ID provided from the linked Google Sheet.

Example API response:

[
  {
    "ID": 1234,
    "Title": "Hey",
    "Message": "How have you been?",
    "Button": "Buy Now!"
  }
]

🚧

Auto-mapping

Auto-mapping of objects and labels is not supported for this type of array-based response from the Sheetlabs API. You need to manually iterate through the JSON response using Liquid tags to access specific values.

  1. Click Test and Save to save this API.
Save Linked Content

Save Linked Content

Once the Sheetlabs data is available through Linked Content, you can use it in any CleverTap campaign that supports personalization, such as Push Notifications or Email Campaigns.

Create Personalized Campaign Using Linked Content

Use the Linked Content API inside a Push Notification campaign to personalize the message with Sheetlabs.

To do so, perform the following steps:

  1. Go to Campaigns from the CleverTap dashboard and click + Campaign.

  2. Select Push Notification from the Messaging Channels list.

  3. Configure all the campaign settings and then go to the What section:

    1. Click Personalization.
    2. Select the Linked Content configured under Configure Linked Content API and click Apply.
Personalization

Personalization

  1. Type {, {{, or @ to view available personalization options. For more information about how to personalize a message using Linked Content, refer to CleverTap Liquid tag.
Create Personalized Message Using Linked Content

Create Personalized Message Using Linked Content

  1. Click Preview and Test to see if the campaign pushes the default values you configured.
  2. Click Publish to launch the campaign. Verify that everything works as intended. Users will receive a push notification like the one below.
Push Notifications

Push Notifications

Similarly, you can apply this setup to other CleverTap campaigns using linked content, such as Email, WhatsApp, or Web Push.