# Using tags to trigger a workflow

We are seeing email threads increasingly being passed from team to team as a case progresses through stage gates. Now, you can use tags to progress these stage gates so everyone knows the status of an email, who the owner is and the next steps to be taken.

In the example below, we have created an escalation workflow. When an email needs to be escalated to a manager, the only action that needs to be taken is the tag #escalation is used. This triggers a rule which assigns the email to the manager with a short note asking them to review.

{% embed url="<https://youtu.be/5zmTl6LdmUk>" %}

How to replicate:

1. Create your tag
2. Create your rule
3. Find some other examples

#### Create your tag

Go to settings - tags - add a tag

![](https://dl.intheloop.io/loop-help/using-tags-to-trigger-a-workflow.md/Screenshot_2022-02-03_at_16.04.55.png)

#### Create your rule

Click your shared inbox - go to settings - rules - add a rule

If - Tag Update

When - Custom Tag Added - Select your tag

Then - Assign to\
Then - Mention someone

![](https://dl.intheloop.io/loop-help/using-tags-to-trigger-a-workflow.md/Screenshot_2022-02-03_at_16.05.25.png)

#### Find some other examples

Other examples could be:

1. Spam - If an email is labelled as spam, it's automatically deleted
2. Use "post chat to team" to give guidance on what process to follow next


---

# 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://help.intheloop.io/workflow-automation/using-tags-to-trigger-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.
