Skip to main content
Mini agents run multi-step workflows in a few lines — one Agent per role, coordinated by AgentTeam.
The user describes a goal; the team runs each agent in sequence and returns a combined result.

How It Works

Quick Start

Create multiple AI agents that can work together in just a few lines of code!
1

Install Package

First, install the PraisonAI Agents package:
2

Set API Key

Set your OpenAI API key as an environment variable in your terminal:
3

Create Your Agents

4

Run Your Agents

Execute your agents by running:
Prerequisites
  • Python 3.10 or higher
  • OpenAI API key. Generate OpenAI API key here. Use Other models using this guide.


Understanding Mini AI Agents

What are Mini AI Agents?

Mini AI Agents are simplified yet powerful AI agents that can:
  • Work together to accomplish tasks
  • Use tools like internet search
  • Process and summarize information
  • Execute tasks sequentially

Key Components

Agent

Individual AI agents with specific roles and capabilities

Tools

Built-in tools that agents can use

Agents Manager

Coordinates multiple agents

Sequential Flow

Agents work in sequence, passing results to each other

Available Tools

Internet Search

Search the internet using DuckDuckGo
Requires: pip install duckduckgo_search

Custom Instructions

Best Practices

Write clear and specific instructions:
Provide tools only to agents that need them:

Common Patterns

Research and Analysis

Information Processing

Troubleshooting

Tool Not Available

If using Tools.internet_search, install required package:

Agent Communication

Ensure agent instructions are clear and complementary

Next Steps

Advanced Agents

Learn about advanced agent configurations

Custom Tools

Create your own agent tools
Mini AI Agents are designed to be simple yet powerful. They’re perfect for quick prototypes and straightforward automation tasks.
Build full multi-agent teams when tasks outgrow a single mini agent.
Add custom tools to give mini agents new capabilities.