For the complete documentation index, see llms.txt. This page is also available as Markdown.

Customer.io

Learn how to integrate ContextPush with Customer.io.

Integrating ContextSDK Push Notifications with Customer.io

This guide provides step-by-step instructions on how to set up and send push notifications using Customer.io's web request block to interact with the ContextPush API.

Step 1: Add a Webhook Action

Go to where you want to leverage context-aware push notifications

  1. Add a new action to your campaign and select "Webhook" from the list of available actions.

  2. Configure the webhook with the following details:

    • Request Type: POST

    • URL: https://push.contextsdk.com/v1/campaigns/schedule_message_for_user

Step 2: Set Up Request Headers

In the webhook configuration, set the request headers to include the necessary authorization token:

  • Authorization: Token [Your_Token]

Step 3: Define the Request Body

Configure the request body using Customer.io's templating language to dynamically include user-specific data. Use the following JSON structure:

{
  "bundle_id": "com.contextsdk.demo",
  "platform": "ios",
  "user_id": "{{customer.email}}",
  "content": {
    "title": "It's time to get started with crypto",
    "body": "Just upload your ID, and start trading now"
  },
  "deliver_within_hours": 6,
  "campaign_id": "daily_reminder"
}

Notes:

  • Replace {{customer.email}} with the appropriate Customer.io variable for the user ID. This example assumes the email is used as the user ID.

  • Adjust the title and body fields to match your campaign's messaging.

Last updated

Was this helpful?