How tspeterkim/insta-chat works
insta-chat lets a user configure keyword-based Instagram comment replies through a Google Sheets-backed web app. The documented workflow is to log in, view Instagram posts, create automation rows, then have a periodically polling Python bot read those rows, find matching comments, and send replies. The bot’s source supports its Sheets and Graph API interactions; frontend details and the UI-to-Sheets wiring are documented in the README, not shown in source excerpts.
Main entry points: bot.py Polling bot · index.html Automation web app · Code.gs Apps Script · Sidebar.html Posts sidebar
Components 13
Automation setup
- Automation web app
index.html - Facebook Login button
index.html - Posts sidebar
Sidebar.html - Apps Script
Code.gs - Automation spreadsheet
Reply automation
- Polling bot
bot.py - Token exchange
bot.py - Comment scanning
bot.py - Keyword matching
bot.py - Reply sending
bot.py
External services
- Facebook / Instagram Graph API
- Google Sheets service
Other components
- Account owner
Connections 15
- Account owner → Automation web app: uses
README.md - Automation web app → Facebook Login button: embeds
README.md - Automation web app → Apps Script: uses
README.md - Apps Script → Posts sidebar: populates
README.md - Posts sidebar → Facebook / Instagram Graph API: loads posts
README.md - Account owner → Automation spreadsheet: creates rules
README.md - Apps Script → Automation spreadsheet: backs app
README.md - Polling bot → Google Sheets service: reads config
bot.py - Polling bot → Token exchange: gets token
bot.py - Polling bot → Comment scanning: scans rules
bot.py - Token exchange → Facebook / Instagram Graph API: exchanges token
bot.py - Comment scanning → Facebook / Instagram Graph API: fetches comments
bot.py - Comment scanning → Keyword matching: checks comments
bot.py - Keyword matching → Reply sending: sends matches
bot.py - Reply sending → Facebook / Instagram Graph API: posts replies
bot.py