Narrative graph
Lay out the stages of a conversation as connected nodes on the character's Narrative tab.
Most conversational characters are open-ended: they talk about anything, for as long as the visitor wants. When a conversation has a job to do, such as greeting a visitor, qualifying a lead or handing out a quest, it helps to write down its stages and what moves it from one stage to the next. The Narrative tab in IAMX Studio gives you a canvas for that: a graph of start, section, trigger and end nodes, saved with the character.
Open the Narrative tab
- Open the character: on Characters, select the character and choose Open studio.
- Open the tab: in the setting groups on the right, choose Mind & knowledge, then the Narrative tab. The canvas sits in the Narrative Graph card.
Build the graph
- Add nodes: use the Start, Section, Trigger and End buttons at the top of the canvas. Each new node opens in the details panel.
- Arrange and connect: drag nodes to arrange them, and drag from one node's handle to another's to connect them. A node can connect to more than one next node.
- Describe each node: select a node to edit it under Node details: Name and Content. Delete node removes it with its connections. Show details and Hide details toggle the panel.
- Save: press Save in the editor toolbar (or Ctrl/Cmd+S). Moving to another tab also saves. The line under the canvas shows the node and edge counts and whether there are unsaved changes.
Full screen expands the graph to fill the page, with its own Save button. Drag to pan, scroll to zoom, and press Esc to exit.
The node kinds
The Content field of each kind has its own hint in the studio:
| Node | Content |
|---|---|
| Start | Opening note (optional). |
| Section | The instruction or goal for this stage of the conversation. |
| Trigger | The condition that moves the conversation on, for example "user verified their identity". |
| End | Closing note (optional). |
There is no separate decision node: to branch, connect a node to more than one next node and describe each condition in a trigger.
[ Start ]
│
▼
[ Section: Welcome ] "Greet the visitor and ask their name."
│
▼
[ Section: Discover ] "Find out what the visitor needs."
│
├──► [ Trigger ] "the visitor asks for a demo" ──► [ Section: Book demo ] ──► [ End ]
│
└──► [ Trigger ] "the visitor is not a fit" ─────► [ Section: Hand off ] ───► [ End ]
Steering a conversation today
These settings shape what the character says in every conversation now:
| Goal | Where |
|---|---|
| Describe the job and the order of the stages | Identity › Background / Persona and Conversation Style; add sample exchanges under Example Dialogues (optional). |
| Keep it on topic and set hard limits | Behavior › Guardrails: Enable guardrails and write the Rules. |
| Tell it which stage the visitor is at | From Unreal, Set Context Fact, for example Set Context Fact("quest_stage", "The player agreed to find the shipment"). The server adds it to the character's instructions. See Blueprint API. |
| Make something happen in your app | Actions the model can call: Blueprint actions in Unreal (actions), or HTTP tools from Knowledge › Tool Registry, switched on per character on Behavior › Tool Registry. |
| Ground it in your material | Mind & knowledge › Knowledge Base: files the character answers from. |
The Unreal Narrative asset
The Unreal plugin also contains its own asset type, IAMX Narrative Graph, with a graph editor in Unreal. With an IAMX connection its objectives stay in the plugin and are not sent to the server either, so it does not steer the conversation. Use the methods above instead.
Next steps
- New to IAMX? Start with the Quickstart.
- Wire game reactions with the Blueprint API and actions.
- Give the character its material in the knowledge base.
- Building an NPC that moves a story forward? See AI NPCs for games.