Hello everyone,
We are excited to share a comprehensive step-by-step tutorial on Convai Dynamic Context in Unreal Engine!
In this video, we build a shooting-range AI instructor in UE5 that reacts to player actions in real time—tracking shots fired, observing gaze attention, identifying moving targets, and evaluating player accuracy across 5m, 10m, 15m, and 20m targets.
The 3 Levels of AI Scene Awareness
This tutorial breaks down Dynamic Context into three distinct levels of awareness so you can make your AI NPCs respond to live gameplay context instead of scripted dialogue:
-
Manual Awareness (Events & States):-
Programmatically send event updates using
Invoke Speech,Add Context Event,Set Context State, andGet Context State. -
Trigger welcoming messages, react when the player picks up a weapon, aggregate context events, and silently track shots fired.
-
-
Automatic Awareness (Convai Objects):-
Tag scene objects using
Convai Objectcomponents. -
Enable spatial relationships, gaze attention tracking, and the ability to identify nearby objects, moving targets, and direction of movement.
-
-
Semi-Automatic Awareness (Tracked Properties):-
Automatically notify the character when specific Blueprint properties change using Tracked Properties.
-
Track target
Hit Countproperties dynamically across multiple distance ranges so the instructor can reason about player accuracy based on actual level data.
-
Runtime Debugging: We also show how to use the Dynamic Context Debug Overlay to inspect the exact events, context states, and property updates being fed into your character at runtime.
Resources & Documentation
Ready to give your AI NPCs true situational awareness? Check out the project links and documentation below:
-
Dynamic Context Documentation: Convai Dynamic Context Feature Docs -
Read the Detailed Blog Post: Convai Dynamic Context: Live Game State & Scene Awareness -
Get the Plugin: Convai UE Plugin on Fab Marketplace -
UE Quick Setup Guide: Watch Unreal Engine Setup Tutorial -
Start Building: Sign up at Convai.com to create interactive AI avatars.
We would love to see how you implement Dynamic Context in your games, simulations, and virtual training environments. Share your questions or progress in the replies below!
Happy developing!