# Flow

<figure><img src="https://1790119986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMq4WvP70cd4YzBbY6Mue%2Fuploads%2FTC9aiQ6tu2YFsFExosWM%2Fimage.png?alt=media&#x26;token=324abb73-ad8b-4165-ae9f-446a25f42955" alt=""><figcaption><p>The area within the red frame highlights the Flow panel.</p></figcaption></figure>

### Usage

* **Flow Configuration**: Each Flow defines valid transitions, ensuring entities follow an expected path.
* **Conditional Transitions**: Some Flows allow conditional steps where specific criteria must be met for transitions to occur.

### Flow Configuration

Flow Configuration plays an important role in guiding entities through well-defined paths. It comprises three core components, ensuring that processes progress logically and predictably:

* **From State**: This is the initial phase from which an entity begins its transition. It sets the context for all subsequent activities and transitions.
* **Activity**: The action or event triggered by a user, serving as the catalyst that propels the transition forward. Activities dictate the conditions required for moving between states.
* **To State**: The resulting phase following the completion of an Activity. It reflects the new status or condition that an entity has achieved post-transition.

By specifying these elements, Flow Configurations provide a clear structure that aids teams in executing processes effectively, enabling smooth transitions and incorporating fallback paths for unexpected scenarios.

### **Conditional Transitions**

**Conditional**

The **Conditional** functions as a toggle switch within the Flow Configuration, allowing users to change "To State" to "Conditional States".

#### Conditional States

Conditional States is an evaluative condition that is checked after an "Activity" is performed. This condition determines if the process should advance to the next stage. Below it has a formula condition and description of the condition flow.

### Best Practices

* **Sequential**: Ensure Flows progress logically, allowing smooth transitions.
* **Fallback Paths**: Where applicable, include fallback paths to handle unexpected scenarios.
* **Documentation**: Document each Flow to ensure all team members understand the process.


---

# 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://inistate.gitbook.io/home/features/flow.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.
