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
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.
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).
| Call | What it does | Typical trigger |
|---|---|---|
| Start Conversation | Starts 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 Conversation | Stops 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 Listening | Opens the microphone so the character hears the player. Speech is transcribed and answered. | Push-to-talk key down, "tap to speak" button |
| Stop Listening | Closes the mic and lets the character respond to whatever it just heard. | Push-to-talk key up, silence timeout |
| Send Text Input | Feeds 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 Speech | Cuts 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.
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
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.
| Event | Fires when | Great for |
|---|---|---|
| On Response Ready | The brain has produced a full reply. | Logging, analytics, gating game state on what was said |
| 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 on On NPC Event and through On Response Ready. | Captions for scripted lines |
| On Speaking Started | The character begins talking. | Focus the camera, dim ambient audio, play a gesture |
| On Speaking Stopped | The 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.
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.
- Detect the exit — an overlap end, a "leave" button,
EndPlay, or your own game logic deciding the conversation is done. - Call End Conversation on the
IAMXcomponent. The character goes quiet and returns to its idle state. - Pick it back up anytime — call Start Conversation again later. It starts a new conversation on the same session.
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.