HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //opt/PraisonAI/docs/introduction.mdx
---
title: "Introduction"
description: "Welcome to PraisonAI - The Next Generation AI Agent Framework"
icon: "book-open"
---

## What is PraisonAI?

PraisonAI is a powerful Multi-Agent Framework for building and deploying AI agents that can understand, reason, and execute complex tasks autonomously.
<CardGroup cols={1}>
  <Card title="Welcome to PraisonAI" icon="wand-magic-sparkles">
    Build powerful autonomous agents that understand, decide, and execute with unprecedented capability.
  </Card>
</CardGroup>

# Core Components
<br />
```mermaid
graph LR
    %% Define the main flow
    Start([▶ Start]) --> Agent1
    Agent1 --> Process[⚙ Process]
    Process --> Agent2
    Agent2 --> Output([✓ Output])
    Process -.-> Agent1
    
    %% Define subgraphs for agents and their tasks
    subgraph Agent1[ ]
        Task1[📋 Task]
        AgentIcon1[🤖 AI Agent]
        Tools1[🔧 Tools]
        
        Task1 --- AgentIcon1
        AgentIcon1 --- Tools1
    end
    
    subgraph Agent2[ ]
        Task2[📋 Task]
        AgentIcon2[🤖 AI Agent]
        Tools2[🔧 Tools]
        
        Task2 --- AgentIcon2
        AgentIcon2 --- Tools2
    end

    classDef input fill:#8B0000,stroke:#7C90A0,color:#fff
    classDef process fill:#189AB4,stroke:#7C90A0,color:#fff
    classDef tools fill:#2E8B57,stroke:#7C90A0,color:#fff
    classDef transparent fill:none,stroke:none

    class Start,Output,Task1,Task2 input
    class Process,AgentIcon1,AgentIcon2 process
    class Tools1,Tools2 tools
    class Agent1,Agent2 transparent
```
<br />
<CardGroup cols={2}>
  <Card title="Agents" icon="user-robot">
    Autonomous AI entities that can understand context and execute tasks
  </Card>
  <Card title="Tasks" icon="list-check">
    Units of work that agents can execute independently or collaboratively
  </Card>
  <Card title="Process" icon="diagram-project">
    Workflow management for coordinating agent activities
  </Card>
  <Card title="Tools" icon="toolbox">
    Extensible capabilities that agents can leverage
  </Card>
</CardGroup>

## Use Cases

<CardGroup cols={2}>
  <Card title="Customer Service" icon="headset">
    Build intelligent support agents that can handle customer inquiries and resolve issues autonomously.
  </Card>
  <Card title="Data Analysis" icon="chart-line">
    Create agents that can process, analyze, and derive insights from complex datasets.
  </Card>
  <Card title="Content Creation" icon="pen-nib">
    Deploy agents that can generate, edit, and optimize content across various formats.
  </Card>
  <Card title="Process Automation" icon="gears">
    Automate complex workflows with intelligent agents that can coordinate and execute tasks.
  </Card>
</CardGroup>

## Getting Started is Easy
<Tabs>
  <Tab title="Code">
    <Steps>
      <Step title="Install Package">
        Install the PraisonAI Agents package:
        ```bash
        pip install praisonaiagents
        ```
      </Step>

      <Step title="Set API Key">
        ```bash
        export OPENAI_API_KEY=your_openai_key
        ```
        Generate your OpenAI API key from [OpenAI](https://platform.openai.com/api-keys).
        Use other LLM providers like Ollama, Anthropic, Groq, Google, etc. Please refer to the [Models](/models) for more information.
      </Step>

      <Step title="Create Agents">
        Create `app.py`:
    <CodeGroup>
      ```python Single Agent
      from praisonaiagents import Agent, PraisonAIAgents

      # Create a simple agent
      summarise_agent = Agent(instructions="Summarise Photosynthesis")

      # Run the agent
      agents = PraisonAIAgents(agents=[summarise_agent])
      agents.start()
      ```

      ```python Multiple Agents
      from praisonaiagents import Agent, PraisonAIAgents

      # Create agents with specific roles
      diet_agent = Agent(
          instructions="Give me 5 healthy food recipes",
      )

      blog_agent = Agent(
          instructions="Write a blog post about the food recipes",
      )

      # Run multiple agents
      agents = PraisonAIAgents(agents=[diet_agent, blog_agent])
      agents.start()
      ```
    </CodeGroup>
      </Step>

      <Step title="Run Agents">
        Execute your script:
        ```bash
        python app.py
        ```

        You'll see:
        - Agent initialization
        - Task execution progress
        - Final results

        <Tip>
        You have successfully CreatedAI Agents and made them work for you!
        </Tip>
      </Step>
    </Steps>
  </Tab>
  <Tab title="No Code">
    <Steps>
      <Step title="Install Package">
        Install the No Code PraisonAI Package:
        ```bash
        pip install praisonaiagents
        ```
      </Step>

      <Step title="Set API Key">
        ```bash
        export OPENAI_API_KEY=your_openai_key
        ```
      </Step>

      <Step title="Create Config">
        Create `agents.yaml`:

    <CodeGroup>
      ```yaml Single Agent
      roles:
        summarise_agent:
          instructions: Summarise Photosynthesis
      ```

      ```yaml Multiple Agents
      roles:
        diet_agent:
          instructions: Give me 5 healthy food recipes
        blog_agent:
          instructions: Write a blog post about the food recipes
      ```
    </CodeGroup>

<Note>
You can automatically create `agents.yaml` using:
```bash
praisonai --init "your task description"
```
</Note>

      </Step>

      <Step title="Run Agents">
        Execute your config:
        ```bash
        praisonai agents.yaml
        ```
      </Step>
    </Steps>
  </Tab>
  <Tab title="JavaScript">
    <Steps>
      <Step title="Install Package">
        ```bash
        npm install praisonai
        ```
      </Step>
      <Step title="Set API Key">
        ```bash
        export OPENAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxx
        ```
      </Step>
      <Step title="Create File">
        Create `app.js` file

        ## Code Example

<CodeGroup>
```javascript Single Agent
const { Agent } = require('praisonai');
const agent = new Agent({ instructions: 'You are a helpful AI assistant' });
agent.start('Write a movie script about a robot in Mars');
```

```javascript Multi Agents
const { Agent, PraisonAIAgents } = require('praisonai');

const researchAgent = new Agent({ instructions: 'Research about AI' });
const summariseAgent = new Agent({ instructions: 'Summarise research agent\'s findings' });

const agents = new PraisonAIAgents({ agents: [researchAgent, summariseAgent] });
agents.start();
```
</CodeGroup>
      </Step>
      <Step title="Run Script">
        ```bash
        node app.js
        ```
      </Step>
    </Steps>
  </Tab>
  <Tab title="TypeScript">
    <Steps>
      <Step title="Install Package">
        <CodeGroup>
        ```bash npm
        npm install praisonai
        ```
        ```bash yarn
        yarn add praisonai
        ```
        </CodeGroup>
      </Step>
      <Step title="Set API Key">
        ```bash
        export OPENAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxx
        ```
      </Step>
      <Step title="Create File">
        Create `app.ts` file

        ## Code Example

<CodeGroup>
```javascript Single Agent
import { Agent } from 'praisonai';

const agent = new Agent({ 
  instructions: `You are a creative writer who writes short stories with emojis.`,
  name: "StoryWriter"
});

agent.start("Write a story about a time traveler")
```

```javascript Multi Agents
import { Agent, PraisonAIAgents } from 'praisonai';

const storyAgent = new Agent({
  instructions: "Generate a very short story (2-3 sentences) about artificial intelligence with emojis.",
  name: "StoryAgent"
});

const summaryAgent = new Agent({
  instructions: "Summarize the provided AI story in one sentence with emojis.",
  name: "SummaryAgent"
});

const agents = new PraisonAIAgents({
  agents: [storyAgent, summaryAgent]
});

agents.start()
```
</CodeGroup>
      </Step>
      <Step title="Run Script">
        ```bash
        npx ts-node app.ts
        ```
      </Step>
    </Steps>
  </Tab>
</Tabs>

## Playground

<iframe 
  id="codeExecutionFrame"
  src="https://code-execution-server-praisonai.replit.app/?code=import%20openai%0A%0Aclient%20%3D%20openai.OpenAI()%0Aresult%20%3D%20client.chat.completions.create(%0A%20%20%20%20model%3D%22gpt-3.5-turbo%22%2C%0A%20%20%20%20messages%3D%5B%0A%20%20%20%20%20%20%20%20%7B%22role%22%3A%20%22user%22%2C%20%22content%22%3A%20%22Hello%20World%22%7D%0A%20%20%20%20%5D%0A)%0A%0Aprint(result.choices%5B0%5D.message.content)" 
  width="100%" 
  height="600px" 
  frameborder="0"
  allow="clipboard-read; clipboard-write"
  scrolling="yes"
  onload="resizeIframe(this)"
></iframe>

## Key Features

<CardGroup cols={3}>
  <Card title="Autonomous Agents" icon="robot">
    Create intelligent agents that can:
    
    - Understand natural language instructions
    - Make decisions based on context
    - Execute complex tasks autonomously
  </Card>

  <Card title="Flexible Architecture" icon="cubes">
    Build with:
    
    - Modular components
    - Extensible tools
    - Customizable workflows
  </Card>

  <Card title="Advanced Capabilities" icon="wand-sparkles">
    Leverage:
    
    - Multi-agent collaboration
    - Memory and context management
    - Tool integration
  </Card>
</CardGroup>


  <Card title="Why Choose PraisonAI?" icon="stars">
    <CardGroup cols={2}>
## Developer First
Build with modern tools and frameworks you already love. Our SDK is designed to be intuitive and powerful.

## Production Ready
Enterprise-grade reliability with built-in security features and scalable architecture.

## Open Source
PraisonAI is open source and available on [GitHub](https://github.com/MervinPraison/PraisonAI).

## Low Code User Friendly
PraisonAI is designed to be easy to learn and use for non technical users.
    </CardGroup>
  </Card>

## Chat with One Agent

<Tabs>
<Tab title="Basic Agent">
<Steps>
  <Step title="Install PraisonAI">
    Get started with a simple pip install:
    ```bash
    pip install praisonaiagents
    ```
  </Step>
  <Step title="Initialize Your Agent">
    Create your first autonomous agent in just a few lines:
    ```python
    from praisonaiagents import Agent
    agent = Agent(instructions="Your are a helpful AI assistant")
    agent.chat("Write a movie script about a robot in Mars")
    ```
  </Step>
  <Step title="Build Amazing Things">
    Start building powerful AI applications with autonomous capabilities!
  </Step>
</Steps>
</Tab>

<Tab title="Agent with Tools">
<Steps>
  <Step title="Install PraisonAI">
    Get started with a simple pip install:
    ```bash
    pip install praisonaiagents duckduckgo_search
    ```
  </Step>
  <Step title="Initialize Your Agent">

    Create your first autonomous agent in just a few lines:
```python
from praisonaiagents import Agent, Tools
agent = Agent(instructions="Your are a helpful AI assistant", tools=[Tools.internet_search])
agent.chat("Write a movie script about a robot in Mars")
```
  </Step>
  <Step title="Build Amazing Things">
    Start building powerful AI applications with autonomous capabilities!
  </Step>
</Steps>
</Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card
    title="Installation"
    icon="download"
    href="/code/installation"
  >
    Complete installation guide and setup instructions
  </Card>
  <Card
    title="Quick Start"
    icon="play"
    href="/code/quickstart"
  >
    Build your first AI agent in minutes
  </Card>
</CardGroup>

<Tip>
  Join our community on [Discord](https://www.youtube.com/redirect?event=channel_description&redir_token=QUFFLUhqbUpiZE00YlF1MjB1LVNIeTFxTnV6MWRRc18wZ3xBQ3Jtc0ttQVZ0aFJ4RXRDanlBQU1Vd3lHU3BBcml3bzhoek1pTmlkZkFkWjlNVDBpRkxZd1dTOWhPc20xbHJOb1NibmNYeTEydklJT0pZOVJFQW93MmJOQXU0WkJNVzNsd29SZ3FBNFVwMTFGNThNSHBWVUhjSQ&q=https%3A%2F%2Fdiscord.gg%2FnNZu5gGT59) to connect with other developers and get help!
</Tip>