The agent can output arbitrary UIs by outputting HTML. This allows the agent to draw one-off diagrams and so on. Shelley ships with skills for using Vega-Lite and Excalidraw. MCP tools with interactive views (MCP Apps) show up the same way.
For more complicated needs, ask the agent to run a web server.
Pages can facilitate sending a message back into the agent thread. For example, in the screencast to the right, the user can choose one of three choices.