# Tags

**Tags** are keywords defined within your protocol that allow you to refer to:

1. particular files on your computer
2. groups of stimulus files
3. the result of a random selection from a group

Once defined, all three of these types of tags can be used similarly in protocol files. Tags provide a layer of abstraction that allows protocol files to group, select, and reference stimuli (audio, image, and video files on your computer) in dynamic and flexible ways.

Valid tag names...

* must be unique (the same tag name cannot be defined as two separate files/groups)
* must be single "words" that consist of letters, numbers, and underscores (no spaces, and no other symbols)

The first two types of tags - tags denoting particular stimulus files, and tags that are given to name groups of other tags - are defined near the start of your protocol, anywhere after the [starting definitions](/bittsy/creating-protocols/starting-definitions.md) and before your first [STEP statement](/bittsy/creating-protocols/phases-trials-and-steps.md#steps). See the following pages for more information on these tags.

{% content-ref url="/pages/-LteZMlk2XEQjtTrtby4" %}
[Tags referencing files](/bittsy/creating-protocols/tags/tags-referencing-files.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LphbHnH10aHscxOITP5" %}
[Groups](/bittsy/creating-protocols/tags/groups.md)
{% endcontent-ref %}

{% content-ref url="/pages/-Lte\_6H56vZ3w4ytYfpI" %}
[Dynamic tags](/bittsy/creating-protocols/tags/dynamic-tags.md)
{% endcontent-ref %}


---

# 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://ldevumd.gitbook.io/bittsy/creating-protocols/tags.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.
