workflows.fit
Back to n8n workflows
n8n templateFreeBy Shun Nakayama

Optimize Instagram hashtags with GPT-4o & real engagement data via Graph API

Instagram Hashtag Generator Workflow This workflow automatically generates optimal hashtags for your Instagram posts by analyzing captions and fetching real-time engagement data. Key Features 100% Official API & Free:...

Data & StorageProductivityDevelopmentCore NodesAILangchainManual TriggerSet
Loading interactive preview...

Template notes

Instagram Hashtag Generator Workflow

This workflow automatically generates optimal hashtags for your Instagram posts by analyzing captions and fetching real-time engagement data.

Key Features 100% Official API & Free: Uses ONLY the official Instagram Graph API. No expensive third-party tools or risky scraping methods are required. Safe & Reliable: Relying on the official API ensures compliance and long-term stability. Smart Caching: Includes a Google Sheets caching mechanism to maximize the value of the official API's rate limits (30 searches/7 days).

Workflow Overview

1. Caption Input: Set your caption manually or via a workflow trigger. 2. AI Suggestions: GPT-4o-mini analyzes the caption and suggests 10 relevant hashtags, balancing popular (big words) and niche keywords. 3. Official API Search (Instagram Graph API): - Fetches Hashtag IDs using the ighashtagsearch endpoint. - Retrieves engagement metrics (Average Likes, Average Comments) using the ID. 4. Selection & Sorting: - Sorts candidates by engagement metrics. - Selects the top 5 most effective hashtags that balance relevance and engagement. 5. Output: Returns the final list of hashtags as text.

Setup Steps

1. Import to n8n: - Copy the content of workflowhashtaggenerator.json and paste it into your n8n canvas, or import the file directly.

2. Credentials: - OpenAI account: Connect your OpenAI credentials. - Facebook Graph account: Connect your Facebook Graph API credentials.