# Web Flow Templates

### Overview

[Web Flow](../../studio/web-flows) templates provide a simple way to start building an application with commonly used actions. Web Flow templates are pre-configured but they can be further tailored for a customized experience.  Within a Journey, there can be multiple Web Flows, each built with a specific purpose, and they can be connected among each other.

### Creating a Web Flow from a template

There are two ways to create Web Flows from a template:

1. From the Web Flows Builder: Web Flow templates can be added by clicking on the ‘**+**’ icon next to Web.

![organizing info](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-580a8415e35f34a08fdb4a99081843a3315227ee%2Fweb-flow-templates-v180-0.png?alt=media)

2. From the Journey Builder: Web Flow templates can be added by clicking on the ‘**+**’ icon in an Event and selecting Navigate to Web Flow.

![organizing info](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-1eaec27a308941729ac257a5b11a062d2242aad1%2Fweb-flow-templates-v180-1.png?alt=media)

A blank canvas will be displayed to click on the ‘**+**’  icon and add a new Web Flow template.

![organizing info](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-e20c481e5c4ad3be085e9bd178cad1dda5cc307e%2Fweb-flow-templates-v180-2.png?alt=media)

### Combining Web Flows

In this example, two Web Flow templates were added to the application: “Capture Customer Info” and “CSAT”, each with their pre-configured fields and actions. In addition, the “Capture Customer Info” Web Flow includes the button “Next” which runs the “Contact Info Captured” Event. This Event allows the two Web Flows to be combined so that users can go from one to the other as they move forward in the Journey.

![organizing info](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-5aae5ab169efbdf674e0c1197b656f90ffc32938%2Fweb-flow-templates-v180-3.png?alt=media)

To do so, in the Journey Builder, a [Navigate to Web Flow](../../actions/navigate-to-web-flow-action) action must be added to the “Contact Info Captured” Event.

![organizing info](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-1c4a7a59d07bba244e56e9e620ec9198d6a9ef53%2Fweb-flow-templates-v180-4.png?alt=media)

Finally, select which Web Flow to navigate to when the Event is run.

![organizing info](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-0819900b581ca108120387a4b40e0cb7e6780514%2Fweb-flow-templates-v180-5.png?alt=media)

### Passing Data from One Web Flow to Another

Data entered in the Input fields can be passed from one Web Flow to the other. In this example, to provide a more customized experience, the name the user entered in the Input field of the Capture Customer Info Web Flow will be used in the CSAT Web Flow. To do so, in Web Flows Builder add a “first\_name” Variable of type Text at the CSAT Web Flow level.

![](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-23ca1627104da4cb56afba98cc9d98c73b4fba85%2Fweb-flow-templates-v180-6.png?alt=media)

Then, go to the Web Page that will include the user’s name. Select the corresponding Label and in the General tab add the Variable in the Text field:

```javascript
“Hello, {{first_name}}”
```

Make sure you enter the Variable in the Expression box that gets displayed when clicking on the arrow.

![organizing info](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-0010d568d8f2e5aa25703ef9093edbcd815cb0b9%2Fweb-flow-templates-v180-7.png?alt=media)

Finally, go to Journey Builder and click on the Contact Info Captured Event. It already shows the Navigate to CSAT action set up above. Now in Input, add the first\_name Variable.

![organizing info](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-03f047518adb57c93e5bca8c59f201ff5cbd3763%2Fweb-flow-templates-v180-8.png?alt=media)

This way, the data entered as name in the first Web Flow will be passed onto the CSAT Web Flow. When Previewed it looks like this:

![organizing info](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-254a68b5e7baee21265bb38241ff315a9b7cf0bb%2Fweb-flow-templates-v180-9.png?alt=media)
