Appearance
Exercise 5: Take action with Flow
In this exercise, you will create a Data Graph triggered flow to convert the high value lead to a contact.
Exercise 1: Create a Data Cloud Triggered Flow
Step 1: Activate Model Builder
In the App Launcher, select the Data Cloud app.
Select the Einstein Studio tab.
Open the Predict Lead Conversion Probability Model.
Click on Activate then Activate Model.
Step 2: Create the flow
From Setup, open Flows.
Click New Flow.
Select Automation Event-Triggered Flow.
Click on Start Element to open the settings.
Set the following values to trigger the flow:
Field Value Data Graph Real Time Engagements Data Model Object(DMO) Page Engagement Mouse over the circle after the Start element, click +, and select Action.
In the sidebar, search for and select Parse Data Graph for Model Inputs.
Set the following values:
Field Value Label Parse Data GraphdatagraphName Real_Time_EngagementsindividualId Event > Individual Mouse over the circle after the Parse Data Graph element, click +, and select Action.
In the sidebar, search for and select Predict Lead Conversion Probability.
Set the following values:
Field Value Label Predict Lead Conversion ProbabilityAPI Name Leave Default Description Predict the probably that this lead will convert based on their engagement history. Set the input values to the corresponding fields from Outputs of the previously added Parse Data Graph action and set the source input to
WebMouse over the circle after the Predict Lead Conversion Probability element, click +, and select Update Records.
In the right panel, configure the Get Records action as follows:.
Field Value Label Update LeadAPI Name Keep default Description Update Lead with Conversion ProbablityHow to Find Records to Update and Set Their Values Specify conditions to identify records, and set fields individually Object Lead Define the three conditions below:
Field Operator Value LeadId Equals Outputs from Parse.. action > leadId Set the following field value:
Field Value Lead_Conversion_Probability__c Outputs from Predict... action > PredictionSave and Activate the flow.
TIP
Activation may take a couple of minutes to complete.
Summary
You can now ingest and analyze data in real time as users are interacting with your website.