A WhatsApp-based content generation and social media scheduling service built with FastAPI.
- WhatsApp interaction for creating and scheduling social media content
- AI-generated captions using OpenAI
- Media handling (upload or search for stock images/videos)
- Multi-platform publishing (Instagram, LinkedIn, TikTok)
- Content scheduling and automated posting
- Python 3.12+
- WhatsApp Business API credentials
- API keys for OpenAI and media services (Pexels, Unsplash, Pixabay)
# Clone the repository
git clone https://github.com/your-username/elevate2ai.git
cd elevate2ai
# Set up environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies with uv
uv sync
python run.py
Server runs at http://127.0.0.1:8000
Users interact with the bot through WhatsApp:
- Start conversation - User sends a greeting
- Content selection - Choose content type
- Platform selection - Select target platforms
- Content creation - Input or generate captions
- Media selection - Upload or search for media
- Scheduling - Set post date/time
- Publication - Confirm and post to platforms
This project uses uv
for dependency management:
# Add packages
uv add package-name
# Remove packages
uv remove package-name
# Sync dependencies
uv sync
uv run -m pytest
- Expose your local server (using ngrok or similar)
- Set webhook URL in WhatsApp Business dashboard:
https://your-domain.com/webhook
- Use
WHATSAPP_VERIFY_TOKEN
for verification
When the app is running:
- Swagger UI: http://127.0.0.1:8000/docs
- ReDoc: http://127.0.0.1:8000/redoc
MIT License