
When you open a new branch of your offline store, you may want to implement a campaign that will encourage your customers to visit a new location. To find out who would be the best target of the campaign, you can use the Predictions feature.

The business goal of this use case is to find a group of customers who will be the audience of a campaign released on the occasion of opening a new store in Waverly, the fourth shop branch in Lackawanna County.  

The main action in this use case is comparison of a group of customers whose location is declared to be Waverly (target group) to the group of customers who made purchases in the offline branches of your shop - source group. After the prediction is complete, the customers from the target group will be recognized by the `snr.lookalike.score` event on their profiles and the `score_label` parameter of this event indicates the level of similarity to the source group.  

Based on this event, you can create a group of customers with the highest score who will be the recipients of the campaign that is released for the shop branch opening. This way, you increase the chances of reaching those for whom the location of the shop branch is more convenient and encourage them to visit the shop.

## Prerequisites
---
- [Enable the Lookalikes prediction type](/docs/ai-hub/predictions/enabling-predictions#enabling-lookalikes)
- Implement transaction events using [SDK](/developers/web/transactions-sdk) or [API](https://developers.synerise.com/DataManagement/DataManagement.html#operation/CreateATransaction).

## Process
---

In this use case, you will go through the following steps:
1. [Create source segmentation](/use-cases/discover-customers-for-new-shop-branch#create-source-segmentation).
2. [Create target segmentation](/use-cases/discover-customers-for-new-shop-branch#create-target-segmentation).
3. [Create a prediction](/use-cases/discover-customers-for-new-shop-branch#create-a-prediction).

## Create source segmentation
---
A source segmentation is a group of model customers to whom you compare the target group of customers in order to find similar customers in the target group. 

1. Go to <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/decision-hub-icon.svg" alt="Decision Hub icon" class="icon" > **Decision Hub > Segmentations > New segmentation**.
2. Enter a meaningful name of the segmentation.
3. Click **Choose filter**.
4. From the drop down list, select the transaction event.  
    
   <div class="admonition admonition-tip"><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="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" /></svg></div><div class="admonition-body"><div class="admonition-content">

   Events may have different labels between workspaces, but you can always find them by their action name (in this step, it’s transaction.charge).

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

5. As the parameter, select `source` and set its value to `POS`.  
6. Using the date picker in the lower-right corner, select the date **last 60 days**.  
7. Save the segmentation.

    <figure>
    <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/use-cases/all-cases/_gfx/discover-new-customers-source-segmentation.png" alt="Configuration of the source segmentation" class="full">
    <figcaption>Configuration of the source segmentation</figcaption>
    </figure> 

## Create target segmentation
---
A target segmentation is a group of customers among which you want to find customers who are similar to those included in the source group.

1. Go to <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/decision-hub-icon.svg" alt="Decision Hub icon" class="icon" > **Decision Hub > Segmentations > New segmentation**.
2. Enter a meaningful name of the segmentation.
3. Click **Choose filter**.
4. From the dropdown list, select the **city** attribute. 
5. Set the attribute value to **Waverly**.  
6. Save the segmentation.

<figure>
<img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/use-cases/all-cases/_gfx/discover-new-customers-target-segmentation.png" alt="Configuration of the target segmentation" class="large">
<figcaption>Configuration of the target segmentation</figcaption>
 </figure> 

## Create a prediction
---
In this part of the process, you create a prediction that uses the segmentations you created before.

1. Go to <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/ai-hub-icon.svg" alt="AI Hub icon" class="icon" > **AI Hub > (AI Predictions) Models > New prediction**.
2. In the **Select prediction type** window that appears, click **Lookalike**.
3. Click **Apply**.
4. In the **Audience** section, click **Define**.  
5. In the **Source segmentation** subsection, click **Choose segmentation**. 
6. From the dropdown list, select the [source segmentation](/use-cases/discover-customers-for-new-shop-branch#create-source-segmentation) you created before.
7. In the **Target segmentation** subsection, click **Choose segmentation**.
8. From the dropdown list, select the [target segmentation](/use-cases/discover-customers-for-new-shop-branch#create-target-segmentation) you created before.
9. Confirm by clicking **Apply**.
10. In the **Settings** section, click **Change**.
11. Enable the **Set up recurring prediction calculation** option.
12. Set the recalculation of the prediction every 7 days. The segmentation is recalculated before a prediction is recalculated - recalculation of the segmentation concerns recurring predictions which intervals are longer than several hours. 
13. Select the **2-point scale**.  
    <figure>
    <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/use-cases/all-cases/_gfx/discover-new-customers-final-prediction.png" alt="Configuration of the prediction" class="large">
    <figcaption>Configuration of the prediction</figcaption>
    </figure>
14. Confirm by clicking **Apply**.  
15. Click **Save & Calculate**.  


## What's next
---
Based on the `snr.lookalike.score` event, you can create a segmentation for the Waverly opening campaign. To define the size of the recipient group, you can use the `score_label` parameter of the `snr.lookalike.score` with the `score` value set to high or use `percentiles` in order to address your communication to a specific percentage of target segment with the highest prediction score. Later you can use this segment in the following campaigns:  

- [email](/docs/campaign/e-mail)
- [SMS](/docs/campaign/SMS)
- [web push](/docs/campaign/Webpush)
- [mobile push](/docs/campaign/Mobile)
- [dynamic content](/docs/campaign/dynamiccontent)
- [screen views](/docs/campaign/screen-views)  
  
Email, SMS, web push and mobile push can be sent manually or you can launch them by using [Automation Hub](/docs/automation). 

## Check the use case set up on the Synerise Demo workspace
---
You can find the analyses created in this use case in our Synerise Demo workspace at the following links:  
- [Segmentation of buyers in offline shops](https://app.synerise.com/analytics/segmentations/1700ded9-ea8f-48b0-928b-1666c4c6f2e9),  
- [Segmentation of customers from Warsaw](https://app.synerise.com/analytics/segmentations/4f1d7cc0-c0ef-46fa-aa67-9d45363d6285), 
- [Lookalike prediction](https://app.synerise.com/ai-v2/predictions/lookalike/xbpsvrwlcpcw). 

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
---
- [Lookalike predictions](/docs/ai-hub/predictions/lookalikes)
- [Predictions](/docs/ai-hub/predictions/predictions-introduction)
