AI-powered Telegram bot for Amazon reviews & sales listings.
1.4K
An intelligent AI agent that generates detailed and professional Amazon product reviews and sales listings from product links. Powered by OpenAI and Google AI models with advanced web scraping and content analysis capabilities.
Clone the repository and enter the directory:
git clone https://github.com/merendamattia/amazon-ai-agent.git
cd amazon-ai-agent
Create and activate a Python virtual environment:
conda create --name amazon-ai-agent-env python=3.11.13
conda activate amazon-ai-agent-env
Or using venv:
python3 -m venv venv
source venv/bin/activate
Install dependencies:
python -m pip install --upgrade pip
pip install -r requirements.txt
Configure environment variables:
cp .env.example .env
# Edit .env with your preferred AI provider API key
For Google (default provider):
GOOGLE_API_KEY=your_api_key_here
GOOGLE_MODEL=gemini-2.5-flash
TELEGRAM_BOT_TOKEN=your_telegram_token_here # Optional
For OpenAI:
OPENAI_API_KEY=your_api_key_here
OPENAI_MODEL=gpt-4o-mini
TELEGRAM_BOT_TOKEN=your_telegram_token_here # Optional
# Generate a review using default provider (Google)
python app.py https://www.amazon.com/your-product-link
# Generate a sales listing
python app.py --type listing https://www.amazon.com/your-product-link
# Use OpenAI provider explicitly
python app.py --provider openai https://www.amazon.com/your-product-link
# Generate listing with OpenAI
python app.py --type listing --provider openai https://www.amazon.com/your-product-link
Supported providers:
google (default) - Uses Google's Gemini modelsopenai - Uses OpenAI's GPT modelsQuick start:
# 1. Update .env with TELEGRAM_BOT_TOKEN and your preferred provider credentials
# 2. Run the bot with default provider (Google)
python telegram_bot.py
# Or specify a different provider
python telegram_bot.py --provider openai
Then open Telegram, find your bot, and start using it!
Bot Features:
Telegram Bot Mode:
docker build -t amazon-ai-agent:local .
docker run --env-file .env --restart unless-stopped amazon-ai-agent:local
Docker Compose (easiest):
# Run Telegram Bot
docker compose up
We welcome contributions! Please see CONTRIBUTING.md for:
"API key not found in .env"
.env file exists in the project root directory"Unsupported provider" error
openai or google.env file"Connection timeout"
"Rate limit exceeded"
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
For issues, feature requests, or questions:
Content type
Image
Digest
sha256:322dc9380…
Size
188.6 MB
Last updated
9 months ago
docker pull merendamattia/amazon-ai-agent