Skip to main content

Revolver AI Bot

Project description

Tests codecov

🤖 Revolver AI Bot

Agent IA full-stack pour ingestion de briefs, veille stratégique, analyse automatique et génération de livrables professionnels (PDF, PPTX, API). Compatible Slack, CLI et FastAPI.


🚀 Installation rapide

1. Cloner le dépôt

git clone https://github.com/Namtar-afk/revolver-ai-bot.git
cd revolver-ai-bot

2. Environnement virtuel

python3 -m venv .venv
source .venv/bin/activate

3. Installer les dépendances

pip install -r requirements.txt

4. Clés API et config

cp config.example.py config.py
# Puis éditez `config.py` avec vos clés (OpenAI, Slack, Google, SerpAPI...)

🧠 Fonctionnalités principales

  • ✨ Parsing intelligent de briefs PDF → JSON valide
  • 📊 Analyse automatisée via LLM (insights, KPIs, hypothèses…)
  • 📈 Agrégation et clustering de veille (RSS, Google, TikTok…)
  • 🗞️ Génération de slides .pptx (Deck complet)
  • 🧪 API REST (FastAPI) pour intégration facile
  • 💬 Mode Slack bot interactif

🗂 Structure du projet

revolver-ai-bot/
├── bot/                ← Slack handler + veille + analyse
├── parser/             ← Extraction et NLP des briefs PDF
├── pptx_generator/     ← Génération de PowerPoint
├── prompts/            ← Templates markdown pour GPT
├── reco/               ← Recommandation stratégique (LLM + logique)
├── schema/             ← JSON Schema pour validation
├── api/                ← FastAPI server (REST endpoints)
├── tests/              ← Unitaires, intégration et snapshots
├── run_parser.py       ← CLI : PDF → JSON/PPTX
├── run_monitor.py      ← CLI : veille
└── README.md

🧪 Tests unitaires

export PYTHONPATH=$(pwd)
pytest -v

Couverture : extraction, parsing, génération, intégration, Slack.

🖥 Utilisation CLI

1. Parser un brief

python run_parser.py

2. Générer un rapport complet (.pptx)

python run_parser.py --report output.pptx

3. Lancer la veille

python run_monitor.py --out data/veille.csv

🌐 API (FastAPI)

Démarrer le serveur :

uvicorn api.main:app --reload --port 8001

→ Accès live : http://127.0.0.1:8001/docs

💬 Slack bot

Démarrer :

export SLACK_BOT_TOKEN="xoxb-..."
export SLACK_APP_TOKEN="xapp-..."
python bot/slack_handler.py

Commandes supportées :

  • !veille — récupère et affiche la veille
  • !analyse — affiche les clusters de tendance
  • !report — génère un rapport PPT depuis Slack

Mode debug :

python bot/slack_handler.py --simulate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

revolver_ai_bot-0.2.7.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

revolver_ai_bot-0.2.7-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file revolver_ai_bot-0.2.7.tar.gz.

File metadata

  • Download URL: revolver_ai_bot-0.2.7.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for revolver_ai_bot-0.2.7.tar.gz
Algorithm Hash digest
SHA256 033a1782181ef1cbb66e795848cada3d9ff01673c81317f3e9f41fbd587eff99
MD5 341b5c461dba5ddba15359a638872df9
BLAKE2b-256 bd4f86ab6d22aed9393573c0434c20c08ebb7adad3e7f7a3f6b270426277c1fa

See more details on using hashes here.

File details

Details for the file revolver_ai_bot-0.2.7-py3-none-any.whl.

File metadata

File hashes

Hashes for revolver_ai_bot-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a9fc3c8ff6ec573064b001fee17686807752e77ccc5cb8b0b1e9334376ba1d2c
MD5 3266d4cbe90dc9963740cb0e00b3b024
BLAKE2b-256 8e64ffef2a2bd240ae19aaeb80986b7243b92ff711c7ca818a57caef757715e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page