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.
Add the component
- 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.
- Create an API key: open My workspace › API Keys and choose New key. Copy the key right away: it is shown only once.
- Add the component: select your character actor (or open its Blueprint), choose Add Component in the Details panel and pick IAMX Component.
- Enter the connection settings: fill in the fields in the next section before you press Play.
- Pick an interaction mode: set Interaction Mode to decide how a turn starts, then press Play and talk to your character.
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.
| Property | What to enter | Default |
|---|---|---|
bUseCloudMode | Turn it on. Without it the component does not connect. | Off |
CloudServerURL | The server address from the UE Plugin (Cloud Mode) card. Enter it without /ws and without a query string; the plugin adds /ws itself. | Empty |
CloudAuthToken | Your API key (iamx_…). | Empty |
CloudCharacterId | The character's ID from the Character ID card. | Empty |
CloudSpeakerId | Who is talking. Memory and emotion state are kept per speaker ID, so give each player or device its own stable value. | default-user |
bPixelStreamCharacter | Leave 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 session opens when play begins. Changes you save in IAMX Studio apply from the next session, for example the next time you press Play.
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.
| Property | What it does | Default |
|---|---|---|
Interaction Mode | How a turn starts: Manual, Proximity, Voice Activated, Push to Talk or Wake Word. See the table below. | Push to Talk |
Interaction Key | The key you hold for push-to-talk. In Voice Activated mode, pressing it interrupts the character. | T |
Proximity Radius | Distance in world units at which a Proximity-mode character starts the conversation. | 300 |
Show Chat UI | The 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 Input | New input (typed text, the mic or the interaction key) stops the character mid-sentence and answers the new message. | On |
Enable Barge In | In 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 Cooldown | Seconds 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 Seconds | Audio 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 Mapping | Maps the facial controls to your own rig's blendshapes instead of a MetaHuman face. See custom avatars. | Off |
Interaction modes
The interaction mode decides how a turn begins. Every mode uses the same pipeline underneath; only the trigger differs.
| Mode | Behavior | Best for |
|---|---|---|
| Manual | Your Blueprints start everything: Start Conversation, Start Listening, Stop Listening, Send Text Input. | Custom UI and scripted flows. |
| Proximity | The 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 Activated | The 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 Talk | The character listens only while the interaction key is held. Release it to send the turn. | Noisy rooms, demos, precise control. |
| Wake Word | The microphone stays open as in Voice Activated, and the character answers only when a wake phrase is heard. | Shared spaces with background chatter. |
Wake Words list is used only without a connection. See conversation & voice.Choosing a mode
- Building or debugging? Start with Push to Talk. It is predictable and keeps the transcript clean while you tune the persona and voice.
- Seated experience with one user? Voice Activated feels the most natural.
- Open area with people passing by? Wake Word keeps the character quiet until it is addressed.
- NPC in a game world? Proximity starts the conversation when the player comes close.
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
- Press Play: the Output Log shows
[Cloud] ✓ WS connectedand[Cloud] session_started: …. If Show Chat UI is on, the chat panel appears. - Trigger a turn: press Enter, type and press Enter, or hold T, speak and release. Your words appear in the transcript.
- 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.
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