A WhatsApp bot that automatically sends daily Sabbath School lesson summaries to a WhatsApp group.
- 🔍 Scrapes lessons from Sabbath School website (91 days/quarter)
- 🤖 AI-powered summaries using DeepSeek API
- 📱 WhatsApp integration via GREEN-API (free tier)
- ⏰ Scheduled delivery - sends lessons automatically each morning
- 🖥️ Web dashboard - manage lessons, edit summaries, manual send
git clone https://github.com/Ideas-Net-Studio/sabbath-school-bot.git
cd sabbath-school-bot
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtCopy .env.example to .env and fill in:
DEEPSEEK_API_KEY=your_deepseek_api_key
# GREEN-API (free at green-api.com)
GREEN_API_INSTANCE_ID=your_instance_id
GREEN_API_TOKEN=your_api_token
GREEN_API_GROUP_ID=your_group_id- Sign up at green-api.com (free Developer plan)
- Create an instance and scan QR code on their portal
- Copy Instance ID and API Token to
.env - Get group ID:
python -c "from whatsapp_bot import get_groups; get_groups()" - Add group ID to
.env
python app.py- Fetch Lessons: Enter quarterly URL (e.g.,
https://sabbath-school.adventech.io/pt/2025-02) and click Fetch - Review: Check the generated summaries on the dashboard
- Edit: Click Edit on any lesson to modify the summary
- Send: Click Send to manually post to WhatsApp, or let the scheduler do it automatically
├── app.py # Flask web application
├── database.py # SQLAlchemy models
├── scraper.py # Website scraper (Selenium)
├── summarizer.py # DeepSeek AI summarization
├── scheduler.py # Daily message scheduler
├── job_scraper.py # Background job runner
├── whatsapp_bot.py # GREEN-API WhatsApp integration
├── templates/ # HTML templates
├── static/ # CSS & JavaScript
└── instance/ # SQLite database
docker compose up --buildMIT