# Importing Custom Characters

To import your custom characters into your Convai-powered Unity project, you will first need to bring your model into your project. The model needs at least two animations: one for talking and one for Idle.

## Prerequisites

When you want to set up your custom character with Convai, you will need your character model and two animations: Idle and Talking.&#x20;

Create an animator controller with the two animations that looks like this. You should also add a 'Talk' Boolean to ensure that you can trigger the animation. [Here is a YouTube tutorial on how to set up an animator controller](https://www.youtube.com/watch?v=JeZkctmoBPw\&t=53s). This is the bare minimum animator setup that you need to do.&#x20;

<figure><img src="/files/fnXBCSjCZS3yCrwwwSY4" alt=""><figcaption><p>The animator controller should look like this. This is the in-box NPC Animator. </p></figcaption></figure>

### Step 1: Add Animator to your custom character

Select your character from the Hierarchy and Add Animator Component

<figure><img src="/files/xMIP0BJTo5h7ICkJpNij" alt=""><figcaption><p>Screenshot showing newly added Animator Component</p></figcaption></figure>

Convai Plugin ships with two pre-made animation controller, you can choose these controllers or can assign your custom controller, whatever fits your need. For this demo we are going with `Feminine NPC Animator`

<figure><img src="/files/1MsZzglQJ2wyGDk9gVJd" alt=""><figcaption><p>Screenshot showing selection of Animation Controller</p></figcaption></figure>

### Step 2: Adding a Trigger Volume

With your custom character selected, add a Collision shape of your choice, for this demo we are going with a `Capsule Collider`

<figure><img src="/files/FoqEIhC7K9hQ33ALqOJi" alt=""><figcaption><p>Screenshot showing newly added Capsule Collider</p></figcaption></figure>

We will make this Collider a trigger, for this we will enable the `Is Trigger` option in the inspector panel

<figure><img src="/files/qgKR1F3Re5EaBPpMn7bj" alt=""><figcaption><p>Screenshot showing enable of Is Trigger option</p></figcaption></figure>

We will adjust the Center, Radius and Height of the collider such that it fits our character

<figure><img src="/files/0lSjtlLdnwNJaK7noAKr" alt=""><figcaption></figcaption></figure>

### Step 3: Add ConvaiNPC Component

With your Custom Character Selection add ConvaiNPC component. By doing so, your Game objectgame should look like this:

{% hint style="info" %}
We assume that nothing other than pre-instructed components were added by you; your Game Object component list may be different
{% endhint %}

<figure><img src="/files/7f02ApkpxN7wXprdn4Oj" alt=""><figcaption><p>Screenshot showing newly added ConvaiNPC Component</p></figcaption></figure>

Copy your character's ID and name from [Convai Playground](/api-docs/convai-playground/get-started.md) and paste them here.

<figure><img src="/files/ZiNT4mVhhHHONXPJkd6h" alt=""><figcaption><p>Screenshot showing filled-in character information.</p></figcaption></figure>

Now your Custom Character is all set to work with Convai Plugin.


---

# 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://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/importing-custom-characters.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.
