> For the complete documentation index, see [llms.txt](https://pipeline.groupthought.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pipeline.groupthought.com/pipeline-5/collections/tag-grouping.md).

# Tag grouping

Custom filter groups can be easily created to help shoppers customize the product listing on your collection pages:

<div align="center"><img src="/files/-MK1Nrw67Cz7CsDLkhzO" alt="Mobile collection drawer with filter group options"></div>

<div align="center"><img src="/files/-MK15PN4fT2PF5PoPLMM" alt="Desktop collection sidebar with filter group options"></div>

## Setup

Start by adding custom product tags to your products in the Shopify Admin:

![Tip: Add multiple tags to link with multiple filter groups](/files/-MK1HT2jHCTU0v8arTlu)

In the Theme Editor under Collection, Collection page. In the Content section, choose Add tag grouping:

![Use Add Tag grouping for each filter group](/files/-MK1959doi8cWwjBjhW-)

Add a Group name which will be displayed as the heading for the filter group. Followed by a list of tags for the group.

![Use a comma after each tag ](/files/-MK19fhasvSfUjO1uQKj)

## Dynamically displayed for each collection

Groups and tags are dynamically displayed on collection pages. Tags within a group will only appear as filter options if the collection contains products that are tagged with the tag. For example, the group Color, will only show the filter option Terrazzo if the current collection has a product tagged with Terrazzo. If none of the tags in a group match the current collection, the entire group will be hidden.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://pipeline.groupthought.com/pipeline-5/collections/tag-grouping.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
