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/agents/research.mdx
---
title: "Research Agent"
sidebarTitle: "Research"
description: "Learn how to create AI agents for conducting comprehensive research and analysis."
icon: "magnifying-glass-chart"
---

```mermaid
flowchart LR
    In[Research Query] --> Search[Web Search]
    Search --> Analyzer[Content Analyzer]
    Analyzer --> Synthesizer[Information Synthesizer]
    Synthesizer --> Out[Research Report]
    
    style In fill:#8B0000,color:#fff
    style Search fill:#2E8B57,color:#fff
    style Analyzer fill:#2E8B57,color:#fff
    style Synthesizer fill:#2E8B57,color:#fff
    style Out fill:#8B0000,color:#fff
```

A workflow demonstrating how the Research Agent can gather, analyze, and synthesize information from various sources.

## Quick Start

<Steps>
    <Step title="Install Package">
        First, install the PraisonAI Agents package:
        ```bash
        pip install praisonaiagents
        ```
    </Step>

    <Step title="Set API Key">
        Set your OpenAI API key as an environment variable:
        ```bash
        export OPENAI_API_KEY=your_api_key_here
        ```
    </Step>

    <Step title="Create Script">
        Create a new file `research_assistant.py`:
        ```python
        from praisonaiagents import Agent, Tools
        from praisonaiagents.tools import duckduckgo

        # Create Research Agent
        research_agent = Agent(
            name="ResearchAssistant",
            role="Research Specialist",
            goal="Conduct comprehensive research and analysis",
            instructions="You are a Research Agent",
            tools=[duckduckgo]
        )

        # Conduct research
        response = research_agent.start(
            "Research about AI developments in 2024"
        )
        
        # Save research findings
        with open('research_report.md', 'w') as f:
            f.write(response)
        ```
    </Step>
</Steps>

## Understanding Research Process

The Research Agent employs a systematic approach to information gathering and analysis:

1. **Web Search**: Uses DuckDuckGo to find relevant sources
2. **Content Analysis**: Evaluates source credibility and relevance
3. **Information Synthesis**: Combines findings into coherent insights
4. **Report Generation**: Creates structured research reports

## Features

<CardGroup cols={2}>
  <Card title="Web Research" icon="globe">
    Comprehensive online information gathering.
  </Card>
  <Card title="Content Analysis" icon="microscope">
    In-depth evaluation of sources.
  </Card>
  <Card title="Information Synthesis" icon="layer-group">
    Integration of multiple sources.
  </Card>
  <Card title="Report Generation" icon="file-lines">
    Structured research documentation.
  </Card>
</CardGroup>

## Example Usage

```python
from praisonaiagents import Agent, Tools
from praisonaiagents.tools import duckduckgo

agent = Agent(instructions="You are a Research Agent", tools=[duckduckgo])
agent.start("Research about AI 2024")
```

## Next Steps

- Learn about [Prompt Chaining](/features/promptchaining) for complex research projects
- Explore [Evaluator Optimizer](/features/evaluator-optimiser) for improving research quality
- Check out the [Data Analyst Agent](/agents/data-analyst) for data-driven research