GetSocial Smart Flows Testing Guide

Overview

The easiest way to test a Smart Flow in action is to filter the needed flow by test device id either via the creation of a Smart Audience filtered by a device id for an audience-based flow, or filtering an event-based flow via is test device flag. To know more about the test devices check the docs.

Prerequisite

  1. Integrate GetSocial SDK. Check the detailed guide on Android, iOS or Unity.

  2. Setup push notifications. Check the detailed setup guide on Android, iOS or Unity.

Testing audience-based flow

To test an audience-based Smart Flow you need to create an audience with test devices and add Smart Flow actions you want to test: push notifications, user properties or webhooks.

Create test flow

  1. Login to GetSocial Dashboard and go to Smart Flows section → Create new flow.
  2. Choose an Audience Based flow. For audience based flows we have to specify the audience of users that are qualified to enter the flow and the schedule when the flow should be triggered.
  3. Set flow name to “Test audience-based flow”.
  4. Create a new audience with users from your test devices. Press Select an audience → scroll to Create new audience → in the popup give audience the name → set the filter with property Device id - is - {{your test device id}} → click Save.

    Create an audience with test device users

  5. Set the flow schedule. For testing purposes we will trigger Smart Flow every hour. In the Check Audience on this schedule section leave selected Hourly tab → select frequency you want to send notifications → every 1 hour → click Define actions button to go to the next step.

Define actions

The next step is to define what actions that we want to test.

  1. In the Add action section select Send notification from the dropdown.
  2. Select the notification template to use. For testing purposes you can select any available notification template.
  3. Select User as a target for the notification.

    Define actions

  4. To finish the flow setup click Add Action button.

Test run

  1. On your test device login as a user from the test Smart Audience.
  2. Wait until the audience based flow will trigger the actions (1h is needed to the audience to pick up the needed user + needed amount of time set up in the Smart Flow schedule. In our case it’s 1h).
  3. Check the user’s notifications, they should contain the notification you defined in the Smart Flow.

Testing event-based flow

To check an event-based Smart Flow you can filter events with specific filters. For example, add a flag “is test device - true”, and then check all the needed actions: push notifications, user properties and webhooks.

Create test flow

  1. Login to GetSocial Dashboard and go to Smart Flows section → Create new flow.
  2. Choose an Event Based flow.
  3. Set flow name to “Test event-based flow”.
  4. For testing purposes select App open event.
  5. Ensure that the device you’re testing is added to the list of GetSocial Test Devices.
  6. Add a filter property Is Test Device - is true → Click Define actions

    Add test device filter to an event-based flow

Define actions

The next step is to define what actions should be performed when the flow is triggered.

  1. In the Add action section select Send notification from the dropdown.
  2. Select the notification template to use. For testing purposes you can select any available notification template.
  3. Select User as a target for the notification.

    Select actions

  4. To finish the flow setup click Add Action button.

Test run

  1. To start the Smart Flow open the application on the test device.
  2. Check if user received the notification defined in the previous step.

Give us your feedback! Was this article helpful?

😀 🙁