Skip to main content

Automated Instagram comment response with DMs & Google Sheets tracking

Workflow preview

Workflow preview
100%
Automated Instagram comment response with DMs & Google Sheets 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

Description This automation template is designed for Instagram marketers, influencers, and businesses looking to supercharge their In...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.scheduletrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Juan Carlos Cavero Gracia.

Original n8n.io source

1.1 Workflow description

Title
Automated Instagram comment response with DMs & Google Sheets tracking
Workflow name
Automated Instagram comment response with DMs & Google Sheets tracking

Description

This automation template is designed for Instagram marketers, influencers, and businesses looking to supercharge their Instagram engagement strategy. It automatically monitors Instagram post comments and sends personalized direct messages (DMs) to new commenters, while maintaining a smart tracking system to prevent duplicate messages. The workflow runs continuously, checking for new comments every 15 minutes and responding instantly to maintain high engagement rates.

Note: This workflow uses the upload-post.com API for Instagram interactions and Google Sheets for contact tracking. The workflow is configured to monitor a specific Instagram post

Who Is This For?

  • Instagram Marketers & Influencers: Automatically engage with every commenter by sending personalized DMs with valuable content, links, or offers.
  • E-commerce Businesses: Convert Instagram comments into sales opportunities by instantly sending product links, discount codes, or catalog information via DM.
  • Content Creators & Coaches: Build deeper relationships with your audience by automatically reaching out to commenters with additional resources, course links, or exclusive content.
  • Social Media Managers: Scale client engagement without manual monitoring, ensuring no potential lead or follower interaction goes unnoticed.

What Problem Does This Workflow Solve?

Manually monitoring Instagram comments and sending follow-up DMs is time-consuming and often leads to missed opportunities. This workflow addresses these challenges by:

  • Automated Comment Monitoring: Continuously checks for new comments on your specified Instagram post every 15 minutes.
  • Smart Duplicate Prevention: Uses Google Sheets to track already contacted users, preventing spam and maintaining professional communication.
  • Instant Response System: Sends personalized DMs immediately when new comments are detected, maximizing engagement while the interaction is fresh.
  • Scalable Engagement: Handles multiple commenters simultaneously without manual intervention, perfect for viral posts or high-engagement content.
  • Comprehensive Tracking: Maintains detailed logs of all interactions including timestamps, usernames, and message content for analytics and follow-up.

How It Works

  1. Post Configuration: Set your Instagram post URL, reply message, and profile username in the configuration node.
  2. Comment Monitoring: The workflow fetches all comments from your specified Instagram post using the upload-post.com API.
  3. Smart Filtering: Compares new comments against your Google Sheets database to identify users who haven't been contacted yet.
  4. Automated DM Sending: Sends personalized direct messages to new commenters with your configured message.
  5. Contact Tracking: Records each successful interaction in Google Sheets with comment ID, username, message sent, timestamp, and post URL.
  6. Continuous Monitoring: Automatically repeats the process every 15 minutes using the built-in scheduler.

Setup

  1. Upload-Post API Credentials: Create an account at upload-post an API for social media, connect your Instagram account and add your API credentials to the HTTP request nodes.
  2. Google Sheets Setup:
    • Create a Google Sheet with columns: comment_id, username, message_sent, timestamp, post_url
    • Connect your Google account to the Google Sheets nodes
    • Update the document ID in the "Read Contacted Users" and "Record Contacted User" nodes
  3. Instagram Post Configuration: In the "Configure Post & Message" node, update:
    • postUrl: Your Instagram post URL to monitor
    • replyMessage: The DM message to send to commenters
    • profileUsername: Your Upload-post profile username
  4. Monitoring Schedule: The workflow is set to run every 15 minutes. You can adjust this in the "Schedule Trigger" node based on your needs.

Requirements

  • Accounts: n8n, upload-post.com, Google (for Sheets access), Instagram business account.
  • API Keys & Credentials: Upload-post.com API token, Google Sheets OAuth2 credentials.
  • Instagram Setup: Business/Creator account with API access through upload-post.com.

Features

  • Duplicate Prevention: Advanced comment ID tracking prevents sending multiple DMs to the same user
  • Error Handling: Robust error handling for API failures and edge cases
  • Detailed Logging: Comprehensive console logging for debugging and monitoring
  • Flexible Configuration: Easy to modify for different posts, messages, and monitoring intervals
  • Success Tracking: Monitors both successful and failed DM attempts for analytics

Use this template to transform your Instagram engagement strategy, automatically converting every comment into a potential lead or deeper connection while maintaining professional communication standards.

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 - Start Monitoring

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

Block 2 - Configure Post & Message

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 3 - Read Contacted Users

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

Block 4 - Filter New Comments

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

Block 5 - Check If Has New Comments

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

Block 6 - Send Reply to Comment

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

Block 7 - Check Reply Success

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

Block 8 - Record Contacted User

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

Block 9 - Log Failed Reply

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

Block 10 - Generate Summary

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

Block 11 - Get Post Comments

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

Block 12 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

3. Summary Table

Workflow Automated Instagram comment response with DMs & Google Sheets tracking
Complexity intermediate
Nodes 12
Categories Social Media
Author Juan Carlos Cavero Gracia
Published 13 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5941/5941.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 Automated Instagram comment response with DMs & Google Sheets tracking do?

Description This automation template is designed for Instagram marketers, influencers, and businesses looking to supercharge their In...

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.