In this step-by-step series, you will build a complete AI web app one feature at a time. Each step adds one clear upgrade to the same app, so you can follow along even if you have never built a web interface before.
What you will build in Step 1: A live chat app running in your browser at http://127.0.0.1:8000 with light/dark mode, Markdown rendering and a conversation sidebar.
http://127.0.0.1:8000
<Steps>
<Step title="Install PraisonAIUI">
Make sure you have Python 3.10 or newer, then install the aiui package:
aiui
</Step>
<Step title="Create your first app">
Choose Python (full flexibility, no API key needed yet) or Zero-code YAML (an AI assistant with zero Python code):
<Tabs>
<Tab title="Python (app.py)">
Create a folder for your project and save this file as app.py:
app.py
@aiui.reply tells PraisonAIUI which function to run whenever a user sends a message. await aiui.say(...) sends the reply back to the chat.
@aiui.reply
await aiui.say(...)
</Tab>
<Tab title="Zero-code YAML (chat.yaml)">
If you prefer YAML over Python, install the agent extra (pip install "aiui[praisonai]"), set OPENAI_API_KEY, and save chat.yaml:
pip install "aiui[praisonai]"
OPENAI_API_KEY
chat.yaml
</Tabs>
<Step title="Start the server and test it">
Run your file from the terminal:
Open http://127.0.0.1:8000, type a message, and press Enter.
</Steps>
<Tip>
If port 8000 is already in use, aiui run automatically picks the next open port and prints the exact URL in your terminal.
aiui run
</Tip>
aiui.say()
<CardGroup cols={2}>
<Card title="Step 2: Connect an AI Model & Stream" icon="sparkles" href="02-connect-ai.md">
Replace the echo reply with a real AI model that streams tokens live and remembers conversation history.
</Card>
<Card title="Agent UI Overview" icon="message-square" href="../chat-ui/overview.md">
See the full map of Agent UI capabilities.
</CardGroup>