ChainlitUI Module
The ChainlitUI module provides a Chainlit-based user interface for interacting with PraisonAI agents.Prerequisites
Import
Quick Start
- Create a
chainlit_app.pyfile:
- Run with Chainlit:
Features
Chat Profiles
The UI supports multiple chat profiles:- Auto: Automatically generate agents and tasks based on input
- Manual: Configure agents manually from YAML
Starter Prompts
Pre-configured starter prompts for common use cases:- Create a movie script
- Design a fantasy world
- Write a futuristic political thriller
- Develop a mystery novel
- Plan a sci-fi adventure
Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
OPENAI_MODEL_NAME | Model to use | gpt-4o-mini |
OPENAI_API_BASE | API base URL | https://api.openai.com/v1 |
OPENAI_API_KEY | API key | Required |
Agent Configuration
Configure agents viaagents.yaml:
Actions
Run Action
Execute the configured agents with the current input.Modify Action
Modify agents and tools from the settings panel.Example: Custom Chainlit App
Chat Settings
Configure via the Chainlit settings panel:- Framework: Choose between CrewAI, AutoGen, or PraisonAI
- Model: Select the LLM model
- Agent File: Path to agents.yaml configuration
Related
- UI Overview - UI options
- AgentsGenerator Module - Agent generation
- Auto Module - Auto-generation

