# Convai Unity SDK

The Convai Unity SDK connects Unity projects to Convai, bringing conversational AI into training simulations, interactive experiences, and games. Characters process speech in real time, respond with natural language, and synchronize lip movement, facial emotion, and body animation — all configurable per project. Each feature is a self-contained module: add only what your project needs, in the order that fits your workflow.

{% hint style="info" %}
**New to the SDK?** Follow [Getting Started](/api-docs/plugins-and-integrations/convai-unity-sdk/getting-started.md) to install the package, configure your API key, and run your first AI character.
{% endhint %}

### Learn the SDK

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Overview</strong><br>What the SDK is, how it is structured, and when to use each module.</td><td><a href="/pages/a3d7afb80b74f02afa29c790d79751f4f29227c8">/pages/a3d7afb80b74f02afa29c790d79751f4f29227c8</a></td></tr><tr><td><strong>Compatibility and requirements</strong><br>Unity versions, render pipelines, platform support, and network requirements.</td><td><a href="/pages/ijdGXp5AdxHr05KBoBHM">/pages/ijdGXp5AdxHr05KBoBHM</a></td></tr><tr><td><strong>Core concepts</strong><br>Session lifecycle, turn-taking modes, and the SDK event system.</td><td><a href="/pages/e324eb9293dfc478fb2c227def03dca5d44cc512">/pages/e324eb9293dfc478fb2c227def03dca5d44cc512</a></td></tr></tbody></table>

### Features

Each feature is a self-contained module you opt into.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Actions</strong><br>Characters execute structured in-scene commands dispatched by Convai.</td><td><a href="/pages/8e2d39906eb40512aa9c4c6b05ffc3352eb87e51">/pages/8e2d39906eb40512aa9c4c6b05ffc3352eb87e51</a></td></tr><tr><td><strong>Emotion</strong><br>Map Convai emotion signals to facial blendshapes or Animator parameters.</td><td><a href="/pages/pzyAnwgRmeSToQBXFJYu">/pages/pzyAnwgRmeSToQBXFJYu</a></td></tr><tr><td><strong>Long-term memory</strong><br>Characters remember each player across separate sessions.</td><td><a href="/pages/Yg6rMK5Mnh9zStBOwoca">/pages/Yg6rMK5Mnh9zStBOwoca</a></td></tr><tr><td><strong>Vision</strong><br>Characters see through a Unity camera, webcam, or Meta Quest passthrough.</td><td><a href="/pages/c776d88f01e63c32eee310e37d0ed10bc12eb355">/pages/c776d88f01e63c32eee310e37d0ed10bc12eb355</a></td></tr><tr><td><strong>Dynamic context</strong><br>Inject runtime state and events into character knowledge at any time.</td><td><a href="/pages/HLRHVibG6Nqvot1DGfvc">/pages/HLRHVibG6Nqvot1DGfvc</a></td></tr><tr><td><strong>Narrative design</strong><br>Trigger-based story section progression tied to conversation flow.</td><td><a href="/pages/vN4t84KHA949ufTTNaVd">/pages/vN4t84KHA949ufTTNaVd</a></td></tr><tr><td><strong>Scene metadata</strong><br>Characters automatically read contextual information about scene objects.</td><td><a href="/pages/a62866eb2b9826eb452e50eb8875192eb2464f3c">/pages/a62866eb2b9826eb452e50eb8875192eb2464f3c</a></td></tr></tbody></table>

### Utilities

Helper modules that run entirely within Unity — no Convai communication required.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Dialogue animation</strong><br>Four-layer animator stack driving body and head movement during speech.</td><td><a href="/pages/e7963b2cdbdecc024efd724f61855cea3fab1ea9">/pages/e7963b2cdbdecc024efd724f61855cea3fab1ea9</a></td></tr><tr><td><strong>Gaze and attention</strong><br>Eye and head gaze blended toward focus targets and conversation partners.</td><td><a href="/pages/64f87fbb4fb6aa685a57fa969e6b5253c7ee2246">/pages/64f87fbb4fb6aa685a57fa969e6b5253c7ee2246</a></td></tr></tbody></table>

### Reference and guides

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>UI and presentation</strong><br>Transcript UI, subtitle modes, notification system, and settings panel.</td><td><a href="/pages/26837dafaf3d20063e1664f52a690823bbbb0eb7">/pages/26837dafaf3d20063e1664f52a690823bbbb0eb7</a></td></tr><tr><td><strong>Scripting reference</strong><br>Full API reference for session events, character events, and the transcript system.</td><td><a href="/pages/cd1efd3a5ca8009cafe359f0b008bc9d6038de38">/pages/cd1efd3a5ca8009cafe359f0b008bc9d6038de38</a></td></tr><tr><td><strong>Platform guides</strong><br>WebGL, Android, iOS, and Meta Quest deployment guides.</td><td><a href="/pages/d375c5c4e58f4a666f3cb8c940558eb222674e75">/pages/d375c5c4e58f4a666f3cb8c940558eb222674e75</a></td></tr><tr><td><strong>Advanced topics</strong><br>Custom providers, performance, and SDK extension points.</td><td><a href="/pages/50715c11049002775f940f15ab236a3bc207395c">/pages/50715c11049002775f940f15ab236a3bc207395c</a></td></tr><tr><td><strong>Troubleshooting</strong><br>Common failure modes, diagnostic steps, and known issues.</td><td><a href="/pages/d5350da7bd6402bba0c66f41fe2dadd0116fb2da">/pages/d5350da7bd6402bba0c66f41fe2dadd0116fb2da</a></td></tr></tbody></table>

### Latest release

v<code class="expression">space.vars.unity\_sdk\_version</code> introduces Structured Actions for precise in-scene command dispatch, Meta Quest passthrough vision for AR character awareness, runtime turn-taking mode switching, and expanded dynamic context for richer NPC knowledge.

### Next steps

Install the Convai Unity SDK and connect your first AI character using the Getting Started section. If you are evaluating the SDK before installing, review [Compatibility and requirements](/api-docs/plugins-and-integrations/convai-unity-sdk/compatibility-and-requirements.md) to confirm platform and Unity version support.

{% content-ref url="/pages/1d9fa274483952ca377014dd2a4fb49c2f3e80a1" %}
[Getting started](/api-docs/plugins-and-integrations/convai-unity-sdk/getting-started.md)
{% endcontent-ref %}


---

# 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/convai-unity-sdk.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.
