Templates / Find top Instagram hashtag posts and AI-drafted comments with Google Sheets

Find top Instagram hashtag posts and AI-drafted comments with Google Sheets

Ready for 3.0

by Javed Iqbal ✓ · 0 views · created 2026-10-08 · Social Media, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 12 nodes and runs on a schedule (every day at 09:00). Along the way it connects OpenAI Chat Model and Google Sheets. It also calls graph.facebook.com over HTTP.

How it runs

Trigger: On a schedule (every day at 09:00).

  1. Set Instagram Configurations (Edit Fields (Set)): sets 5 fields: igUserId, hashtags, postsPerHashtag…
  2. Split Hashtag List (Code): runs custom JavaScript code
  3. Fetch Hashtag ID (HTTP Request): calls graph.facebook.com
  4. Fetch Top Posts from IG (HTTP Request): calls an HTTP API
  5. Flatten and Tag Posts (Code): runs custom JavaScript code
  6. Draft Comments with AI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI GPT-4 Chat; output parser: Define Comment Structure
  7. Build Digest for Sheets (Code): runs custom JavaScript code
  8. Filter: keeps only the items that match a condition
  9. Add to Google Sheets Digest (Google Sheets): append

Services it uses

OpenAI Chat ModelGoogle Sheets

HTTP calls to: graph.facebook.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Quick overview This workflow runs daily to fetch top Instagram hashtag posts via the Meta (Facebook) Graph API, uses OpenAI to score relevance and draft comment options, and appends high-scoring posts to a Google Sheets review digest. How it works 1. Runs…

Excerpt from Javed Iqbal's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.