Skip to main content

ChainlitUI Module

The ChainlitUI module provides a Chainlit-based user interface for interacting with PraisonAI agents.

Prerequisites

Import

Quick Start

  1. Create a chainlit_app.py file:
  1. 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

Agent Configuration

Configure agents via agents.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, PraisonAI, or Google ADK
  • Model: Select the LLM model
  • Agent File: Path to agents.yaml configuration