AI Flow
Updated
Visualize how your Agent’s AI components connect and work together.
- Type
comp-ai-flow- Script class
AIFlowComponent- Per entity
- One
- Version
- 1.0.0
Read about it in Creating an agent: what it does, how to use it from a script, and examples.
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
A summary buttonA UI Button asks the guide's AI Summarizer for a summary of the visitor's chat: the script checks availability first, then generates and downloads it, reporting each step in a label.
Press Download summary: without the AI service the label explains that summaries are not available, which is the script's first check. With the service, chat with the guide first, then the button saves a PDF. Drag outside the panels to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(AIFlowComponent); if (component) log(component.props);}