> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/plugins-and-integrations/unreal-engine/guides/actions-guide/main-character-and-attention-object.md).

# Main Character and Attention Object

1. Navigate to your AI character blueprint.
2. Drag the `Convai Chatbot` component into the event graph.
3. Get the `Environment` Object and make sure it is valid.
   1. Use the function `Set Main Character` to define the current speaker to the AI character. Additionally, if you're using Convai's animation blueprints then setting the Main Character would cause the AI character to look at the Main Character reference.
   2. Use the function `Set Attention Object` to set which object is currently being talked about, this function also automatically adds the input object to the list of already existing objects in the environment.

{% hint style="info" %}
The character blueprint can be a MetaHuman, ReadyPlayerMe, Reallusion or even a custom one you have created, just ensure that it has the `Convai Chatbot` component.
{% endhint %}

<figure><img src="/files/u4jeQl2EBdXOnR2IfNBJ" alt=""><figcaption><p>Illustrative schematic for the Set Main Character and Set Attention Object functions</p></figcaption></figure>


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.convai.com/api-docs/plugins-and-integrations/unreal-engine/guides/actions-guide/main-character-and-attention-object.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.
