Building custom pages and dashboards with PraisonAIUI (aiui)

Define bespoke pages and KPI views alongside chat

PraisonAIUI (pip install aiui, import praisonaiui) lets you build clean, branded multi-page AI dashboards in pure Python — mixing live metrics cards, custom data tables, and scoped chat tabs without writing React boilerplate.

Example

# Example app.py using PraisonAIUI (pip install aiui -> run with: aiui run app.py)
import praisonaiui as aiui
from praisonai import Agent

support_agent = Agent(
    name='SupportCopilot',
    instructions='Help support leads triage escalations concisely.',
)

@aiui.reply
async def on_message(message: str):
    return await support_agent.astart(message)

Example explained

  • import praisonaiui as aiui — Lightweight Python framework for custom PraisonAI web dashboards and chat apps.
  • @aiui.reply — Connects incoming browser chat turns directly to your async PraisonAI Agent.

Launch and live-reload your custom AIUI app

Run aiui run app.py locally to preview your custom pages, tabs, and chat handler in the browser.

Example

pip install aiui
aiui run app.py --port 8080

Example explained

  • aiui run app.py — Starts the PraisonAIUI server with hot reload on localhost:8080.

Common pitfall: exposing every built-in debug tab to end users

Hide raw internal tabs (like system config or global logs) when shipping a customer- or team-facing workspace — show only the pages that role actually uses.

Reference: documentation