Automate Instagram Comment Responses with Google Sheets & CRM Tracking
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
šÆ Overview This n8n workflow template automates the process of monitoring Instagram comments and sending predefined responses based on specific comment keywords. It integrates Instagram's Graph API with Google Sheets to manage comment responses and maintains an interaction log for customer relationship management (CRM) purposes.
š§ Workflow Components The workflow consists of 9 main nodes organized into two primary sections:
š” Section 1: Webhook Verification ā Get Verification (Webhook node) š Respond to Verification Message (Respond to Webhook node)
š¤ Section 2: Auto Comment Response š¬ Insta Update (Webhook node) ā Check if update is of comment? (Switch node) š¤ Comment if of other user (If node) š Comment List (Google Sheets node) š¬ Send Message for Comment (HTTP Request node) š Add Interaction in Sheet (CRM) (Google Sheets node)
š ļø Prerequisites and Setup Requirements
- šµ Meta/Facebook Developer Setup
š± Create Facebook App
> š Action Items:
> - [ ] Navigate to Facebook Developers
> - [ ] Click "Create App" and select "Business" type
> - [ ] Configure the following products:
> - ā
Instagram Graph API
> - ā
Facebook Login for Business
> - ā
Webhooks
š Required Permissions
Configure the following permissions in your Meta app: | instagram_basic | š Read Instagram account profile info and media | instagram_manage_comments | š¬ Create, delete, and manage comments | instagram_manage_messages | š¤ Send and receive Instagram messages | pages_show_list | š Access connected Facebook pages
š« Access Token Generation > ā ļø Important Setup:+ > - [ ] Use Facebook's Graph API Explorer > - [ ] Generate a User Access Token with required permissions > - [ ] ā” Important: Tokens expire periodically and need refreshing
- š Webhook Configuration
š Setup Webhook URL > š Configuration Checklist: > - [ ] In Meta App Dashboard, navigate to Products ā Webhooks > - [ ] Subscribe to Instagram object > - [ ] Configure webhook URL: your-n8n-domain/webhook/instagram > - [ ] Set verification token (use "test" or create secure token) > - [ ] Select webhook fields: > - ā comments - For comment notifications > - ā messages - For DM notifications (if needed)
ā Webhook Verification Process The workflow handles Meta's webhook verification automatically: š” Meta sends GET request with hub.challenge parameter š Workflow responds with the challenge value to confirm subscription
- š Google Sheets Setup
Example - https://docs.google.com/spreadsheets/d/1ONPKJZOpQTSxbasVcCB7oBjbZcCyAm9gZ-UNPoXM21A/edit?usp=sharing
š Create Response Management Sheet Set up a Google Sheets document with the following structure:
š Sheet 1 - Comment Responses: | Column | Description | Example | |--------|-------------|---------| | š¬ Comment | Trigger keywords | "auto", "info", "help" | | š Message | Corresponding response message | "Thanks for your comment! We'll get back to you soon." |
š Sheet 2 - Interaction Log: | Column | Description | Purpose | |--------|-------------|---------| | ā° Time | Timestamp of interaction | Track when interactions occur | | š User Id | Instagram user ID | Identify unique users | | š¤ Username | Instagram username | Human-readable identification | | š Note | Additional notes or error messages | Debugging and analytics |
š§ Built By - akash@codescale.tech
Related Templates
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
AI Agent: Scrape, Summarize & Save Articles to Notion (Gemini, Browserless)
This n8n workflow automates the process of saving web articles or links shared in a chat conversation directly into a No...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments