# How to use assignments in a workflow

## Assignments of workflow

Assignments determine which entities are assigned this workflow. For each entity, it is possible to assign multiple product structures. Any entity of a given type with this product structure assigned to it will then be assigned the workflow.

{% hint style="info" %}
**Example** You insert a product structure, "Food", in the 'Product assignments' field. Now all products with the product structure, "Food", will be assigned this workflow.
{% endhint %}

Having set up assignments, you will be able to assign different states from the workflow to entities that are assigned the workflow to help keep track of the status of the entity.

<figure><img src="/files/gvSRx0onJEIvtaDB1Mqk" alt=""><figcaption><p>Workflow assignments setup page</p></figcaption></figure>

## Assignments and use of workflow example

Below is an example where products and variants of the product structure "Food" has been assigned the workflow. Having done that we are now able to track the status of each product and variant under the "Food" product structure. We save the workflow by clicking the "Save"-button in the bottom right corner.

<figure><img src="/files/xtm5QwwAuP1mdWYotKqU" alt=""><figcaption><p>Assignments of workflow</p></figcaption></figure>

With the workflow created we navigate to our product and are now able to see the current state of the product in the top, next to its name. Clicking on the state a drop down will appear and it is possible to transition into the next state.&#x20;

<figure><img src="/files/YT3h445R6p0ZrzCBbEHT" alt=""><figcaption><p>Workflow in use</p></figcaption></figure>

The following pop-up will appear to verify the change in workflow state. In this case we are transitioning a product from "Draft" state to "EnrichmentInProgress" state. Pressing the "Confirm"-button will confirm the change of state.

<figure><img src="/files/7b1KImeMMJ78hcQ1E3NK" alt=""><figcaption><p>Changing workflow state on product</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-assignments-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.
