# Add Tag

The “Add Tag Action” is designed to allow flows using the “add tag” feature already available to the human operators.

Tagging is very useful when you want to classify your conversations during the flow, statically or dinamcally for example aided by a chatGPT or LLM task with a prompt engineered exactly for that purpose.

Let's start with an example about the “static” classification, applying a *tag* to all conversations moved to a human agent. Simply insert a  button to ask for a human operator, then apply the tag before executing the *Transfer to a human* action:

<figure><img src="/files/4XTe8BKhHdVRqUEZ8N8B" alt=""><figcaption></figcaption></figure>

You can apply many tags at once with a single Add Tag action, simply separate them by a comma as in the previous example, where we applied two tags: **human** and **important**:

<figure><img src="/files/CKz2769p60eNBnS4BjnS" alt=""><figcaption></figcaption></figure>

You can also add tags using attributes. A single attribute can also contain more then one comma-sepatated tag so you can add multiple tags using a single attribute. In the example below we will ask chatGPT to apply a set of tags choosen from a set of available ones:

<figure><img src="/files/3oum6zqE5hM64gEs9Ifw" alt=""><figcaption></figcaption></figure>

In the prompt we explicitly ask to separate multiple tags with commas:

```
reply me with a list of comma separated tags selected among the following that you use to classify the user question.
Tags:
- sales
- support
- positive_sentiment
- negative_sentiment
User question:
I need some help for returning the product, very unhappy because it arrived me broken
```

We'll apply the tag(s) using the ChatGPT Task output attribute *AI\_tags*:

<figure><img src="/files/kxMA8QXDboNeB4M2u3DM" alt=""><figcaption></figcaption></figure>

Every time we wil invoke this action it will apply the tags extracted from the user submitted text.

You can use the Panel's History section advanced form to search using the applied tags:

<figure><img src="/files/5VlMKfiyYbJ2HMZp7SHL" alt=""><figcaption></figcaption></figure>

You can visualize tags analytics in the Metrics > Tags section

<figure><img src="/files/0Zsjl2Nhmd9wVH31t0Mb" alt=""><figcaption></figcaption></figure>

Do you have any feedback on this article? Please send it to us at <info@tiledesk.com>

Enjoy Tiledesk!


---

# 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://guide.tiledesk.com/ai-chatbots-and-automation/actions-explained/add-tag.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.
