AI agents
Updated
AI agents are objects that hold conversation, speech and reasoning components. XR Creator gives each piece of an agent its own editor: Markdown editors for instructions and skills, a code editor for tools, and an AI Flow view that shows how the agent’s components connect and lets you chat with it while the world plays.
Add an agent
Section titled “Add an agent”- Choose Add → Logic and pick the AI agent object.
- Select it and use Add Component → AI in Properties to add the parts it needs, such as a persona, a model, speech, skills or tools.
- Set each component’s fields in Properties.
For what each AI component does, see AI agents overview and Creating an agent.
Instructions
Section titled “Instructions”The AI Persona component’s Instructions field shows a Markdown file named after the agent, such as Guide.md. Click it to open the Agent Instructions editor in its own tab.
Skills
Section titled “Skills”Each AI Skill component has a Name and a Content field. Click Content (for example Skill.md) to open the skill’s Markdown editor. Skill names must be unique on the agent.
See Skills.
Each AI Tool component has a Name and a Script field. Click Script (for example Tool.jx) to open the tool’s source in the code editor, which works like the behavior editor.
See Tools.
AI Flow
Section titled “AI Flow”The AI Flow component’s Flow field shows <agent name>.aiflow. Choose Open flow to open the AI Flow view for that agent. The component must be enabled.
The AI Flow view shows:
- A canvas with one node per agent component and its main settings. Fit view frames them all.
- A chat beside the canvas. Hide chat and Show chat toggle it, and Clear chat clears the displayed messages while keeping the agent’s context and your scene edits.
- A translation menu (showing Original or the current language) where you choose Enable translation and pick a language under Translate into, when the agent offers translation.
To talk to the agent, start Preview. Until then the chat says “Start Preview to chat with this agent”. Context usage on the nodes is also available only in Preview.
See Dialog and captions, Speech and Translation and memory.
Secrets for AI services
Section titled “Secrets for AI services”Components that need a key or credential let you pick a project variable or secret by name. Add them in Project Settings → Environment. See Projects and saving.
Scripting agents
Section titled “Scripting agents”Behaviors can drive agents too. See Scripting AI.