Springbig + OneSignal

Springbig + OneSignal Integration Guide

Springbig is integrated with OneSignal allowing to seamlessly send template messages when an event is triggered to targeted audiences.

By leveraging OneSignal’s intuitive journey flow and webhook capabilities and Springbig’s messaging engine, retailers can enhance their communication strategies with minimal setup and maximal results.

Springbig + OneSignal Integration Guide

User interface is subject to change at the discretion of your POS provider. For the most accurate and up-to-date information, please consult your POS provider directly.

Part 1: OneSignal Onboarding & Requirements

Requirements

  • Paid plan that supports both Journeys and Webhooks (via OneSignal)

  • Enrolled members with phone numbers (via Springbig)

  • Configured messaging templates (via Springbig)

  • Springbig messaging credits (via Springbig)

Onboarding

Please reach out to your Springbig onboarding specialist/account manager to receive an auth token, x api key and template id(s).

Part 2: Send Customer Profile to Springbig Workflow

Webhook Setup

  1. Direct to the menu on the left-hand side and click Settings->Webhooks

2. Click New Webhook on the top-right

3. Enter webhook name such as ‘enrollments’, ‘customer creations’ etc.

4. Configure:

    1. Select method as POST

    2. Enter URL:

      1. https://production.api.springbig.technology/pos/v1/members

    3. Add and enter headers exactly as the following:

      1. x-api-key (retrieve from account manager)

      2. auth-token (retrieve from account manger)

      3. Content-Type (enter ‘application/json’ in the second field)

5. Body

    1. Select Custom Body

    2. Enter the following body: {

      “member”: {

      “pos_user”: “{{user.onesignal_id}}”,

      “pos_type”: “onesignal”,

      “first_name”: “{{user.tags.first_name}}”,

      “last_name”: “{{user.tags.last_name}}”,

      “phone_number”: “{{user.tags.springbig_phone}}”,

      “allowed_sms”: true,

      }

      }


      NOTE: 
      Please ensure to include the same phone number field as stored for profiles in case it’s not ‘phone_number’
    3.  Click Save

Journey Setup

  1. Direct to the menu on the left-hand side and click Journeys

  2. Click on the top-right New Journey

3. Select Entrance

4. Enter journey name (required) such as ‘enrollments’, ‘profile creations’ etc. and select segment(s) (required) to send profiles meeting the desired condition(s).

5. Configure other journey settings if desired.

6. Once completed click Save

7. Click the plus sign and select Webhook to add a webhook

8. Select webhook

9. Click Save

10. Enter desired exit rules

11. Once completed click Save & Close

Part 3: Send SMS Workflow

Webhook Setup
  1. Direct to the menu on the left-hand side and click Journeys

  2. Click New Webhook on the top-right

  3. Enter webhook name such as ‘send sms’, ‘sms’ etc.

  4. Configure– 

    1. Select method as POST

    2. Enter URL:

      1. https://production.api.springbig.technology/general/v1/message_template_logs

    3. Add and enter headers exactly as the following: 

      1. x-api-key (retrieve from account manager)

      2. auth-token (retrieve from account manager)

      3. Content-Type (enter ‘application/json’ in the second field)

  5. Body:

    1. Select Custom Body

    2. Enter the following values:
      {
      “message_template_id”: 123,
      “phone_number”: “{{user.tags.phone_number}}”,
      “redirect_url”: “abc.com”,
      “webhook_url”: “abc.com”,
      “label”: “abc”,
      “merchant_location_id”: 123,
      “template_image_id”: 123
      }

      1. Message_template_id- required (account manager will provide the id)

      2. Phone_number- required (Enter {{user.tags.phone_number}} in the second field. Please ensure to include the same phone number field as stored for profiles in case it’s not phone_number.)

      3. Redirect_url- not required

        1. NOTE: A link which allows customers to be directed to a landing page, such as an app or a specified webpage when the link is clicked in the message. If interested in this feature, please discuss it with a Springbig account manager.

      4. Webhook_url- not required

      5. Label- not required

      6. Merchant_location_id- not required (account manager will provide the id)

      7. Template_image_id- only required if including an image (account manager will provide the id)

6. Click Save

NOTE: For every unique campaign/template created in Springbig, it is preferable to create another SMS webhook along with a different journey created.

Journey Setup

  1. Direct to the menu on the left-hand side and click Journeys

  2. Click on the top-right New Journey

  3. Select Entrance

  4. Enter journey name (required) such as ‘sms’, ‘send sms’ etc. and select segment(s) (required) to send SMS to the intended audience

  5. Configure other journey settings if desired

  6. Once completed click Save

  7. Click the plus sign and select Webhook to add a webhook

  8. Select webhook

  9. Click Save

  10. Enter desired exit rules

  11. Once completed click Save & Close

NOTE: For every unique campaign/template created in Springbig, it is preferable to create a different journey.