> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/general/tasks/automation-flows/how-to-use-automation-flows-in-the-tasks-function.md). Agents can also search and read this documentation through its [MCP server](https://docs.sprinthub.com/~gitbook/mcp).

# How to use Automation Flows in the Tasks function

With this feature, it is possible to automate movements, update assignees, control deadlines, create subtasks, and standardize internal processes.

{% embed url="<https://youtu.be/73Dt9Z26YkA>" %}

***

## How to access the Automation Flow

You can access it in two ways:

**Menu >> Relate >> Automation Flow**

or

Type **Automation Flow** in the field **Find services**.

***

## How to access the Tasks function

You can access tasks in three ways:

* Through the green icon (✔) in the top-right corner of the platform
* **Menu >> General >> Tasks**
* Typing **Tasks** in the field **Find services**

***

## Available triggers for Tasks

Triggers define when the flow will be started.

#### The task stage is updated

Triggers when the task is moved to another stage or board.

#### A task data field is updated

Triggers when any task information is changed (assignee, deadline, type, description, among others).

***

## Available conditions

Conditions allow the flow to be executed only if certain rules are met.

You can use:

* The task is in the stage
* The task field value is
* The task type is
* The task assignee is
* The task participants are
* The task watchers are
* The task lifespan is
* The task time in the current stage is

***

## Available Field Values

* Start date
* Deadline date
* Creation date

***

## Available actions

After defining the trigger and conditions, you can configure the following actions:

#### Create task

Automatically creates a new task.

#### Complete task

Marks the task as completed.

#### Update task deadline

Automatically changes the due date.

#### Add comment to task

Adds an automatic note to the task.

#### Update task description

Edits the task description.

#### Change task stage/board

Moves the task to another stage.

#### Change task type

Modifies the task type.

#### Change task assignee

Redefines the responsible user.

#### Change task participants

Adds or removes participants.

#### Create subtask

Creates a subtask linked to the main task.

***

## Practical automation examples

### Example 1 – SLA control

**Trigger:** A task data field is updated\
**Condition:** The time the task has been in the current stage is greater than 2 days\
**Action:**

* Add comment
* Change assignee to manager

***

### Example 2 – Move to Completed

**Trigger:** The task stage is updated\
**Condition:** The task is in the "Completed" stage\
**Action:**

* Complete task
* Create follow-up subtask

***

### Example 3 – Automatic deadline adjustment

**Trigger:** The task stage is updated\
**Condition:** The task type is "Sales"\
**Action:**

* Update task deadline (+2 days)
* Add automatic comment

***

## Best practices

* Use conditions to avoid unnecessary executions
* Always set an assignee on tasks created automatically
* Standardize task and type names
* Test the flow before applying it on a large scale
* Avoid creating multiple flows for the same purpose
