官术网_书友最值得收藏!

Prerequisites

This section covers the steps required to experiment with Google Prediction API and Salesforce:

  1. You have  Salesforce login credentials. If you do not have one, sign up at https://developer.salesforce.com/signup.
  1. Sign up for a Google account at https://accounts.google.com/SignUp?hl=en.
  1. Enable the Prediction API by visiting https://console.cloud.google.com/home/dashboard.
  1. Create a Google Cloud Project, as shown in the following screenshot. Once you create a project, note the Project ID as we will be using the Project ID in the API request:
The project creation screen in the Google console
  1. Sign up for a free Google cloud storage at https://console.cloud.google.com/storage/browser.
  1. Create a folder called salesforceeinstein and upload the provided CSV (The CSV is shared in the git repository located at (https://github.com/PacktPublishing/Learning-Salesforce-Einstein/blob/master/Chapter1/SFOpportunity.csv) in the Google Cloud storage. Name the file as SFOpportunity.csv:

  1. Open the prediction API explorer the (https://developers.google.com/apis-explorer/#s/prediction/v1.6/) to train the model via API. We will need to first enable OAuth for the project and use the right scope. The screenshot shows the OAuth 2.0 screen and scope enablement screen. You will need to select the auth/prediction checkbox:

  1. We will be using the v1.6 version of Prediction API. The training and prediction is covered in the next section.

Note that the CSV data here is a report extract of opportunity data from Salesforce. You can extract data using the Salesforce standard reporting interface. You will need to create a custom probability field on the Salesforce opportunity object to track the probability from the prediction API.

Check the following screenshot of the Dataset sample. The data samples can be taken from your Salesforce organization, and, in case you want to use the one used in this book, you can get it from the git repository (https://github.com/PacktPublishing/Learning-Salesforce-Einstein/blob/master/Chapter1/SFOpportunity.csv):

主站蜘蛛池模板: 运城市| 灌云县| 黑龙江省| 怀来县| 衡阳县| 镇安县| 乐清市| 乐山市| 滦南县| 兖州市| 天水市| 东乡族自治县| 平潭县| 乳山市| 兰西县| 红原县| 德江县| 安化县| 高青县| 上饶县| 文成县| 健康| 弥渡县| 澄城县| 云南省| 乐昌市| 瓦房店市| 汉源县| 宝应县| 敦化市| 道真| 金昌市| 岳西县| 阳高县| 宜春市| 双城市| 桓台县| 冕宁县| 玛多县| 城市| 安阳市|