Unreal plugin

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.

Call a node to make something happen; bind an event to know when it happened. The tables come first, the events follow at the bottom.

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.

NodeWhat it doesTypical trigger
Start ConversationStarts 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 ConversationStops 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 ListeningOpens 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 ListeningCloses the microphone and tells the server the utterance is complete; the server transcribes it and the character answers.Push-to-talk key up
Interrupt SpeechStops 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
In Voice Activated, Push to Talk and Wake Word modes the component opens and closes the microphone for you. Use 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.

NodeReturnsUse 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 ConversationboolCheck whether a conversation is active. Gate UI, camera framing or "press to talk" prompts on it.
Is SpeakingboolCheck whether the character is playing audio. Show a talking indicator or duck ambient audio.
Is ListeningboolCheck whether the microphone is open. Drive a "listening…" ring.
Is ProcessingboolCheck whether a turn is in flight: input sent, reply not started yet. Show a thinking indicator.
Get Cloud ClientIAMX cloud clientRead the connection state (Get State, Is Connected) for your own status display, or bind its On Session Started event (see Context below).
The state queries are cheap enough to poll on 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".

NodeWhat it doesExample
Set Context FactSends 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 MoodStores 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 CharacterRefreshes 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 APILegacy: loads a character from an older self-hosted panel server. It is not used with IAMX Studio.—
Keep context keys stable and readable, for example 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

NodeWhat it does
Register ActionDefines 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 ActionRemoves 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 ServerSends the current set again. The component does this itself when the session starts and after every register or unregister.
Clear Action QueueEmpties 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:

Any other action name arrives as 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

NodeWhat it does
Register Scene ObjectAdds 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 ActorRegisters 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 ObjectsRemoves one object by name, or all of them.
Set Attention ObjectTells 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 CharacterTells the character who is speaking to it.
Resolve Scene ActorReturns the actor registered under a name, or nothing.
Once the session has started, every change sends the whole list to the server (up to 100 objects), which adds it to the character's instructions on every turn. Changes made before that are not sent: use the 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.

NodeWhat it does
Force Set EmotionSets one axis (0 to 1) immediately, with no blend, and fires On Emotion State Changed. The next update from the server replaces it.
Reset EmotionSets every axis to zero immediately and fires On Emotion State Changed.
Get Emotion ScoreReturns the current smoothed value of one axis.
Compute Emotion Morph ValuesReturns 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.

NodeWhat it does
Start Npc ConversationStarts 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 ConversationEnds the exchange for both characters.
Is In Npc ConversationReturns whether this character is in an exchange.
Every line is a conversation turn on your plan. Text the player sends to either character (Send Text Input or the built-in chat) ends the exchange, and that character answers the player.
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.

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

EventFires whenPayload
On Conversation StartedA conversation starts.—
On Conversation EndedA conversation ends.—
On Speaking StartedThe character starts playing audio.—
On Speaking StoppedThe character stops playing audio, or is interrupted.—
On Listening StartedThe microphone opens.—
On Listening StoppedThe microphone closes.—

Turn & transcript

EventFires whenPayload
On Player Speech TranscribedThe server returns the transcript of the player's speech.Text
On Response ReadyThe character's reply is complete.Full reply text
On NPC EventSomething 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 SpokenThe 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
For live captions, append the Event Data of each text_delta from On NPC Event. For a chat log, use On Response Ready, which carries the whole reply.

Actions

EventFires whenPayload
On Action ReceivedThe model calls any action, built-in or your own.Action: Action Name, Builtin, Params Json, Target Name, Target Ref, Wait Seconds
On Action TriggeredLegacy event for the old local pipeline. It does not fire with an IAMX connection; use On Action Received.Tool call

Emotion

EventFires whenPayload
On Emotion State ChangedThe server sends a new emotion state, or you call Force Set Emotion or Reset Emotion.Emotions (eight values)

Perception, presence & identity

EventFires whenPayloadNeeds
On Perceived ObjectA new scene object is registered.Name—
On Attention ChangedSet Attention Object changes the focus.Name—
On Person DetectedFace recognition sees a new person in front of the camera.Person ID, Person NameFaceID
On Person GoneThat person has left.Person IDFaceID
On Identity Verified EventAn NFC identity card was read and checked against the live face.Full Name, TC Number, Similarity, Face MatchedIdentity verification
Face recognition is set on the character's Behavior › FaceID tab, and FaceID and identity verification are plan features (see plans). The events compile in every project but fire only when the feature is on for the character and your plan includes it. FaceID is not available with the on-premises connection target.

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 momentMessage to the server
Play begins (connection on)start_session with characterId, speakerId and lipsyncFormat: "metahuman"
Send Text Inputtext_input with text
Start Listening / Stop Listeningaudio_chunk (base64 16 kHz mono 16-bit PCM in data), then audio_stream_end
Interrupt Speechinterrupt
Set Context Factcontext_fact with key and value
Scene nodesscene_update with objects (name, description, position), attention, mainCharacter
Action nodesregister_tools with tools (name, description, parameters)
Capture And Send Visionvision_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.

The plugin releases are on GitHub. When a node tooltip in your package differs from this page, follow the tooltip: it describes the build you installed.
IAMX AI STUDIO