Follow these five steps to go from zero to a live, interactive A2UI workspace.
If you want PraisonAI agents to generate A2UI surfaces via tool calls, also install the optional agent SDK:
Save this as app.py. It enables the split Chat + Canvas view, a full-page Canvas, and a custom Agent Canvas page backed by surface "main":
app.py
"main"
Open http://127.0.0.1:8000 and switch between Chat + Canvas, Canvas, and Agent Canvas. Click Increment to watch the surface update live over WebSocket.
http://127.0.0.1:8000
Save a JSONL file hello.jsonl:
hello.jsonl
Push it to your running server:
Wrap send_a2ui_messages with coerce_a2ui_tool_messages so any LLM output shape (JSON, JSONL, v0.8, or v0.9) is normalized automatically:
send_a2ui_messages
coerce_a2ui_tool_messages
Next: explore all 18 Basic Catalog Components & 14 Functions.