# Config Categories

Config categories are like normal configs except they can be included in other configs or categories. Categories must be annotated with the @Category annotation its only change that is different from a config is that its id is not restricted to being very basic characters.

Config categories unlike entries are added to a config or category via its annotation with categories parameter. Categories are ordered by the way they are put into the annotations list. So if you want category 1 to show up before category 2 have category 1 higher in the list.

The following is an example of how to add categories to a config, this can also be done for a category as it has the same parameter.

```java
@Config(
    value = "demo",
    categories = {
            Category1.class,
            DemoConfig.Category2.class
    }
)
```


---

# 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://config.wiki.teamresourceful.com/creating-your-first-config/config-categories.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.
