# Shared Flows

The **Shared Flows** feature allows users to re-use test flows in different Test Suites and Test Plans.

The common use case for Shared Flows is when you have several login test flows. For example, the email/password login that should be used in some Test Suites and the login via a social media platform that should be used in others. To configure this in Loadmill:

* Navigate to **Shared Flows.**

![](/files/oeAhzo3yBy2kXTYQlQFe)

* Click on the "+ NEW SHARED FLOW" button if you would like to create a login flow from scratch OR "IMPORT SHARED FLOW" in case you already have it in JSON format.
* We recommend using the "DRY RUN" option first to test your flow and then Publish it.
* Now you can go to the Test Suite where you would like to use it => the Login tab => click CHANGE LOGIN FLOW SOURCE and select your shared flow.

![](/files/2pSv7CFvsfSS6040TgC6)

Thus, the shared flow will run before every test flow where the Login checkbox is checked.

Then, you can always track which Test Suites using your Shared Flows.

![](/files/g7lxUf707k61265WE0Vs)

The COLLABORATORS tab allows to manage access to the shared flow so that only specific team members will be able to edit it.

![](/files/KxHNjXkG1GMcloQO9SMD)

By the way, you can also use shared flows to define [Before & After](https://docs.loadmill.com/api-testing/test-suite-editor/before-and-after-hooks) hooks and [Setup Flow](https://docs.loadmill.com/api-testing/test-plan#test-plan-navigation-panel).


---

# 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.loadmill.com/collaboration/shared-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.
