Skip to content

Use case: reward users for performing the desired action

Overview

Smart Flows enable you to set up rules to automatically reward users for performing in-app actions. Rules are set up on the GetSocial Dashboard and can be based on analytics event provided by GetSocial SDK by default or your custom defined events.

For instance, in our study together with Castle Cats game we found that users who are active on the in-app forum have 7 times higher day 30 retention. One of the ways to get more of those users is to reward users for being socially active.

Implementation Guide

In our example, we will implement a Smart Flow to reward user from the United States and Canada for posting the first three posts on the GetSocial Activity Feed.

Reward users for performing the desired action Smart Flow

0. 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.

  3. Integrate GetSocial Activity Feed.

  4. Make sure the app can handle notifications with actions to process such actions. Check the detailed implementation guide.

1. Select event-based flow

When all prerequisites are satisfied we’re ready to create a Smart Flow to automate user rewards.

  1. Login to GetSocial Dashboard and go to Smart Flows section → Create new flow.
  2. Choose an Event Based flow. For event based flows we have to specify the event that will start the flow and, optionally, add event property filters.
  3. Set flow name to “Reward users for posting the first three posts”.
  4. In the Event field select Activity Posted event → set the start condition to for the 3rd time → add a new property filter by clicking Add filter → select Country property → operator and country set to in CA, US → click Define actions.

    Create an event based Smart Flow

2. 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. To set the notification text and action that should be performed we have to create a new notification template or use one of the existing ones.

    To create a new notification template click Select a template → scroll to Create a new template → set template name → click Step 2 - Content button → provide notification title, text and localizations for the languages your app supports → click Step 3 - Action → select Custom action.

    Add the promo details as an Action Data. In this case, we have to add two key-value pairs type: soft_currency_reward and amount: 100.

    Make sure app can handle custom notification actions

    Before using custom actions, make sure you implemented custom action handling in the app. Check the full guide to do it.

    Create notification template

  3. Select who will receive the notification. With Smart Flows you can send the notification to the user itself, his referrer from Smart Invites or all user’s friends. In this case, we’ll send a notification to the User.

    Select notification receiver

  4. To finish the flow setup click Add Action button → review your flow → click Create Flow button.

  5. Click Add Action button → review your new action -> click Add Action button again

  6. In the Add action section select Send Webhook from the dropdown.

    Set first_three_posts as Name for the webhook and any Custom Data you would like us to include in the request to your servers.

    Select webhook

  7. To finish the flow setup click Add Action button → review your flow → click Create Flow button.

Next Steps

Give us your feedback! Was this article helpful?

😀 🙁