How teknobuddy/commentdmautomation works
This product lets an account owner configure per-reel comment automations in a dashboard, then processes Instagram comment webhooks to send a DM and public reply when a reel is active and either reply-to-all is enabled or a keyword matches. Configuration and refreshed tokens persist as JSON files. The graph distinguishes dashboard/API configuration, webhook decision stages, persistence, and Instagram API actions. The README documents privacy and data-deletion pages; their runtime links are not shown in the sampled source.
Main entry points: instagram.py DM and reply delivery · admin.py Reel admin API · webhook.py Comment webhook · main.py FastAPI application
Components 14
Dashboard and legal pages
- Automation dashboard
frontend/app/page.tsx - Privacy policy
frontend/app/privacy/page.tsx - Data deletion
frontend/app/data-deletion/page.tsx
Backend API and automation
- FastAPI application
backend/main.py - Reel admin API
backend/routers/admin.py - Comment webhook
backend/routers/webhook.py - Automation decision
backend/routers/webhook.py - Media and stats
backend/routers/admin.py
Persistent configuration
- Reel settings
backend/services/config_manager.py - Token persistence
backend/services/config_manager.py
Instagram integration
- DM and reply delivery
backend/services/instagram.py
Other components
- Account owner
- Instagram Graph API
- Instagram commenter
Connections 15
- Account owner → Automation dashboard: configures reels
README.md - Automation dashboard → Reel admin API: loads and updates
frontend/app/page.tsx - FastAPI application → Reel admin API: registers routes
backend/main.py - FastAPI application → Comment webhook: registers routes
backend/main.py - FastAPI application → DM and reply delivery: refreshes token
backend/main.py - Reel admin API → Media and stats: serves reel data
backend/routers/admin.py - Reel admin API → Reel settings: reads and updates
backend/routers/admin.py - Media and stats → DM and reply delivery: fetches account media
backend/routers/admin.py - Instagram commenter → Comment webhook: comments on reel
README.md - Comment webhook → Automation decision: parses comment
backend/routers/webhook.py - Automation decision → Reel settings: loads reel config
backend/routers/webhook.py - Automation decision → DM and reply delivery: schedules DM and reply
backend/routers/webhook.py - DM and reply delivery → Instagram Graph API: sends DM and reply
backend/services/instagram.py - DM and reply delivery → Token persistence: reads and saves token
backend/services/instagram.py - Instagram Graph API → Comment webhook: posts comment events
README.md