# 🧲 AI Competitor Intelligence Agent Team

### 🎓 FREE Step-by-Step Tutorial 
**👉 [Click here to follow our complete step-by-step tutorial](https://www.theunwindai.com/p/build-an-ai-competitor-intelligence-agent-team) and learn how to build this from scratch with detailed code walkthroughs, explanations, and best practices.**


The AI Competitor Intelligence Agent Team is a powerful competitor analysis tool powered by Firecrawl and Agno's AI Agent framework. This app helps businesses analyze their competitors by extracting structured data from competitor websites and generating actionable insights using AI.

## Features

- **Multi-Agent System**
    - **Firecrawl Agent**: Specializes in crawling and summarizing competitor websites
    - **Analysis Agent**: Generates detailed competitive analysis reports
    - **Comparison Agent**: Creates structured comparisons between competitors

- **Competitor Discovery**:
  - Finds similar companies using URL matching with Exa AI 
  - Discovers competitors based on business descriptions
  - Automatically extracts relevant competitor URLs

- **Comprehensive Analysis**:
  - Provides structured analysis reports with:
    - Market gaps and opportunities
    - Competitor weaknesses
    - Recommended features
    - Pricing strategies
    - Growth opportunities
    - Actionable recommendations

- **Interactive Analysis**: Users can input either their company URL or description for analysis

## Requirements

The application requires the following Python libraries:

- `agno`
- `exa-py`
- `streamlit`
- `pandas`
- `firecrawl-py`

You'll also need API keys for:
- OpenAI
- Firecrawl
- Exa

## How to Run

Follow these steps to set up and run the application:

1. **Clone the Repository**:
   ```bash
   git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git
   cd advanced_ai_agents/multi_agent_apps/agent_teams/ai_competitor_intelligence_agent_team
   ```

2. **Install the dependencies**:
    ```bash
    pip install -r requirements.txt
    ```

3. **Set up your API keys**:
    - Get an OpenAI API key from: https://platform.openai.com/api-keys
    - Get a Firecrawl API key from: [Firecrawl website](https://www.firecrawl.dev/app/api-keys)
    - Get an Exa API key from: [Exa website](https://dashboard.exa.ai/api-keys)

4. **Run the Streamlit app**:
    ```bash
    streamlit run ai_competitor_analyser.py
    ```

## Usage

1. Enter your API keys in the sidebar
2. Input either:
   - Your company's website URL
   - A description of your company
3. Click "Analyze Competitors" to generate:
   - Competitor comparison table
   - Detailed analysis report
   - Strategic recommendations
