Installation

The Company Research & Analysis Agent can be used in two ways:

  1. Through the Apify platform (no installation required)
  2. Running locally using Docker

Using Apify Platform

No installation is required. Simply:

  1. Visit Apify Console
  2. Search for “Company Research & Analysis Agent”
  3. Click “Try for Free” or “Use with Custom Data”

Running Locally

Prerequisites

Steps

  1. Clone the repository:
git clone https://github.com/pratik-dani/company-research.git
cd company-research
  1. Build the Docker image:
docker build -t company-research-agent .
  1. Create a .env file with your API keys:
cp .env.example .env
# Edit .env with your API keys
  1. Run the container:
docker run -it --env-file .env company-research-agent

Environment Variables

The following environment variables are required:

APIFY_TOKEN
string
required

Your Apify API token

OPENAI_API_KEY
string
required

OpenAI API key for report generation

Verifying Installation

To verify your installation:

  1. Run a test query:
docker run -it --env-file .env company-research-agent --domain apify.com
  1. Check the output:
  • Results should appear in the apify_storage directory
  • No error messages should be present
  • The report should contain company information

Troubleshooting

Common issues and solutions:

Docker Build Fails

  • Ensure Docker is running
  • Check internet connection
  • Verify Dockerfile syntax

Missing API Keys

  • Copy .env.example to .env
  • Add required API keys
  • Ensure keys have correct permissions

Memory Issues

  • Increase Docker memory limit
  • Check available system resources

For production use, we recommend using the Apify platform which provides automatic scaling, monitoring, and proxy management.