Unreal plugin

The IAMX component

One component connects an Unreal actor to a character in IAMX Studio.

IAMX Component is the heart of the plugin. Add it to the actor that owns your character's meshes, a MetaHuman or your own rig, and that actor can listen, answer with a voice, move its lips and face, play idle, talking and listening body animations, and call your gameplay actions. The character's persona, language model, voice, knowledge and memory live in IAMX Studio and reach the component when its session starts, so your level holds no provider keys.

This page covers adding the component, the connection fields, the settings you will change most often, and how each interaction mode behaves. Then continue with the animation nodes to drive the face and body, and start the conversation.

The component works without any graph wiring. With the connection fields filled in, press Play, press Enter, type a message and press Enter again, or hold T and speak.

Add the component

  1. Prepare the character in IAMX Studio: open it from Characters, set it up and press Save. In the editor, Channels › Publish shows its Character ID and a UE Plugin (Cloud Mode) card with the values to enter.
  2. Create an API key: open My workspace › API Keys and choose New key. Copy the key right away: it is shown only once.
  3. Add the component: select your character actor (or open its Blueprint), choose Add Component in the Details panel and pick IAMX Component.
  4. Enter the connection settings: fill in the fields in the next section before you press Play.
  5. Pick an interaction mode: set Interaction Mode to decide how a turn starts, then press Play and talk to your character.
The actor's component tree with the IAMX component below the character's body and face meshes
The IAMX component sits in the actor's component tree next to the character's meshes.

Connection settings

The Details panel labels depend on the plugin build. In the v1.1.0 packages these fields are under IAMX › Cloud (for example Use Cloud Mode, Cloud Auth Token). The Unreal Engine 5.8 build of the on-premises edition shows them under IAMX › Connection (for example Enable IAMX connection, Cloud API key) and adds a Connection target choice. The property names below are the same in every build, and they are the names the UE Plugin (Cloud Mode) card on the Publish tab uses.

PropertyWhat to enterDefault
bUseCloudModeTurn it on. Without it the component does not connect.Off
CloudServerURLThe server address from the UE Plugin (Cloud Mode) card. Enter it without /ws and without a query string; the plugin adds /ws itself.Empty
CloudAuthTokenYour API key (iamx_…).Empty
CloudCharacterIdThe character's ID from the Character ID card.Empty
CloudSpeakerIdWho is talking. Memory and emotion state are kept per speaker ID, so give each player or device its own stable value.default-user
bPixelStreamCharacterLeave it off for a normal Unreal session. Turn it on only for a reusable Pixel Streaming avatar that the browser binds to a character.Off
The IAMX component's Cloud settings in the Details panel: auth token, character ID, speaker ID and Pixel Stream Character
The Cloud section in the Details panel. Field labels and order differ between plugin builds.
The API key is masked in the editor but not encrypted inside a packaged project. Use a separate key for each build you ship, so you can delete it on the API Keys page if needed.

The session opens when play begins. Changes you save in IAMX Studio apply from the next session, for example the next time you press Play.

The plugin keeps one IAMX connection per game instance, and it holds one session. Each IAMX component that begins play with the connection on reconnects it to its own character, so the character of the component that began play last answers every turn, whichever component sends it, and every connected component receives and plays the replies. A component that begins play with the connection off closes the connection. Use one IAMX component per game instance.

What the component brings with it

Listen & understand

Captures the microphone and streams it to the server, which transcribes it and answers with the language model chosen on the character's Core AI tab.

Speak & sync

Plays the reply as it streams in, sentence by sentence, and drives the face from the facial controls that arrive with each sentence.

Move & look

Plays your idle, talking and listening animations, blinks, and turns the eyes and head toward the player or a target you set.

Key settings

These are the properties you will change most often in the Details panel.

PropertyWhat it doesDefault
Interaction ModeHow a turn starts: Manual, Proximity, Voice Activated, Push to Talk or Wake Word. See the table below.Push to Talk
Interaction KeyThe key you hold for push-to-talk. In Voice Activated mode, pressing it interrupts the character.T
Proximity RadiusDistance in world units at which a Proximity-mode character starts the conversation.300
Show Chat UIThe built-in chat panel with a text field, a mic button and the transcript. Chat Widget Class picks a custom panel based on IAMXChatWidget.On
Interrupt On New InputNew input (typed text, the mic or the interaction key) stops the character mid-sentence and answers the new message.On
Enable Barge InIn Voice Activated and Wake Word modes, speaking over the character interrupts it. Tune Barge In Audio Threshold (0.10) and Barge In Min Duration (0.5 s).Off
Post Playback Mic CooldownSeconds the microphone stays paused after the character finishes, so room echo of its voice is not taken as a new turn.1.0
Audio Preroll SecondsAudio buffered before speech starts, to absorb network jitter. Not in every plugin build: the v1.1.0 packages do not have it.0.8
Use Custom Character MappingMaps the facial controls to your own rig's blendshapes instead of a MetaHuman face. See custom avatars.Off
Some switches can also be set per character in IAMX Studio, on Identity & model › Model settings › UE Plugin Settings: Face Morph Driver, Game Actions (MoveTo / Follow / …), Conversational Gestures, Teacher Mode (classroom board), Interrupt (on new input) and Auto Barge-In (voice detection). They reach the plugin when the session starts. For Face Morph Driver, Interrupt and Auto Barge-In, a value saved on the character replaces the component's own setting. Game Actions, Conversational Gestures and Teacher Mode decide which tools the server offers the language model.
Leave Show Chat UI on while you build. It gives you a text field to talk to the character without a microphone and a transcript that confirms speech recognition and the language model are answering. Turn it off for a voice-only kiosk or your own interface.

Interaction modes

The interaction mode decides how a turn begins. Every mode uses the same pipeline underneath; only the trigger differs.

ModeBehaviorBest for
ManualYour Blueprints start everything: Start Conversation, Start Listening, Stop Listening, Send Text Input.Custom UI and scripted flows.
ProximityThe conversation starts when the player's pawn comes within Proximity Radius. It does not end on its own when the player walks away; call End Conversation for that. The interaction key is not bound in this mode: the player types in the chat panel, or your Blueprint calls Start Listening and Stop Listening.NPCs the player walks up to, exhibits.
Voice ActivatedThe microphone opens at the start of play and stays open. The end of each utterance is detected from silence.Hands-free, one-on-one sessions.
Push to TalkThe character listens only while the interaction key is held. Release it to send the turn.Noisy rooms, demos, precise control.
Wake WordThe microphone stays open as in Voice Activated, and the character answers only when a wake phrase is heard.Shared spaces with background chatter.
With an IAMX connection, the wake phrases are checked by the server. Set them in IAMX Studio on Identity › Interaction Mode: choose Wake word and fill in Wake phrases (one per line). The component's own Wake Words list is used only without a connection. See conversation & voice.
In Voice Activated and Wake Word modes the microphone is open continuously. Test in the real room: hard surfaces and nearby speakers can feed the character its own voice. The post-playback cooldown handles most rooms. Turn on barge-in only when the microphone is well away from the speaker.

Choosing a mode

For a non-MetaHuman avatar, a stylized character or your own rig, turn on Use Custom Character Mapping so the facial controls drive your mesh's own blendshapes. Setup is in custom avatars.

A minimal setup in C++

You rarely need code, but this is what the steps above do. Add "IAMX" to your module's dependencies and include Components/IAMXComponent.h.

// In your actor's constructor
UIAMXComponent* IAMX = CreateDefaultSubobject<UIAMXComponent>(TEXT("IAMX"));

// Connection (values from Channels › Publish and My workspace › API Keys)
IAMX->bUseCloudMode    = true;
IAMX->CloudServerURL   = TEXT("wss://your-server");   // no /ws, no query string
IAMX->CloudAuthToken   = TEXT("iamx_...");
IAMX->CloudCharacterId = TEXT("your-character-id");
IAMX->CloudSpeakerId   = TEXT("player-1");

// How turns begin
IAMX->InteractionMode  = EIAMXInteractionMode::Proximity;
IAMX->ProximityRadius  = 300.f;   // world units
IAMX->InteractionKey   = EKeys::T;
IAMX->bShowChatUI      = true;

// For a non-MetaHuman avatar:
// IAMX->bUseCustomCharacterMapping = true;

A key written into source code ends up in every build. Prefer setting it per build, as in the warning above.

Verify it works

  1. Press Play: the Output Log shows [Cloud] ✓ WS connected and [Cloud] session_started: …. If Show Chat UI is on, the chat panel appears.
  2. Trigger a turn: press Enter, type and press Enter, or hold T, speak and release. Your words appear in the transcript.
  3. Watch the reply: the character speaks, the mouth moves with the voice, and the body switches to its talking animation. The whole pipeline is working.
Text replies but no voice? The connection works; check the character's voice on Language & voice › Language & Voice and your plan's quota, then the game's audio output. No reply at all? Check the connection fields and look for LogIAMX errors in the Output Log.

Next

Animation nodes →

Drive the face and body with the IAMX lip sync, eye look-at and head look-at nodes. See animation.

Start the conversation →

Start conversations, handle interrupts and wire actions from Blueprint. See start the conversation.

Related: Install · Conversation & voice · Custom avatars · Blueprint API · AI NPCs for games

IAMX AI STUDIO