> For the complete documentation index, see [llms.txt](https://docs.henshin.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.henshin.ai/characters/brain-library.md). Agents can also search and read this documentation through its [MCP server](https://docs.henshin.ai/~gitbook/mcp).

# Brain Library

Upload your story and brand material so characters know your world and how to talk about your products.

The Brain Library is where you keep the material your characters learn from. Open it from the **AI** page.

There are two kinds of collections:

| Kind                | What it teaches                                        | What to upload                                                                  |
| ------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------- |
| **Character Lore**  | Who your character is, and the world they live in      | Manuscripts, beat sheets, and story bibles                                      |
| **Brand Guideline** | How your character talks about your brand and products | A brand and sales guide covering rules, tone, audience, campaigns, and products |

## Add material

1. Create a new collection and give it a name and a short description.
2. Upload your documents. Henshin accepts PDF and Word (.docx) files.
3. Confirm the upload when asked. Each file is then processed. You can watch its status in the documents list.

## How much to upload

More relevant material gives better chat. As a guide:

* **Character Lore:** about 8 to 25 pages in total
* **Brand Guideline:** about 6 to 15 pages in total
* Keep each file under 70 pages (about 35,000 words). Split longer books into parts, because anything past the limit can be dropped.
* A collection can hold up to 200 documents.

{% hint style="info" %}
Keep prices and stock levels out of your Brand Guideline. Put those in your [Shop](https://docs.henshin.ai/shop.md) instead.
{% endhint %}

## Connect a brain to a character

1. Open the character and find its **Brains** section.
2. Connect a Character Lore collection and, if you want it to sell, a Brand Guideline collection.
3. Select **Build brain**. Henshin reads your documents and writes the brain. Wait for it to finish.
4. When the status says it needs review, open it, read it, and approve it for chat.

A character stays a draft until every connected brain is approved. If you change your documents later, rebuild the brain and approve it again.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.henshin.ai/characters/brain-library.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
