Hello @xionoodlebear,
Welcome to the Convai Developer Forum!
Thanks for your patience, and apologies for the delayed response. We’ve been experiencing some high volume recently.
There are two recommended ways to dynamically add objects like your cupcake actors to a Convai character’s environment at runtime:
Method 1: Using Class References
In your Convai NPC Blueprint:
- Use the
Get Actor of Classnode to find your spawned cupcake. - Access the
ConvaiChatbotcomponent and get itsEnvironmentobject. - Use the
AddObjectfunction to register the cupcake with the environment.
Method 2: Using Tags
If you’re spawning multiple cupcakes dynamically:
- Add two tags to each spawned cupcake:
- One common tag like
Object - One unique tag like
Cupcake
- One common tag like
- Use
Get All Actors with Tagto collect all cupcake instances. - Loop through them and call
AddObjectfor each.
This allows your NPC to recognize and interact with the cupcakes, even if they weren’t part of the original scene.
We’ve attached example screenshots to help visualize the Blueprint setup.

