# Tag Switch Action

Use this action to execute operations based on the existence of a specific tag. You can, for example, change the conversation flow redirecting the user to a different interaction.

![](https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-Lg2csb38fmidTxnKHWc%2F-Lg2ct4_ot6TO0vD2eUl%2Fimage.png?alt=media\&token=e1b523fe-09c3-4535-93e5-58408ba24ad6)

### Settings

The action uses the following settings:

| Setting  | Description                                            | [Parsed](https://docs.xenioo.com/actions-and-operations/dynamic-parsing) |
| -------- | ------------------------------------------------------ | ------------------------------------------------------------------------ |
| Tag Name | The name of the tag that will be checked by the action | :no\_entry:                                                              |
| Criteria | The type of criteria that will be used                 | :no\_entry:                                                              |

### Remarks

The *Tag Name* field will list only tags that have been defined inside the chatbot design using a [Set Tag Action](https://docs.xenioo.com/actions-and-operations/profile/xenioo.bots.actions.base.settagaction).

### Trigger

On Condition Met. This action will trigger any child operation as the condition set by criteria is met.

### Variables

This action does not produce any variable.

### Availability

Channel specific availability follows the table below:

| Channel          | Availability     |
| ---------------- | ---------------- |
| Facebook         | Fully Available. |
| WhatsApp         | Fully Available. |
| Telegram         | Fully Available. |
| Web              | Fully Available. |
| Alexa            | Fully Available. |
| Google Assistant | Fully Available. |
| Slack            | Fully Available. |
| API              | Fully Available. |

This action can be used only inside interactions and not as child of other actions.&#x20;

### Further Reading

{% embed url="<https://www.xenioo.com/en/creating-first-chatbot/>" %}


---

# 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.xenioo.com/actions-and-operations/flow/xenioo.bots.actions.base.tagconditionaction.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.
