Unreal plugin

Start the conversation

The one wire people miss — connect the character to its cloud brain.

You've dropped an IAMX component onto your character, filled in its Cloud settings, and pressed Play. With bUseCloudMode on, the component connects to IAMX with its API key and Character ID as play begins and opens a session for that character, with the persona, knowledge and voice you set in IAMX Studio. That part needs no graph wiring.

Start Conversation starts a conversation on top of that session: it fires On Conversation Started and, in Voice Activated and Wake Word modes, opens the microphone. Often the component calls it for you: at BeginPlay in Voice Activated and Wake Word modes, when the player comes within range in Proximity mode, when the interaction key is pressed, and when Send Text Input sends a turn (the built-in chat uses it too). This page shows when to call it yourself and how to drive the conversation from Blueprint.

The one wire

To start the conversation yourself, for example in Manual mode, run a single wire from your character's Event BeginPlay into Start Conversation on the IAMX component.

Event BeginPlay  ->  [ IAMX (component) ]  ->  Start Conversation
Blueprint graph: Event BeginPlay flowing into Start Conversation, with the IAMX component reference wired into Target
The one wire in a real Blueprint — Event BeginPlay runs into Start Conversation, with the IAMX component plugged into Target. Any of your own setup nodes (here a hair LOD step) can sit in between.

From then on the conversation is active and its events fire. In Voice Activated and Wake Word modes the microphone is open, and the character answers as soon as there's something to say.

Create and test the character in IAMX Studio first (see /docs/quickstart). The UE Plugin (Cloud Mode) card on the character's Channels › Publish tab lists the settings the component needs, including the Character ID; the API key comes from My workspace › API Keys. With those filled in, this one node is usually all it takes to bring the character to life.
If your character is silent and no new session for it appears under Insights › Sessions in IAMX Studio, check the connection first: bUseCloudMode must be on, and the server address, API key and Character ID filled in. Without them the component does not connect.

Driving the session

Once the conversation is live, a handful of calls drive everything that happens inside it. You'll reach for these constantly — to open the mic, feed in text, or cut the character off when the player interrupts. Each one is a Blueprint node on the IAMX component (and each has a matching C++ call if you're working in code).

CallWhat it doesTypical trigger
Start ConversationStarts a conversation on the character's session, which opened when play began, and fires On Conversation Started. In Voice Activated and Wake Word modes it also opens the mic.BeginPlay, player enters range, scene begins
End ConversationStops playback and the microphone and fires On Conversation Ended. The connection and the character's session stay open.Player leaves, level ends, character despawns
Start ListeningOpens the microphone so the character hears the player. Speech is transcribed and answered.Push-to-talk key down, "tap to speak" button
Stop ListeningCloses the mic and lets the character respond to whatever it just heard.Push-to-talk key up, silence timeout
Send Text InputFeeds a line of text to the brain as if the player had spoken it — no microphone involved.Chat box submit, scripted line, quest trigger
Interrupt SpeechCuts the character off mid-sentence and stops it talking immediately.Player starts speaking, new input arrives, "skip" button

Voice vs. text

There are two ways to put words in front of the brain, and you can mix them freely in the same session:

By voice

Call Start Listening to open the mic, let the player talk, then Stop Listening. The character transcribes the speech, thinks, and replies out loud. Great for hands-free kiosks and immersive scenes.

By text

Call Send Text Input with a string. The character treats it exactly like spoken input and answers the same way. Perfect for a chat UI, accessibility fallbacks, or scripted beats where you already know the line.

Both paths run through the same brain and produce the same spoken, lip-synced response. You don't have to choose one for the whole game — wire up a push-to-talk key and a text box and let the player use whichever they like.

Interrupting cleanly

Real conversations have interruptions. If the player starts talking — or clicks something, or triggers an event — while the character is mid-monologue, call Interrupt Speech. It stops the current line immediately and settles the face back to rest, so the character feels responsive instead of stubbornly finishing its sentence.

PushToTalk (Pressed)  ->  Interrupt Speech        // shut the character up
                      ->  Start Listening         // and start hearing the player

PushToTalk (Released) ->  Stop Listening          // player's done — go answer
Pattern to remember: Interrupt Speech then Start Listening on the same button press gives you a natural "the player can always jump in" feel. The character yields the floor instantly.

The plugin can also interrupt for you. In IAMX Studio, open the character's Identity & model › Model settings tab: under UE Plugin Settings, Interrupt (on new input) stops the character when the player types or presses the mic, and Auto Barge-In (voice detection) stops it when the player starts speaking out loud.

Reacting to it

Driving the session is only half the loop. The other half is reacting to what the character does — updating subtitles, triggering an animation when it starts talking, or kicking off game logic once a full response is ready. The IAMX component exposes a set of Blueprint events you can bind to for exactly this.

EventFires whenGreat for
On Response ReadyThe brain has produced a full reply.Logging, analytics, gating game state on what was said
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 on On NPC Event and through On Response Ready.Captions for scripted lines
On Speaking StartedThe character begins talking.Focus the camera, dim ambient audio, play a gesture
On Speaking StoppedThe character finishes talking.Return to idle, re-enable the mic, hand control back to the player

Subtitles in two nodes

For live captions, bind On NPC Event: each time its Event Name is text_delta, append its Event Data to your subtitle text, so the line builds up as the reply streams in. For the whole line at once, use On Response Ready instead.

On NPC Event (text_delta)  ->  Append Event Data (SubtitleWidget)
On Speaking Stopped        ->  Clear Text (SubtitleWidget)

Pair On Speaking Started and On Speaking Stopped to toggle any "is talking right now" state — a mouth-cam, a glowing UI ring, a duck on your background music — and you've got a polished conversational feel with just a few nodes.

These four are the events you'll use most, but they aren't the whole list. Response streaming, listening state, action triggers, and error events are all bindable too. The full catalogue — every event, every parameter — lives at /docs/blueprint-api.

Ending the session

When the interaction is over — the player walks away, the level unloads, or the character is about to be destroyed — call End Conversation. It closes the mic if it's open, stops any in-progress speech and fires On Conversation Ended. It does not disconnect: the connection and the character's session belong to the game instance and stay open until it shuts down, for example when you stop Play in the editor or quit the game.

  1. Detect the exit — an overlap end, a "leave" button, EndPlay, or your own game logic deciding the conversation is done.
  2. Call End Conversation on the IAMX component. The character goes quiet and returns to its idle state.
  3. Pick it back up anytime — call Start Conversation again later. It starts a new conversation on the same session.
End Conversation does not close the connection. If characters can be spawned and despawned repeatedly (crowds, respawning NPCs, kiosk timeouts), remember that the game instance holds one connection and one session: each IAMX component that begins play with the connection on reconnects it to its own character. See the IAMX component.

Putting it together

A complete, robust conversational character is really just the on switch, a way to feed it input, a couple of reactions, and the off switch:

Event BeginPlay        ->  Start Conversation

PushToTalk (Pressed)   ->  Interrupt Speech  ->  Start Listening
PushToTalk (Released)  ->  Stop Listening

ChatBox (Submitted)    ->  Send Text Input (message)

On NPC Event           ->  text_delta: append to subtitles
On Speaking Stopped    ->  return to idle / re-enable input

Player left / EndPlay  ->  End Conversation

That's the full lifecycle. Everything richer — actions the character can trigger in your world, vision, memory, narrative flow — layers on top of this same session. But it all starts with the one wire.

Next steps: build your first talking character end-to-end in /docs/quickstart, get the plugin installed via /docs/install, or browse every node and event in the /docs/blueprint-api reference. Want to see a character live first? Talk to Alara in the live demo on iamxlive.com: no signup, just enter your name.
IAMX AI STUDIO