Prometheus Alert → AI → Telegram bot that analyzes alert groups and generates human-readable summaries.
- Clone the repository:
git clone https://github.com/punk-link/alert-ai.git
cd alert-ai- Create a
.envfile with required variables:
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHANNEL_ID=@channel_name_or_id
ANTHROPIC_API_KEY=your_anthropic_key- Install dependencies:
pip install -r requirements.txtuvicorn main:app --reload- FastAPI
- Anthropic API
- Python-dotenv
- aiogram
- pydantic
- AI model:
claude-sonnet-4-6(configurable viaANTHROPIC_MODELenv var) - Ensure your Anthropic API key has sufficient quota
- Telegram channel must have the bot added as an admin