---
schema_version: "1"
id: fe57c994aac6a38895b900c8f013e8cc3a58f75f12748182640ff34835277754
title: Embed Einstein Predictions in Tableau Flows
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/analytics/264-0-0/bi_edd_tableau_prep.md
canonical_url: https://help.salesforce.com/s/articleView?id=analytics.bi_edd_tableau_prep.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c4fa647469279dcb800763ed8f1c3b3fd1ef46e0d4bfc215a3c67d2449549919
description: Use the Prediction step in Tableau Prep to include Einstein Discovery predictions directly into your flows. Enrich your flow output with predictions and, optionally, improvements and top factors.
products:
  - CRM Analytics
  - Cross Cloud
release: "264"
---
# Embed Einstein Predictions in Tableau Flows

Use the Prediction step in Tableau Prep to include Einstein Discovery predictions directly into your flows. Enrich your flow output with predictions and, optionally, improvements and top factors.

## Tableau Documentation for the Prediction Step in Tableau Prep

This topic provides an overview of the Prediction step supported in Tableau Prep version 2021.1.3 or later. For detailed instructions on setting up and using the Predict step in your flows, refer to the following topic in Tableau Prep help: [Add Einstein Discovery Predictions to your flow](https://help.tableau.com/current/prep/en-us/prep_predictions.htm).

## Add a Prediction Step to a Flow

In Tableau Prep as a creator, open a flow, and then add a Prediction step.

![Adding a prediction step to a Tableau flow](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/bi/images/bi/bi_edd_tableau_prep_select.png)

Next, connect to Salesforce with a user account that can access Einstein Discovery.

![Connecting to Salesforce to access Einstein Discovery](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/bi/images/bi/bi_edd_tableau_prep_connect.png)

From the list of deployed prediction definitions in Salesforce, select one to use to generate predictions. Fields for prediction values are added to the data source automatically.

![Selecting a prediction in Salesforce](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/bi/images/bi/bi_edd_tableau_prep_definition.png)

Map model fields to flow fields and configure other settings as needed.

![Field mapping and other configuration settings for the prediction](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/bi/images/bi/bi_edd_tableau_prep_map.png)

When the flow is run, the Prediction step gets a prediction for each row of data and saves the prediction value, and optionally other information, to the flow output.

#### See Also

- [Get Predictions in Tableau](https://help.salesforce.com/s/articleView?id=analytics.bi_edd_tableau.htm&release=264.0.0&type=5 "Einstein Discovery in Tableau provides predictions and improvements for Tableau data in worksheets, calculated fields, and flows.")