Data Flow Templates

Overview

Data Flow templates provide a simple way to connect data in an application with commonly used actions. 

Data Flow templates are pre-configured but they need to be further tailored for a customized experience.

Within a Journey, there can be multiple Data Flows, each built with a specific purpose, and they can be triggered from different parts of the application.

Submitting a CSAT score into Airdata

In this example, a Save CSAT Data Flow has been created to store the application's feedback and score users submit through a Web Flow.

Creating a Data Flow from a template

From the Connection Builder, Data Flow templates can be added by clicking on the ‘+’ sign next to Data Flow. This example will use the "AirData Insert Record" Data Flow. Data Flow templates are created with some pre-configured information. However, they need to be adjusted to the application’s use case.

organizing info

It is also good practice to rename Data Flows to easily identify them across the application.

In this example, the Data Flow will save information from the inputs of the "CSAT" Web Flow Template to the an app object called "CSAT".

organizing info

When a Data Flow is called, the operation steps are executed sequentially starting at the top and working down the Stage. 

At Start, create an input for this Data Flow with the type CSAT. This is accessible by clicking on the '+' icon and going to objects > CSAT

organizing info

Then, in the AirData Request data operation, select the CSAT App object, the Payload Type is INSERT and the object to insert is also CSAT.

organizing info

Connecting Data Flows to Controls

Data Flows are initiated by some other part of the application. 

Following the example above, in the Web Builder of this app, there is a CSAT Web Flow requesting users to score the app and submit feedback. Once they select a score and leave their comments, they click on a “Submit” button.

In order to store that information in the Save CSAT Data Flow, the following steps should be followed: 

  1. Click the “Submit” button in the CSAT Web Flowdataflowbutton.png
  2. Click the ‘+’ sign under Actions and select a Data Actiondataflowbuttonandplus.png
  3. Select the previously created Save CSAT Data Flowwebflowselectdata.png
  4. Add the corresponding inputs to the Data Flow
organizing info
{"score": CSAT,"feedback": feedback}

As a result, when the customer submits their score and feedback, the values will be saved in the CSAT object through the Save CSAT Data Flow.

Further Reading