> 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/convai-unity-sdk/core-concepts.md).

# Core concepts

Find explanations for how the Convai Unity SDK works at runtime — connections, sessions, embodiment, dialogue state, and event-driven responses.

The Core Concepts section explains the systems that run beneath every Convai character in your scene — the runtime layers that manage connections, the session state machine that governs each character's lifecycle, the per-character embodiment layer that drives modules like Gaze and Emotion, the turn-taking system that controls who speaks and when, and the event components that let your scene react to what happens at runtime.

Start with **Runtime architecture** if you are new to the SDK internals. Read the other pages when you need to configure a specific system or understand why the SDK behaves a certain way.

<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>Runtime architecture</strong><br>Runtime layers, interface inventory, and what you can replace.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/core-concepts/runtime-architecture.md">Runtime architecture</a></td></tr><tr><td><strong>Session lifecycle</strong><br>State machine, per-character sessions, persistence, and reconnection.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/core-concepts/session-lifecycle.md">Session lifecycle</a></td></tr><tr><td><strong>Character embodiment</strong><br>The per-character composition root, deterministic tick, and single-writer rules for Animator and facial blendshapes.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/core-concepts/character-embodiment.md">Character embodiment</a></td></tr><tr><td><strong>Dialogue state</strong><br>The eight-value dialogue state model every embodiment module reads.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/core-concepts/dialogue-state.md">Dialogue state</a></td></tr><tr><td><strong>Asset ownership and copy-on-write</strong><br>Why editing a package-shipped profile creates a project copy instead of editing in place.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/core-concepts/asset-ownership.md">Asset ownership and copy-on-write</a></td></tr><tr><td><strong>Turn-taking modes</strong><br>Hands-free vs. push-to-talk — every field and policy explained.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/core-concepts/turn-taking-modes.md">Turn-taking modes</a></td></tr><tr><td><strong>Voice activity detection</strong><br>Server default vs. custom detection thresholds resolved at connect time.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/core-concepts/voice-activity-detection.md">Voice activity detection</a></td></tr><tr><td><strong>Event system</strong><br>Relay components, payload types, and subscription patterns.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/core-concepts/event-system.md">Event system</a></td></tr></tbody></table>


---

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.convai.com/api-docs/plugins-and-integrations/convai-unity-sdk/core-concepts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
