Use Cases

Convai-powered MetaHuman avatars in Unreal Engine do not just respond to player commands with dialogue. With custom actions connected through Convai's Action System, they physically perform the action in the scene. A player says 'show me the procedure.' The MetaHuman walks to the workstation, picks up the tool, and demonstrates the steps.
Watch this in-depth step-by-step guide in action on our youtube tutorial
In this blog post, we will explore how to add custom actions to Metahuman avatars using Unreal Engine, specifically focusing on Convai-powered AI characters (Download the Convai SDK for Unreal Engine). This guide is designed to help game developers, game designers, and virtual world builders enhance their projects by integrating custom animations and making their AI Metahumans more lifelike and engaging. To learn more about adding AI to your Metahuman avatars, read our in depth blog or watch our tutorial on integrating Metahuman avatars with Convai in Unreal Engine.
Custom animations are critical in creating a more immersive and realistic experience for players. When AI Metahumans perform unique actions—whether it's a simple dance move or complex scene interaction—they become more than just background characters. They add a layer of depth and realism that can significantly enhance the user experience.
Now without any further ado, let's look at some of the key steps into setting up custom actions for your AI metahumans!

To begin with, ensure you have your Metahuman avatar ready in Unreal Engine. Convai makes this process straightforward by providing seamless integration between the AI characters you craft and the Metahumans in Unreal Engine. Read our Unreal Engine documentation page to learn more.

For this tutorial, we will use a dance animation. Animations can be sourced from various platforms, like Reallusion or the Unreal Marketplace. After downloading, import the animation into your Unreal Engine project.

An Animation Montage allows you to control how your Metahuman transitions in and out of the animation. Here's how to set it up:
The next step is to integrate this animation into your Metahuman's character blueprint:
Once everything is set up, hit play in Unreal Engine to test the animation. Your Metahuman should now perform the dance move seamlessly. We have set up everything for our test project in the Zen Garden Sample Scene provided by Unreal Engine.


Beyond just adding animations, Convai allows you to customize the animation blueprint to add more nuanced behaviors:
Once an animation is registered in the Convai Action System, it becomes part of the character's Prompt-to-Action (P2A) vocabulary. A player or trainee can trigger it through natural speech, not just through a UI button.
The flow is: Player speaks a command. Dynamic Context API assembles the current scene context, character state, and game variables. The LLM maps the player's intent to the registered action label. The Unreal Engine blueprint receives the action trigger and plays the corresponding Animation Montage.
There is also action-to-action chaining: a MetaHuman can execute a greeting animation, then transition into a demonstration sequence, then return to idle, all without player input, triggered by a single conversational exchange.
For training simulations specifically, this is where Convai's approach becomes irreplaceable. A pharmaceutical sales trainer MetaHuman does not just talk through the procedure. It physically demonstrates each step, guided by a Knowledge Bank grounded in the actual protocol document.
Use Mindview to debug action selection. If the MetaHuman picks the wrong action, Mindview shows you whether the context variable describing the current scenario was actually present in the LLM call.
The Animation Blueprint is a powerful tool within Unreal Engine that allows developers to dictate how and when animations play. Proper configuration of the Animation Blueprint is crucial for achieving smooth and realistic animations. It allows developers to:
Also read: Integrating Dynamic NPC Actions for Game Development with Convai
Adding custom animations to AI Metahumans in Unreal Engine is a game-changer for developers looking to create more interactive and engaging virtual worlds. By following this tutorial, you can enhance the realism and depth of your AI characters, making them more than just background NPCs but integral parts of your game's narrative and player experience.
Custom actions not only improve gameplay but also contribute to the overall aesthetic and functional quality of your game. Whether you're a seasoned developer or just starting out, the ability to add and customize animations in Unreal Engine is an invaluable skill that will set your projects apart.
For more detailed tutorials and support, check out our YouTube Channel. Also, reach out to us at support@convai.com for any questions or concerns. Also, join our amazing developer community on Discord to learn more about integrating AI characters into different types of projects.
Download your animation, create an Animation Montage, connect it to your MetaHuman character blueprint, then register the action name in Convai's Action System under Project Settings. When a player triggers the action via voice or command, the LLM maps the intent to the action label and the blueprint executes the montage.
An Animation Montage is an Unreal Engine asset that controls how an animation plays, loops, and blends in and out. Convai's Action System triggers animations via montage playback, so custom actions require a montage to control transitions cleanly.
Yes. This is Convai's Prompt-to-Action capability. When a player says something implying an action, the Dynamic Context API maps the intent to the registered action label and the engine executes the corresponding animation.
Animations can be sourced from Reallusion ActorCore, the FAB Marketplace, or Mixamo. After downloading, import into your Unreal project, retarget to the MetaHuman skeleton if needed, and create an Animation Montage.
Yes. The Animation Blueprint needs conditional logic or state machine transitions to handle Convai action triggers. Configure blend-in and blend-out times in the Animation Montage for smooth transitions.