Blueprint API
The nodes and events of the IAMX component, usable without C++.
The IAMX component exposes its runtime as Blueprint nodes and bindable events. Every node below lives on the IAMX Component you add to your actor. Node names are written as they appear in the Blueprint node search: type the name into the graph's right-click menu with the component selected. The character's persona, model, voice and knowledge are set in IAMX Studio; these nodes control the session from your game and feed it what only the game knows.
Session & mic
When the connection is enabled on the component, the plugin connects to the IAMX server and opens the character's session as play begins. The nodes below control the conversation on top of that session: whether it is active, and when the microphone is open.
| Node | What it does | Typical trigger |
|---|---|---|
Start Conversation | Starts the conversation and fires On Conversation Started. In Voice Activated and Wake Word modes it also opens the microphone. Send Text Input calls it for you when needed. | Player enters a trigger volume or presses "Talk" |
End Conversation | Stops playback and the microphone, and fires On Conversation Ended. Safe to call when no conversation is running. | Player walks away, dialogue ends, level unloads |
Start Listening | Opens the microphone and streams the player's speech to the server. If the character is speaking and Interrupt On New Input is on, it stops first. | Push-to-talk key down |
Stop Listening | Closes the microphone and tells the server the utterance is complete; the server transcribes it and the character answers. | Push-to-talk key up |
Interrupt Speech | Stops the character mid-sentence: halts playback, clears the audio queue and tells the server to cancel the reply in progress. Safe to call when idle. | Urgent gameplay event, your own barge-in logic |
Start Listening and Stop Listening when you want exact control, for example in Manual mode.A minimal voice loop
Event BeginPlay
└─► Start Conversation
InputAction Talk (Pressed)
└─► Start Listening
InputAction Talk (Released)
└─► Stop Listening // the player's turn is sent here
Event EndPlay
└─► End Conversation
Input & state
Voice is optional. Send Text Input sends a turn as if the player had spoken it, for chat boxes, scripted lines, quest triggers or accessibility. The state queries let your Blueprint follow what the character is doing.
| Node | Returns | Use it to |
|---|---|---|
Send Text Input | — | Send a text turn. It starts the conversation if needed, interrupts the character if Interrupt On New Input is on, and runs the same pipeline as speech. |
Is In Conversation | bool | Check whether a conversation is active. Gate UI, camera framing or "press to talk" prompts on it. |
Is Speaking | bool | Check whether the character is playing audio. Show a talking indicator or duck ambient audio. |
Is Listening | bool | Check whether the microphone is open. Drive a "listening…" ring. |
Is Processing | bool | Check whether a turn is in flight: input sent, reply not started yet. Show a thinking indicator. |
Get Cloud Client | IAMX cloud client | Read the connection state (Get State, Is Connected) for your own status display, or bind its On Session Started event (see Context below). |
Event Tick, but the matching events below are usually cleaner: bind once and react when the state changes.Text chat without a mic
OnTextCommitted (your chat box)
└─► Send Text Input [ Text = committed string ] // starts the conversation if needed
Context
A character answers better when it knows what is going on in your game. Set Context Fact sends a fact to the server, which adds it to the character's instructions for the rest of the session: "the store closes at 6 pm", "the player is holding a red keycard".
| Node | What it does | Example |
|---|---|---|
Set Context Fact | Sends a key and a value to the server (up to 64 characters for the key and 2,000 for the value). The same key replaces its earlier value; an empty value removes it. A session keeps up to 24 of your keys (16,000 characters in all); further new keys are ignored. | Set Context Fact("store_hours", "We're open until 6 pm today") |
Set Mood | Stores a mood on the component's local copy of the persona. It is not sent to the server, so it does not change the replies. Use Set Context Fact or Force Set Emotion instead. | — |
Update Character | Refreshes the component's local settings. It does not fetch the character again: the server applies the character's saved settings when a session starts. | — |
Load From Panel API | Legacy: loads a character from an older self-hosted panel server. It is not used with IAMX Studio. | — |
Set Context Fact("queue_length", …), so each update replaces the old value instead of piling up new keys.Set Context Fact and the scene nodes send nothing until the connection is open, and it opens a moment after play begins, so values you set in Event BeginPlay do not reach the server. A context fact set too early is lost; scene objects stay on the component and go out with the next scene change. A new session also starts without your earlier facts. Set them once the session has started: in Event BeginPlay, take Get Cloud Client and bind its On Session Started event, which fires each time a session starts. Actions need no extra step: the component sends them again whenever a session starts.Event BeginPlay
└─► Get Cloud Client ─► Bind Event to On Session Started [ Event = Session Ready ]
Session Ready (custom event)
├─► Set Context Fact ("quest_stage", "The player agreed to find the shipment")
└─► Register Scene Object ("Tavern door", "Heavy oak door, leads to the street", …)
IAMX Studio is the source of truth
Write the stable persona, guardrails, knowledge and voice in IAMX Studio and press Save. They apply from the next session, for example the next time you press Play. Use the Blueprint nodes only for what is truly runtime: inventory, time of day, quest stage, live gameplay state.
Actions & scene
This is where the character starts affecting your game. Actions are functions you let the language model call; it decides in conversation when to call them, and your Blueprint runs the result. Scene registration tells the character what is around it, so it can talk about those things and target them.
Your own actions
| Node | What it does |
|---|---|
Register Action | Defines an action the model may call, or updates it by name: a name, a description the model reads, and a map of parameter names to descriptions (each parameter is a string). The current set is sent to the server. |
Unregister Action | Removes an action by name and sends the updated set. Use it to gate abilities behind game state, for example allow open_door only once the player has the key. |
Sync Actions To Server | Sends the current set again. The component does this itself when the session starts and after every register or unregister. |
Clear Action Queue | Empties the component's list of decoded actions (Action Queue). |
You can also fill Local Action Tools on the component in the Details panel instead of calling Register Action. The server accepts up to 50 actions per set.
Event BeginPlay
└─► Register Action
Name = "give_item"
Description = "Hand the player an item from the shop shelf"
Param Descriptions = { item_name : "Name of the item", quantity : "How many" }
// later, when the character decides to act:
On Action Received (Action Name = "give_item", Params Json = {"item_name":"potion","quantity":"2"})
└─► your Blueprint spawns the item, plays a sound, updates the inventory
Built-in game actions and gestures
Two switches on the character in IAMX Studio, Identity & model › Model settings › UE Plugin Settings, give the model ready-made tools:
- Game Actions (MoveTo / Follow / …) adds
move_to,follow,stop_movingandwait_for. They arrive asOn Action Move To,On Action Follow,On Action Stop MovingandOn Action Wait. The target name is matched to a registered scene object, so you get the actor to move to. The plugin does not move the character; your Blueprint does. - Conversational Gestures adds
play_gesturewith these names: wave, nod, shake_head, point, shrug, thumbs_up, think, greet, bow, clap. The component callsPlay Gesture, which firesOn Gestureand plays the montage you mapped to that name in Gesture Montages.
On Action Custom (action name, parameters as JSON, target, target name). On Action Move To, On Action Follow, On Action Stop Moving, On Action Wait, On Action Custom and On Gesture are events of the component class: implement them in a Blueprint class based on IAMX Component. From an actor Blueprint, bind On Action Received, which fires for every action, and branch on its Action Name or Builtin field.Scene awareness
| Node | What it does |
|---|---|
Register Scene Object | Adds or updates, by name, a thing the character knows about: a name, a short description, a world position and an optional actor reference. Fires On Perceived Object for a new name. |
Register Scene Actor | Registers an actor with its location. In the editor the name is the actor's label; in a packaged build it is the object name, so use Register Scene Object when the name matters. |
Unregister Scene Object / Clear Scene Objects | Removes one object by name, or all of them. |
Set Attention Object | Tells the character which object or character is the current focus, and fires On Attention Changed. It does not move the eyes; the eye and head look-at follow Look At Target or the player camera. |
Set Main Character | Tells the character who is speaking to it. |
Resolve Scene Actor | Returns the actor registered under a name, or nothing. |
On Session Started event shown under Context. Keep the list to the handful of things that matter in the scene, not the whole level.Emotion
The server can classify the conversation into an eight-axis emotion state (Joy, Trust, Fear, Surprise, Sadness, Disgust, Anger, Anticipation). The character's Behavior › Emotion tab controls it, and the component smooths each update into the face. These nodes let you override or read that state.
| Node | What it does |
|---|---|
Force Set Emotion | Sets one axis (0 to 1) immediately, with no blend, and fires On Emotion State Changed. The next update from the server replaces it. |
Reset Emotion | Sets every axis to zero immediately and fires On Emotion State Changed. |
Get Emotion Score | Returns the current smoothed value of one axis. |
Compute Emotion Morph Values | Returns the morph values the emotion layer would apply, for use in your own Animation Blueprint. |
// Cutscene: force fear, then clear it
Sequence
├─► Force Set Emotion (Axis = Fear, Value = 0.9)
└─► Delay 3.0 ─► Reset Emotion
// Gameplay: swell the music when the character is happy
On Emotion State Changed
└─► Get Emotion Score (Joy) ─► Set Music Intensity
NPC-to-NPC conversations
These nodes pass each reply of one IAMX component to another as its next input, line by line. With cloud characters, read the connection note below first.
| Node | What it does |
|---|---|
Start Npc Conversation | Starts an exchange with another IAMX component. This component sends Topic as its text input; after that, each complete reply is sent to the other component as its input. It ends after at most Max Turns replies (default 6, from 1 to 50). It does nothing if the other component is this one or either one is already in an exchange. |
Stop Npc Conversation | Ends the exchange for both characters. |
Is In Npc Conversation | Returns whether this character is in an exchange. |
Send Text Input or the built-in chat) ends the exchange, and that character answers the player.For an exchange between cloud characters, this means both components use the same session: the topic and every handed-on line go to the character of the component that began play last, that character answers every line, and each reply reaches both NPCs. In one game instance these nodes do not give you two cloud characters that each answer with their own persona and voice.
Livestream & podcast consoles
The studio's operator consoles, Channels › Livestream and Channels › Podcast, are run from IAMX Studio, not from Blueprint. The plugin has no podcast nodes. Its livestream nodes (Enqueue Livestream Message, Enqueue Operator Message, Clear Livestream Queue, Hard Stop NPC, Get Livestream Queue Length and the On Livestream Queue Changed event) manage a local message queue on the component when Enable Livestream is on.
Events you can bind
Bind these in the graph, or assign them at runtime, and let the character drive your UI, animation, audio and gameplay without polling.
Lifecycle
| Event | Fires when | Payload |
|---|---|---|
On Conversation Started | A conversation starts. | — |
On Conversation Ended | A conversation ends. | — |
On Speaking Started | The character starts playing audio. | — |
On Speaking Stopped | The character stops playing audio, or is interrupted. | — |
On Listening Started | The microphone opens. | — |
On Listening Stopped | The microphone closes. | — |
Turn & transcript
| Event | Fires when | Payload |
|---|---|---|
On Player Speech Transcribed | The server returns the transcript of the player's speech. | Text |
On Response Ready | The character's reply is complete. | Full reply text |
On NPC Event | Something happens in the session. Event Name is one of conversation_start, conversation_end, listening_start, listening_stop, speaking_start, speaking_end, text_delta (each piece of the streamed reply), turn_complete, tool_call, barge_in, identity_verified, state_changed or cloud_error. | Event Name, Event Data |
On Sentence Spoken | The component sends a line for the character to say word for word: a greeting, an operator line or an action's spoken response. Normal replies arrive through text_delta and On Response Ready. | Sentence |
text_delta from On NPC Event. For a chat log, use On Response Ready, which carries the whole reply.Actions
| Event | Fires when | Payload |
|---|---|---|
On Action Received | The model calls any action, built-in or your own. | Action: Action Name, Builtin, Params Json, Target Name, Target Ref, Wait Seconds |
On Action Triggered | Legacy event for the old local pipeline. It does not fire with an IAMX connection; use On Action Received. | Tool call |
Emotion
| Event | Fires when | Payload |
|---|---|---|
On Emotion State Changed | The server sends a new emotion state, or you call Force Set Emotion or Reset Emotion. | Emotions (eight values) |
Perception, presence & identity
| Event | Fires when | Payload | Needs |
|---|---|---|---|
On Perceived Object | A new scene object is registered. | Name | — |
On Attention Changed | Set Attention Object changes the focus. | Name | — |
On Person Detected | Face recognition sees a new person in front of the camera. | Person ID, Person Name | FaceID |
On Person Gone | That person has left. | Person ID | FaceID |
On Identity Verified Event | An NFC identity card was read and checked against the live face. | Full Name, TC Number, Similarity, Face Matched | Identity verification |
Putting the events together
On Conversation Started ─► show HUD, frame the camera on the character
On Listening Started ─► show a "listening" ring
On Player Speech Transcribed ─► add the player's line to the chat log
On NPC Event (text_delta) ─► append to the live caption
On Response Ready ─► add the character's line to the chat log
On Speaking Stopped ─► Start Listening (hands-free loop)
On Emotion State Changed ─► change the music or lighting mood
On Action Received ─► run gameplay (give item, open door, …)
On Conversation Ended ─► hide HUD
What the nodes send
The plugin talks to the IAMX server over one WebSocket (/ws?token=<API key>) using these JSON messages. You do not need them to use the nodes; they help when you read the Output Log or build your own client.
| Node or moment | Message to the server |
|---|---|
| Play begins (connection on) | start_session with characterId, speakerId and lipsyncFormat: "metahuman" |
Send Text Input | text_input with text |
Start Listening / Stop Listening | audio_chunk (base64 16 kHz mono 16-bit PCM in data), then audio_stream_end |
Interrupt Speech | interrupt |
Set Context Fact | context_fact with key and value |
| Scene nodes | scene_update with objects (name, description, position), attention, mainCharacter |
| Action nodes | register_tools with tools (name, description, parameters) |
Capture And Send Vision | vision_update with a JPEG image (see vision) |
The server answers with session_started (including the character's clientConfig), user_transcript, text_delta, audio_chunk and blendshape_frame for each sentence, audio_segment_end, tool_call, emotion_update, turn_complete, interrupted and error (code, message).
Where to go next
Component
Connection fields, interaction modes and key settings. See the IAMX component.
Actions
Design actions the model calls at the right moment. See actions.
Install
Add the plugin and connect it to a character. See install.