Luca Sacchi Ricciardi
3d24dfdeaf
feat: complete Sprint 2 with Telegram notifications integration
Add Telegram Bot notification node to n8n workflow:
New Features:
- Telegram notification node for critical severity logs
- Italian message template with emoji and MarkdownV2 formatting
- Smart routing: Telegram only for critical logs
- Error handling: continueOnFail prevents workflow interruption
- Environment-based configuration (TELEGRAM_CHAT_ID)
Message Template Includes:
- 🚨 Alert header with severity
- 📍 Server hostname identification
- 📝 AI-generated problem summary
- 💡 Suggested bash command in code block
- ⚠️ Confirmation required flag
- 📝 Additional notes from AI
- 📊 AI processing status
- 🤖 Model used (openai/gpt-4o-mini)
- ⏰ Localized Italian timestamp
Workflow Flow:
Webhook → HMAC → Validation → PostgreSQL → OpenRouter → Critical? → Telegram → Response
↓ FALSE
Success Response
Configuration Required:
1. Create Telegram Bot via @BotFather
2. Get TELEGRAM_BOT_TOKEN
3. Get TELEGRAM_CHAT_ID via @userinfobot
4. Configure credentials in n8n UI
5. Set TELEGRAM_CHAT_ID environment variable
Documentation:
- docs/telegram_setup.md: Setup instructions
- .env.example: Environment variables template
- .gitignore: Protect sensitive telegram_setup.md
- docs/prd.md: Updated Sprint 2 completion status
Sprint 2 Complete:
✅ Secure log ingestion (bash)
✅ n8n webhook workflow
✅ OpenRouter AI integration
✅ PostgreSQL storage
✅ HMAC authentication
✅ Telegram notifications
Refs: docs/specs/ai_pipeline.md, docs/specs/bash_ingestion_secure.md
2026-04-02 19:47:57 +02:00
..
2026-04-02 18:21:21 +02:00
2026-04-02 17:25:29 +02:00
2026-04-02 19:31:04 +02:00
2026-04-02 17:27:47 +02:00
2026-04-02 19:47:57 +02:00
2026-04-02 15:11:24 +02:00
2026-04-02 16:40:56 +02:00
2026-04-02 17:25:29 +02:00