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

# Collection filtering

![](/files/-MVT9ihWY3Q3ta6ksL97)

## 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/-MVw3HCerqJbRVTfV48L)

![Adding tags to products in the Shopify Product editor](/files/-MVw3RYN5NfZJMoAwfYD)

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/-MVw3mSdVbWs7zC21f7q)

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/-MVw46XSuDKLulXSvsEq)

Example of comma separated tags:

```
2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
```

![](/files/-MVw4P3J9291MW9MqVJ6)


---

# 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://story.groupthought.com/story-theme-v1/collections/collection-filtering.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.
