For the complete documentation index, see llms.txt. This page is also available as Markdown.

Dynamic context

Find guides for sending live scene state to Convai characters through the dynamic context relay, scripting API, and synced world-object properties.

Dynamic context gives Convai characters real-time awareness of what is happening in a Unity scene. A character can reference a trainee's current station, an item recently picked up, or an alarm that fired, and weave that information into dialogue as it happens. Two entry points write to the same tracked state and produce identical network behavior: the ConvaiDynamicContextRelay Inspector component for event-driven bindings, and the DynamicContext property on ConvaiCharacter for code-driven systems.

Synced world-object context

A ConvaiObjectMetadata component can expose tracked properties on a scene object. Each tracked property maps to a dynamic context state that every connected character receives automatically, without an explicit SetState call in your code. See Scene metadata for how to register objects and configure tracked properties.

Next steps

Start with Dynamic context quick start to get context-aware dialogue running. Then read How dynamic context works to understand the tracked state and event model before moving into the reference pages.

Last updated

Was this helpful?