# Flows

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FcvINT4QeiGAs1QMp2GEP%2F1.png?alt=media&#x26;token=6733ed13-4976-427a-867c-eb4df6c134b3" alt=""><figcaption></figcaption></figure>

In Authentication, within the Flows tab, various workflows for Registration, Login, and other processes are available.

New flows can be created as needed within this section.

You can use the search box to find a specific flow.

Click the Refresh button to see the latest settings.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FJm3jlS9PqDWQ1ENsUjxL%2F2.png?alt=media&#x26;token=79754f8a-6894-4099-ac11-df4310712ba5" alt=""><figcaption></figcaption></figure>

You can also choose how many flows you want to display on one screen. Select your preferred option from the dropdown menu as shown above.

To create a completely new flow, click on the Create flow button.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FNet4CuCl0lJzaS244Dqd%2F3.png?alt=media&#x26;token=7444705d-2d07-4192-b061-e2337fe46550" alt=""><figcaption></figcaption></figure>

Click on three dots, then duplicate to copy the existing flow.

When you click on Create flow, you'll be directed to the following screen.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FZQsHDUV3n0DzhsqSqvfm%2F4.png?alt=media&#x26;token=83de6ff8-b304-413f-a048-949b598e53dc" alt=""><figcaption></figcaption></figure>

#### **Name**

It specifies the name of the flow.

#### **Description**

This pertains to the description you can provide for a specific flow, which helps in accurately identifying the purpose of that flow.

#### **Flow type**

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2F6SNTSFPNwTLeqKsgOJgU%2F5.png?alt=media&#x26;token=ca997e8f-b4cd-4b84-ae72-609e4eb7d58f" alt=""><figcaption></figcaption></figure>

It indicates the type of flow. There are two options:

* Client flow: It is used for authentication of clients (applications)
* Basic flow: It is used for users and everything else

#### **Create**

After clicking on Create, you will get the below screen.

#### **Cancel**

After making the changes, if you don't want to create the flow, click on Cancel.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FdaxfLhkCkFOUge7ZtVUY%2F6.png?alt=media&#x26;token=3fbc1c88-2a4e-455d-a9bf-7c8b2e653b3c" alt=""><figcaption></figcaption></figure>

You'll encounter two choices:

#### **Add an execution**

* Selecting this option will lead you to the screen below.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2F5yGPfIW3ukNxpccLaSTx%2F7.png?alt=media&#x26;token=8a6eec31-1504-4da9-a10d-94c4c063dd40" alt=""><figcaption></figcaption></figure>

* Choose the suitable step to include in this flow, and click on Add.
* If you decide not to add anything, simply click Cancel.

#### **Add a sub-flow**

* Selecting this option will redirect you to the below screen.
* Name - It specifies the name of the flow.
* Description - It helps in accurately identifying the purpose of that flow.
* Flow type - It can be either Generic or Form.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FnIgccA9Uw8wVeJpshJUa%2F8.png?alt=media&#x26;token=f205191a-4c5f-48ed-96d9-3ed123ab1696" alt=""><figcaption></figcaption></figure>

* If you want to incorporate the changes done, click on Add.
* If you decide not to add anything, simply click Cancel.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FlLQpwsuDyqOzeloeGS18%2F9.png?alt=media&#x26;token=b23c3c0a-359f-46bc-9176-6886a027bf26" alt=""><figcaption></figcaption></figure>

Upon clicking the three dots, you will see options to duplicate, bind flow, and delete, as depicted below.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FXzS8yegnpYTvdSJk03L9%2F10.png?alt=media&#x26;token=39607ca8-ece6-439c-93a4-f3668463d074" alt=""><figcaption></figcaption></figure>

When you choose Duplicate, you'll be presented with a prompt as depicted below.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2F4doQke9LT5aNdggErxqO%2F11.png?alt=media&#x26;token=6fc66727-3442-45e0-a2f2-ca97c01a567d" alt=""><figcaption></figcaption></figure>

You have the flexibility to input the name and description according to your preferences.

If you prefer not to continue, simply click on Cancel.

When you select Duplicate, you will be taken to the screen below.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FekKrBEhANzb0YZQOOlYe%2F12.png?alt=media&#x26;token=b0f497f9-3793-4853-ad99-f7d9f6c3d57e" alt=""><figcaption></figcaption></figure>

You have the option to modify the various steps using the icons (Edit, Delete among others) provided above.

Upon clicking Bind flow, you will receive the prompt below.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FQ0dAKMKuOx0hjcLpSZb1%2F13.png?alt=media&#x26;token=fcef5236-62eb-47f2-acc3-8d4932967da3" alt=""><figcaption></figcaption></figure>

#### **Choose binding type**

You have the option to choose the appropriate flow with which you want to bind the flow you created.

You can choose the desired flow from the dropdown menu based on your needs.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FSHDBE4pwZYHQ9blcJgHG%2F14.png?alt=media&#x26;token=20874b77-a004-4a17-8b8a-55ce8459e765" alt=""><figcaption></figcaption></figure>

Selecting Delete will prompt a confirmation message as shown below.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FWZH0IVexYXYWULnpjyL8%2F15.png?alt=media&#x26;token=ef19ec5e-8aff-4ae3-a23b-db9305766a6d" alt=""><figcaption></figcaption></figure>

Click Delete to remove the flow, or click Cancel to retain it.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ztrust.gitbook.io/ztrust-documentation/user-manual-ztrust-v2.0/guide-to-navigation/authentication/flows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
