Dynamic context
Find all Dynamic Context guides — feed live state and events to characters from Inspector or C# and verify context-aware dialogue.
Dynamic Context gives Convai characters real-time awareness of what is happening in the scene. Characters can reference live conditions — a trainee's current location, equipment collected, hazards triggered, or checkpoint status — and incorporate that information naturally into dialogue. Updates flow through two entry points: the ConvaiDynamicContextCommand Inspector component (no code required) and the IConvaiDynamicContext scripting interface on ConvaiCharacter. Both write to the same underlying tracker and produce identical network behavior.
How dynamic context works Understand the states and events model, canonical context format, and pre-conversation queueing design.
Dynamic context quick start Add the command component to an NPC and verify context-aware dialogue in five steps.
Command component reference Field-by-field reference for all six command types, reaction modes, and validation warnings.
Static context at connection time Configure initial dynamic info sent once at connection for facts that do not change during a session.
Sync behavior and timing How and when Replace, Append, and Reset messages are transmitted for each context operation.
Dynamic context scripting API
Full API reference for IConvaiDynamicContext — all seven methods with signatures and queueing behavior.
Next steps
Start with Dynamic context quick start to get context-aware dialogue running. Then read How dynamic context works to understand the states and events model before moving into the reference pages.
Last updated
Was this helpful?