---
schema_version: "1"
id: 89be38298793f27fdb404825aa063838fdc801767c9be6be6c5b6bf83db2da95
title: Install the Churn Prediction Einstein Discovery Templates
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_install_the_churn_prediction_einstein_discovery_templates.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_install_the_churn_prediction_einstein_discovery_templates.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ad2b2715a856099398b3997295f4cd1e61eb80c45b74fe874c7d9e5dbaacd74c
description: By using the churn-prediction app templates, you can sync external communications data and then consume the data to generate training or scoring datasets and predict churn.
products:
  - Communications
release: "264"
---
# Install the Churn Prediction Einstein Discovery Templates

By using the churn-prediction app templates, you can sync external communications data and then consume the data to generate training or scoring datasets and predict churn.

The app then deploys prebuilt recipes and creates an [Einstein Discovery Model.](https://help.salesforce.com/s/articleView?id=analytics.bi_edd_intro.htm&type=5&language=en_US) A model is a specialized structure within Einstein Discovery that stores a set of configurations related to a machine learning model. One of the templates delivered with Churn Prediction is a preconfigured model.![churn-prediction app templates](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-communications-264-0-0-production-enus/444efb86-ea1e-477e-afbc-56eaac192eaf/communications/images/create_a_new_app_all_templates.png)

## Import External Communications Data Into Your Model

If you haven’t imported the data already, for example, into a CSV file, import the data from an external source. Use the External Subscription Data app to input a preconfigured external data source and the source’s object, and then map and sync the data to Salesforce.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-communications-264-0-0-production-enus/444efb86-ea1e-477e-afbc-56eaac192eaf/images/icon_note.png)

Note For any other data source, start from the [Generate Predictions](https://help.salesforce.com/s/articleView?id=ind.comms_install_the_churn_prediction_einstein_discovery_templates.htm&release=264.0.0&type=5 "By using the churn-prediction app templates, you can sync external communications data and then consume the data to generate training or scoring datasets and predict churn.") section.

1. In Tableau CRM, click **Create**, and then select **App**.
2. To view the related templates in the gallery, in the Create a New App dialog, search for templates with the churn tag.
3. Select the **External Subscription Data** template, and then click **Continue**.
4. Click **Continue**.
5. Select **Create a brand new app**, and then click **Continue**.
6. In the External Subscription Data - Personalize dialog, select these options:
    
    - An external connection that contains your external communications data.
    - A connected object to which you want to map your external data.
7. Click **Next**.
8. Create a mapping of the fields from your external connection to the fields in your sObject.![Dataset and Object Field Mapping including Subscription Id, Data Usage, and Topup Amount.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-communications-264-0-0-production-enus/444efb86-ea1e-477e-afbc-56eaac192eaf/communications/images/external_subscription_data_personalize.png)
9. Click **Next**, and then enter a name for your app.
10. Click **Create**, and then wait for the template to create the app.
    
    The app uses external data to create the required datasets and data flows. You can use the datasets and data flows to develop your predictive model and predictions.
11. To view the assets that are created in the app, refresh the page.

SEE ALSO

[Connect and Sync Your Data to Tableau CRM](https://help.salesforce.com/s/articleView?id=sf.analytics.bi_integrate_connectors.htm&type=5&language=en_US)

## Run Recipes to Generate Prediction Datasets

The Churn Trends template consumes the Daily Top-up & Usage dataset and the synced data from the Communications schema. The Churn Trends template runs the preconfigured recipes that perform transformations and aggregations to generate a feature set and the training and scoring datasets.

1. In Tableau CRM, click **Create**, and then select **App**.
2. To view the related templates in the gallery, in the Create a New App dialog, search for templates with the churn tag.
3. Select the **Churn Trends** template, and then click **Continue**.
4. Click **Create a brand new app**.
5. Click **Continue**.
6. In the Mapped Subscriber Dataset field, select the dataset that you created with the External Communications Data template or your preconfigured dataset that’s generated from the Communications schema or CSV file.![Select your Mapped Subscriber Dataset.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-communications-264-0-0-production-enus/444efb86-ea1e-477e-afbc-56eaac192eaf/communications/images/churn_trends_personalise_subscriber_datasets.png)
7. Click **Looks good, next**, and then enter a name for the app.
8. Click **Create**, and then wait for the template to create the app.
    
    The app runs the recipes and generates the required training and scoring datasets.
9. To view the list of generated datasets, refresh the page, and then click the **DATASETS** tab.![Dataset details.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-communications-264-0-0-production-enus/444efb86-ea1e-477e-afbc-56eaac192eaf/communications/images/analytics_trendsapp_datasets.png)

## Create a Churn Prediction Model

Use the Churn Model and Insights template to deploy the ML model on the dataset that you generated earlier. The template contains recipes for visualizations and predictions on churn. To improve customer retention, the Churn Model and Insights template consumes the generated training and scoring dataset and then deploys the model.

For more information on generating datasets, see [Run Recipes to Generate Prediction Datasets](https://help.salesforce.com/s/articleView?id=ind.comms_install_the_churn_prediction_einstein_discovery_templates.htm&release=264.0.0&type=5 "By using the churn-prediction app templates, you can sync external communications data and then consume the data to generate training or scoring datasets and predict churn.").

1. In Tableau CRM, click **Create**, and then select **App**.
2. To view the related templates in the gallery, in the Create a New App dialog, search for templates with the churn tag.
3. Select the **Churn Model and Insights** template, and then click **Continue**.
4. Click **Create a brand new app**.
5. Click **Continue**.
6. Select these datasets that you generated by using the Churn Trends template:
    
    - Example dataset
    - Scoring dataset![Churn Model and Insights - Map Datasets](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-communications-264-0-0-production-enus/444efb86-ea1e-477e-afbc-56eaac192eaf/communications/images/churn_model_and_insights_personalise.png)
7. Click **Looks good, next**, and then enter a name for the app.
8. Click **Create**, and then wait for the template to create the app.
9. To view the list of assets that the app created, refresh the page.
    
    Stories contain the model and insights on how to maximize store revenue. Datasets contain the final scoring data.