Latenode

Automatically respond to new Instagram comments with personalized messages

This template runs on a schedule, lists recent media and comments with Instagram for Business, and skips comments from your own account plus threads you already answered.

JavaScript fills a short reply with the commenter's username and posts it through the Instagram Graph API. Connect Instagram for Business to list comments. Put the Instagram access token in the JavaScript node that posts the reply.

Updated Sep 16, 2026Est. run: 10sEst. cost: $0.0006
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Checks Instagram comments on a schedule and replies on the thread
  • Lists comments with Instagram for Business
  • Posts the reply from JavaScript through the Instagram Graph API
  • Skips your own comments and threads you already answered

How it works

1
Trigger

Run on a schedule

The scenario starts on the cadence you set, for example every 15 minutes.

2
Action

List new comments

Instagram for Business lists recent media, then lists comments on those posts.

3
Logic

Skip self and already answered

JavaScript drops comments from your account and comments that already have a reply from you.

4
Action

Post the reply

JavaScript sends a short personalized reply through the Instagram Graph API. Put the Instagram access token in that JavaScript node.

Setup guide

1

Connect Instagram for Business

Add an Instagram for Business connection with access to the account whose comments you want to list.

2

Set the schedule

Add a schedule, for example every 15 minutes.

3

Store the Graph API token

Add a JavaScript node that posts the reply through the Instagram Graph API. Put the Instagram access token in that JavaScript node. Skip your own user id and comments that already have your reply.

4

Write the reply text

In JavaScript, fill a short template with the commenter's username. Keep the tone on-brand and test on one post first.

Requirements

An Instagram for Business connection that can list media and comments
An Instagram Graph API access token stored in the JavaScript node that posts replies
A schedule

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.

More templates

You might also like

Browse all templates →

Automatically like fresh Instagram posts with AI-powered targeting

This template keeps a light Instagram engagement loop. A schedule asks ChatGPT for hashtags. PhantomBuster fetches recent posts for those tags. JavaScript skips URLs already stored in SharePoint, then PhantomBuster likes one remaining post. SharePoint saves that URL so the next run does not repeat it. Connect SharePoint and PhantomBuster. Put the PhantomBuster API key on the PhantomBuster connection.

58s$0.0037

Automate your sales outreach with Apify, GPT-4o, and WhatsApp

This template starts when you add a prospect URL to Google Sheets. Apify scrapes public contact details. JavaScript cleans name, company, and phone. ChatGPT writes a short outreach script. WhatsApp Business Cloud sends an approved template to that number, then Google Sheets logs the send. Connect Google Sheets, Apify, and WhatsApp Business Cloud. Put the Apify API key on the Apify connection. ChatGPT is a Latenode AI step.

49s$0.0031

Automatically sync TikTok lead data to a Google Sheets spreadsheet

This template receives TikTok Lead Generation form submits on a Latenode webhook, maps name, email, phone, and custom answers in JavaScript, and appends a row in Google Sheets. If the webhook only includes a lead id, the same JavaScript node loads the full lead from the TikTok Marketing API with your token stored in that node. Connect Google Sheets, then point the TikTok form webhook at the Latenode URL. Add a new worksheet when you want each campaign on its own tab.

7s$0.0004