# Blackboard

The **Blackboard** asset can be considered as the "brain" of the AI and stores **Key** values that the **Behavior Tree** uses to make its decisions.

### Creating and activating Blackboard

Click on the **Assets** tab, then select **Create/Renowned Games/Blackboard**

<figure><img src="/files/kLHST2B0SUd6y8YttWIL" alt=""><figcaption><p>Creating Blackboard</p></figcaption></figure>

{% hint style="info" %}
Also you can right-click in the **Project** **Window**, then select **Create/Renowned Games/Blackboard**
{% endhint %}

The new **Blackboard** asset will be added to the **Project Window** which you can rename to your desired name.

<figure><img src="/files/qij6sRGMQG1qjdSlYPG3" alt=""><figcaption><p>Blackboard name</p></figcaption></figure>

To connect **Blackboard** to the **Behavior Tree**, click on the **Behavior Tree** we need and drag the desired **Blackboard** into the **Behavior Tree** inspector window where the **Blackboard** field will be.

<figure><img src="/files/cOx1ZnfvC5HBJWXvNDaA" alt=""><figcaption><p>Behavior Tree Inspector</p></figcaption></figure>

{% hint style="info" %}
You can also add it by clicking on the field with blackboard and select it from all the blackboards in the project.
{% endhint %}

<figure><img src="/files/t7Q7CumV4Az8l1qCOzYx" alt=""><figcaption></figcaption></figure>

### Setting up Blackboard

Double click on the board to open it in front of you

<figure><img src="/files/fBJ2RDVhvvqnZKRkrKXo" alt=""><figcaption></figcaption></figure>

To create a **Key**, click on the **New Key** tab.

<figure><img src="/files/GA6CjRjVxTmO3iPPs5VW" alt=""><figcaption></figcaption></figure>

In the window that opens, select the **Key** type.

<figure><img src="/files/AJ45pcQWmBM7MN37SXxJ" alt=""><figcaption></figcaption></figure>

After that, it will appear in the field where all the **Keys** on the board are shown.

<figure><img src="/files/8wLR4ZydoijxnhB7IGn4" alt=""><figcaption></figcaption></figure>

In this window you can edit the name, description, type, value and category of the selected **Key**.

<figure><img src="/files/qDXhX5nF6QKsr3VmiNcn" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Sync it means that the key is global, that is, if you add this board to another tree, its value will remain and will change in all boards at the same time.

Parent in this field, you can put a parent Blackboard from which all its keys will be available.
{% endhint %}


---

# 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://renownedgames.gitbook.io/ai-tree/basic/blackboard.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.
