Skip to main content
Let’s build your first AI agent in 5 minutes! Follow along step by step.

Step-by-Step Guide

1

Install PraisonAI

Open your terminal and run:
2

Set Your API Key

Set your OpenAI API key:
Get your API key from platform.openai.com
3

Create Your Agent File

Create a new file called my_agent.py:
4

Run Your Agent

You should see the agent’s response explaining solar panels!

How It Works


Try Different Agents

Coding Helper

Creative Writer

Math Tutor


Complete Example


Troubleshooting

API Key Error

Make sure OPENAI_API_KEY is set correctly

Module Not Found

Run pip install praisonaiagents again

No Response

Check your internet connection

Slow Response

First request may take a few seconds

What’s Next?

Give your agent superpowers like web search and calculations
Let your agent remember conversations
Give your agent access to your documents
Create multiple agents that work together

Next: Adding Tools to Agents

Learn how to give your agents superpowers with tools.