# Companion Demo

## Companion Demo

The Companion Demo shows a blue AI with its companion, who is grey, fighting the AI who wields a sword. A companion is set through the [Behavior Component](/emerald-ai-wiki/emerald-components-required/behaviors-component.md). For more information on setting up a companion, you can see the [Creating a Companion AI](/emerald-ai-wiki/emerald-components-required/behaviors-component/creating-a-companion-ai.md) section.

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


---

# 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://black-horizon-studios.gitbook.io/emerald-ai-wiki/getting-started/included-demo-scenes/companion-demo.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.
