---
schema_version: "1"
id: 3b4f954b8030e9b68ca284799b4ee942d7c9b114981abb64cc916e23ef7972a7
title: 配置 Einstein Discovery 集成
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/online/config_einstein_extensions.md
canonical_url: https://help.tableau.com/current/online/zh-cn/config_einstein_extensions.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 1dce9a56d84cd6b7591276977fef0e86649e0cbb32927fde29cc4b48d2381811
description: Configure Einstein Discovery integration for dashboards, analytics, and Prep flows in Tableau Cloud.
---
[跳转到主要内容](#main-content)

# 配置 Einstein Discovery 集成

从 2021 年 3 月开始，Tableau Cloud 支持与 Einstein Discovery 集成，使 Einstein Discovery 预测可供仪表板的作者和查看者使用。从版本 2021.2.0 开始，现在在 Web 上制作流程时也可以使用 Einstein Discovery 预测。

Tableau 中的 Einstein Discovery 由 [salesforce.com](http://salesforce.com/) 提供技术支持。有关适用条款，请查阅与 [salesforce.com](http://salesforce.com/) 的协议。

有关如何在 Tableau 中使用 Einstein Discovery 预测的详细信息，包括许可和权限要求，请参见 Tableau Desktop 和 Web 制作帮助中的[在 Tableau 中集成 Einstein Discovery 预测](https://help.tableau.com/current/pro/desktop/zh-cn/einstein_discovery_predictions.htm)。有关在流程中添加预测的信息，请参见[将 Einstein Discovery 预测添加到流程](https://help.tableau.com/current/prep/zh-cn/prep_predictions.htm)。

## Einstein Discovery 仪表板扩展程序

Einstein Discovery 仪表板扩展程序允许工作簿作者在 Tableau 中显示实时预测。仪表板扩展使用 Tableau 工作簿中的源数据和 Salesforce 中部署的基于 Einstein Discovery 的模型，按需交互地提供预测。

默认情况下，Tableau Cloud 站点配置允许已保存的 Oauth 访问令牌，因此唯一必要的步骤是在托管 Einstein Discovery 的 Salesforce org 中配置跨域资源共享 (CORS)。这需要 Salesforce org 中的权限。有关必要的许可证和权限的详细信息，请参见[访问要求 - Einstein Discovery](https://help.tableau.com/current/pro/desktop/zh-cn/einstein_discovery_predictions.htm#Requirem)。有关在 Salesforce 中配置 CORS 的详细信息，请参见[在 Salesforce.com 中为 Tableau Cloud 中的 Einstein Discovery 集成配置 CORS](https://help.tableau.com/current/online/zh-cn/config_cors_sfdc.htm)。

## Einstein Discovery 分析扩展程序

Einstein Discovery 分析扩展程序使您的用户能够将预测直接嵌入到 Tableau 计算字段中。表计算脚本通过传递与其关联的预测 ID 和模型所需的输入数据，向 Salesforce 中部署的模型请求预测。使用 Salesforce 中的 Model Manager 自动生成 Tableau 表计算脚本，然后将该脚本粘贴到计算字段中，以供在 Tableau 工作簿中使用。

默认情况下，Tableau Cloud 站点配置允许已保存的 Oauth 访问令牌，因此唯一必要的步骤是在托管 Einstein Discovery 的 Salesforce org 中配置跨域资源共享 (CORS)。这需要 Salesforce org 中的管理员权限。有关详细信息，请参见[在 Salesforce.com 中为 Tableau Cloud 中的 Einstein Discovery 集成配置 CORS](https://help.tableau.com/current/online/zh-cn/config_cors_sfdc.htm)。

## Einstein Discovery Tableau Prep 扩展程序

_从版本 2021.2.0 开始在 Tableau Server 和 Tableau Cloud 中受支持_

Einstein Discovery Tableau Prep 扩展程序使用户能够在 Web 上制作流程时将 Einstein 预测直接嵌入到他们的流程中。

默认情况下，Tableau Cloud 站点配置允许保存的 OAuth 访问令牌，因此唯一需要的步骤是为服务器启用 Tableau Prep 扩展程序。这需要 Salesforce org 中的管理员权限。有关详细信息，请参见[启用 Tableau Prep 扩展程序](https://help.tableau.com/current/server/zh-cn/web_author_flows.htm)。

## 此部分中的其他文章