Skip to main content

Automate Instagram comment responses with Google Sheets & CRM tracking

Workflow preview

Workflow preview
100%
Automate Instagram comment responses with Google Sheets & CRM tracking preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 an...

Best for

  • Social Media automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote, n8n-nodes-base.switch, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Akash Kankariya.

Original n8n.io source

1.1 Workflow description

Title
Automate Instagram comment responses with Google Sheets & CRM tracking
Workflow name
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

1. πŸ”΅ 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

2. 🌐 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

3. πŸ“Š 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 - [email protected]

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Insta Update

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 2 - Send Message for Comment

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Comment List

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 4 - Get Verification

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 5 - Respond to Verfication Message

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 6 - Add Interation in Sheet (CRM)

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Check if update is of comment?

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 10 - Comment if of other user

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automate Instagram comment responses with Google Sheets & CRM tracking
Complexity intermediate
Nodes 11
Categories Social Media
Author Akash Kankariya
Published 20 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6205/6205.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate Instagram comment responses with Google Sheets & CRM tracking do?

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 an...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media use case.