> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Guides

> Step-by-step guides for building with PraisonAI

Learn how to build AI agents with PraisonAI through practical, step-by-step guides.

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import Agent

agent = Agent(
    name="Assistant",
    instructions="You are a helpful assistant.",
)

agent.start("Hello! What can you help me with?")
```

The user starts with a guide that matches their goal, runs the sample agent, then extends it step by step.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
graph LR
    U[Input] --> A[Agent]
    A --> O[Output]

    classDef agent fill:#8B0000,color:#fff
    classDef tool fill:#189AB4,color:#fff

    class A agent
    class U,O tool
```

<CardGroup cols={2}>
  <Card title="Single Agent" icon="user" href="/docs/guides/single-agent">
    Build your first AI agent
  </Card>

  <Card title="Multi-Agent Systems" icon="users" href="/docs/guides/multi-agent">
    Orchestrate multiple agents working together
  </Card>

  <Card title="Workflows" icon="diagram-project" href="/docs/guides/workflows/routing">
    Create complex agent workflows
  </Card>

  <Card title="RAG & Knowledge" icon="database" href="/docs/guides/rag/knowledge-base">
    Add knowledge bases to your agents
  </Card>

  <Card title="Persistence" icon="floppy-disk" href="/docs/guides/persistence/overview">
    Save and resume agent sessions
  </Card>

  <Card title="Deployment" icon="cloud" href="/docs/guides/deployment/overview">
    Deploy agents to production
  </Card>
</CardGroup>

## Quick Start

<Steps>
  <Step title="Install PraisonAI">
    ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    pip install praisonaiagents
    export OPENAI_API_KEY=your_api_key
    ```
  </Step>

  <Step title="Create your first agent">
    ```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    from praisonaiagents import Agent

    agent = Agent(
        name="Assistant",
        instructions="You are a helpful assistant.",
    )

    agent.start("Hello! What can you help me with?")
    ```
  </Step>
</Steps>

## By Topic

### Agent Patterns

* [Single Agent](/docs/guides/single-agent) - Build a single AI agent
* [Multi-Agent Systems](/docs/guides/multi-agent) - Multiple agents working together

### Workflows

* [Routing Workflow](/docs/guides/workflows/routing) - Route tasks to specialized agents
* [Parallel Workflow](/docs/guides/workflows/parallel) - Run agents in parallel
* [Sequential Workflow](/docs/guides/workflows/sequential) - Chain agents sequentially
* [Orchestrator Pattern](/docs/guides/workflows/orchestrator) - Central orchestrator managing agents

### RAG & Knowledge

* [Knowledge Base Setup](/docs/guides/rag/knowledge-base) - Create and configure knowledge bases
* [Chunking Strategies](/docs/guides/rag/chunking) - Optimize document chunking
* [Retrieval Methods](/docs/guides/rag/retrieval) - Configure retrieval strategies

### Persistence

* [Overview](/docs/guides/persistence/overview) - Persistence concepts
* [Database Setup](/docs/guides/persistence/databases) - Configure database backends
* [Session Resume](/docs/guides/persistence/session-resume) - Resume interrupted sessions

### Deployment

* [Overview](/docs/guides/deployment/overview) - Deployment options
* [Docker](/docs/guides/deployment/docker) - Deploy with Docker

## Best Practices

<AccordionGroup>
  <Accordion title="Start with a single agent">
    Begin with one agent before building multi-agent systems. Get comfortable with instructions and tools first.
  </Accordion>

  <Accordion title="Use clear, specific instructions">
    Agent instructions should be specific and action-oriented. Vague instructions lead to inconsistent behavior.
  </Accordion>

  <Accordion title="Add tools incrementally">
    Add one tool at a time and verify each works before combining multiple tools in one agent.
  </Accordion>

  <Accordion title="Test with simple tasks first">
    Validate your agent with simple tasks before giving it complex, multi-step workflows.
  </Accordion>
</AccordionGroup>
