# How to use transitions in a workflow

## Adding transitions between states

Transitions control the flow between states and they are crucial for enabling state changes within a workflow. To add transitions between states in your workflow, press the “Add”-button to the far right while editing a state.&#x20;

<figure><img src="/files/4JhxpTSpDw4EyBmcSo1g" alt=""><figcaption><p>Edit workflow state page</p></figcaption></figure>

You will then be given the option to set up transitions from the state you are editing.

<figure><img src="/files/iu3xQf5IcGWFzhCbJA8v" alt=""><figcaption><p>Edit workflow transition page</p></figcaption></figure>

Select the state you want to transition to from your list of created states. Provide a label and a description to help identify and clarify the purpose of the transition. You can also set up permissions to limit who can use the selected transition.&#x20;

## Transitions in workflow example

In the previous tutorial, "[How to Set Up and Edit a Workflow](/tutorials/guides/how-to-use-workflows/how-to-set-up-and-edit-a-workflow.md)", we established states to define the various stages in a workflow. Now we will create a transition from the state "Draft" to "Enrichment In Progress."

Below you can see an example of a workflow where we want to create a transition into the state "Enrichment In Progress".  This transition has been given the label "Begin Enrichment" in order to clearly indentify the transition. The description field is used to distinguish transitions in case there are multiple under a single state.&#x20;

<figure><img src="/files/EguSg7pJwXkIu71EK4Xf" alt=""><figcaption><p>Edit workflow transition</p></figcaption></figure>

Below you can see an example of a state with a transition added to it.

<figure><img src="/files/4TdgRC2jIOSE78LE1iER" alt=""><figcaption><p>Transition added to state</p></figcaption></figure>

Now with the transitions created we continue setting up the rest, until we have the following example of a workflow. Below you can see all the states created with associated transitions between them.

<figure><img src="/files/O99r3UEpj6KTyWfCYNTd" alt=""><figcaption><p>Workflow with states and transitions</p></figcaption></figure>


---

# 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://docs.struct.com/tutorials/guides/how-to-use-workflows/how-to-use-transitions-in-a-workflow.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.
