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