> For the complete documentation index, see [llms.txt](https://docs-convai.wavy.global/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-convai.wavy.global/tutorials/tutorial-conditional-flow-navigation.md).

# Flow navigation with variables

The **Go To** bot dialog enables the bot to redirect the user to a bot dialog depending on conditions of the session variables. You can define conditions with operators like `equals`, `greater than`, `smaller than`, etc. You can also combine multiple conditions with `AND` and `OR`.

Consider the following scenario. The user asks the bot:

> I want to book a train from Paris to London in first class please.

Let us define a different message, based on which class the user selected `first` or `second` **class**.

* Create a **bot dialog** `class redirect` of type **Go To**.
* Create a **bot dialog** `selected first class` with `class redirect` as a **parent**.
* Open the `class redirect` **bot dialog**.&#x20;
* If the **variable** `class` is `equal` to `first`, we want to redirect the user to the **bot dialog** `selected first class`.&#x20;
  * If the condition is not fulfilled, and the user has selected `second` **class**, we want to confirm that selection
  * If the user has selected no class at all, we want to redirect the user to the **bot dialog** `first or second class`. Here, the traveler will be asked explicitly in which class they want to travel.&#x20;
* Configure the **Go To** like this:

![](/files/-MFgE93cMtIpF80u-7Ak)

* Add a **text message** in the `selected first class` **bot dialog** and a **Go To** that redirects the user to `confirm booking`.&#x20;
* Adjust the **Go To** settings in the **input validation** in the `first or second class` **bot dialog** to go to the **bot dialog** `class redirect`. Adjust the **Go To** in the `first class` button.
* Test in the Emulator:

![](/files/-MFgE93dNVe0cYyLLkLd)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs-convai.wavy.global/tutorials/tutorial-conditional-flow-navigation.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.
