> For the complete documentation index, see [llms.txt](https://docs.hiwaifu.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hiwaifu.com/product-guides/creating-chatbots/chatbot-attributes/memory.md). Agents can also search and read this documentation through its [MCP server](https://docs.hiwaifu.com/~gitbook/mcp).

# Memory

Vital

***Memory*** forms the crux of chatbot creation. It's the space where you create a comprehensive profile of your chatbot, outlining who they are, their preferences and dislikes, their reactions, their manner of speech, and their behavior. Every distinctive trait that defines your chatbot is meticulously detailed here.

<figure><img src="https://3854988849-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM20vyK8ub44IlqEHZYA2%2Fuploads%2FydKuuDDeS79kpIaza2Bo%2F%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231006004130.jpg?alt=media&amp;token=4f17cae4-4af2-4b10-8d9f-d94583110d70" alt=""><figcaption><p>Miss Quin's Robot</p></figcaption></figure>

{% hint style="info" %}
Each memory can be expanded to a maximum of 2048 characters.
{% endhint %}

### Formatting Styles

The chatbot's personality can be expressed in various ways. You can list their traits using words encapsulated in quotes and separated by plus signs, or simply express their personality through straightforward sentences. These diverse expression methods are referred to as 'formatting'. You can learn more about formatting \[[here](https://docs.hiwaifu.com/product-guides/creating-chatbots/chatbot-attributes/memory/formatting.md)].

{% hint style="info" %}
**Note:** The formatting style chosen does not significantly impact the understanding of the language model. The quality of the description is what truly counts. The more detailed and clear the personality description of your chatbot, the better the language model will understand it.
{% endhint %}

### Infinite Possibilities for Traits

Defining the traits of your chatbot opens a world of endless possibilities. You're free to describe their basic personality, thought process, actions, likes, dislikes, and even unique mannerisms in their walk or talk. You can delve deeper by illustrating their physical appearance or choice of attire. It all boils down to your vision of your chatbot's personality. For inspiration, check out \[[this website](https://vndb.org/i)]. It offers a plethora of personality traits you can incorporate into your chatbot.

Remember, the personality you create here forms the essence of your chatbot. Take your time, and infuse your chatbot with a personality that truly embodies them.


---

# 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.hiwaifu.com/product-guides/creating-chatbots/chatbot-attributes/memory.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.
