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¶
-
Integrate GetSocial SDK. Check the detailed guide on Android, iOS or Unity.
-
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¶
- Login to GetSocial Dashboard and go to Smart Flows section → Create new flow.
- 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.
- Set flow name to “Test audience-based flow”.
-
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.
-
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.
- In the Add action section select Send notification from the dropdown.
- Select the notification template to use. For testing purposes you can select any available notification template.
-
Select User as a target for the notification.
-
To finish the flow setup click Add Action button.
Test run¶
- On your test device login as a user from the test Smart Audience.
- 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).
- 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¶
- Login to GetSocial Dashboard and go to Smart Flows section → Create new flow.
- Choose an Event Based flow.
- Set flow name to “Test event-based flow”.
- For testing purposes select App open event.
- Ensure that the device you’re testing is added to the list of GetSocial Test Devices.
-
Add a filter property Is Test Device - is true → Click Define actions
Define actions¶
The next step is to define what actions should be performed when the flow is triggered.
- In the Add action section select Send notification from the dropdown.
- Select the notification template to use. For testing purposes you can select any available notification template.
-
Select User as a target for the notification.
-
To finish the flow setup click Add Action button.
Test run¶
- To start the Smart Flow open the application on the test device.
- Check if user received the notification defined in the previous step.