
By incorporating loyalty points into your survey strategy, you can gather valuable insights while fostering a loyal customer base, ultimately enhancing customer satisfaction and driving business growth. Offering loyalty points in exchange for survey participation can encourage new customers to enroll in your loyalty program as well as foster long-term loyalty with exsisting ones. Rewarding customers with loyalty points upon completing a survey creates a compelling incentive for customers to not only share their valuable feedback but also increase their spending. 

In this use case, we will create a workflow that grants 500 loyalty points for customers who fill out a survey.

## Prerequisites 
---
- Integrate mechanism for awarding loyalty points.
- [Create a dynamic content campaign with a survey](/use-cases/exit-popup-with-survey) according to your business needs.
- Implement a [custom event](https://developers.synerise.com/DataManagement/DataManagement.html#operation/CustomEvent) (`survey.completed`) that is generated on customer's profiles when they submit a form.
- Integrate Synerise [mobile SDK](/developers/) in your mobile application. 

  <div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

  Find more in the [Loyalty programs basics](/use-cases/loyalty-programs-basics) use case.

  </div></div></div>


## Security configuration
---
Before you start working with this hub, if you are a Synerise customer or partner, consider reading [the section about denylisting events](/docs/settings/tool/api#denylist). This natively accessible configuration will allow you to manage the restrictions in points management that may help you prevent fraud.

## Create a workflow
---
Create a workflow that grants 500 loyalty points for filling out a survey.

1. Go to <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/automation-hub-icon.svg" alt="Automation Hub icon" class="icon" > **Automation Hub > Workflows > New workflow**.  
2. Enter the name of the workflow.

### Define the Profile Event trigger node
At this stage, we will configure the conditions that launch the workflow. As a trigger, we will use the `survey.completed` event.

1. As the first node of the workflow, add **Profile Event**. In the configuration of the node: 
    1. From **Choose event** dropdown menu, choose the `survey.completed` event.  
    2. Confirm by clicking **Apply**.

<figure>
<img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/use-cases/all-cases/_gfx/survey_cmplt.png" alt="The view of the Profile Event node configuration"  class="large">
<figcaption>Profile Event node configuration</figcaption>
</figure> 

### Congifure the Generate Event node

1. Add **Generate Event** node. 
2. In the settings of the node:
    1. In the **Event name** field, enter the name of the event. In our case, we are using `points.loyalty` event.  
    4. In the **Body** section, use the following code and modify it to your needs:

        
       <pre><code class="language-json">{
               "points": "500"
               "source": "survey A"
               }</code></pre>


3. Click **Apply**.

<figure>
<img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/use-cases/all-cases/_gfx/survey_event.png" alt="The view of the Generate Event node configuration"  class="large">
<figcaption>Generate Event node configuration</figcaption>
</figure>

### Add final setting to your workflow

1. Add the **End** node to both paths.
2. Launch the workflow by clicking **Save&Run**.

<figure>
<img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/use-cases/all-cases/_gfx/survey_loy.png" alt="The view of the workflow configuration"  class="large">
<figcaption>Configuration of the workflow</figcaption>
</figure>

## Check the use case set up on the Synerise Demo workspace
---
In Synerise Demo workspace, you can check the configuration of the [Workflow](https://app.synerise.com/automations/automation-diagram/eb46bed4-55ee-43bd-9553-b3a27abceb8b).

If you’re our partner or client, you already have automatic access to the **Synerise Demo workspace (1590)**, where you can explore all the configured elements of this use case and copy them to your workspace.  

If you’re not a partner or client yet, we encourage you to fill out the contact [form](https://demo.synerise.com/request) to schedule a meeting with our representatives. They’ll be happy to show you how our demo works and discuss how you can apply this use case in your business. 

## Read more
---

- [Automation Hub](/docs/automation)
- [Dynamic content](/docs/campaign/dynamiccontent)
- [Jinjava inserts](/developers/inserts)
