Skip to main content

Find Instagram collaboration leads using Apify scraping and GPT-4o evaluation

Workflow preview

Workflow preview
100%
Find Instagram collaboration leads using Apify scraping and GPT-4o evaluation 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 no code n8n workflow finds recent Instagram posts by hashtag, scrapes profile data, and uses an AI agent to evaluate whether each account is a good collaboration lead. The workflow filters bas...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Find Instagram collaboration leads using Apify scraping and GPT-4o evaluation
Workflow name
Find Instagram collaboration leads using Apify scraping and GPT-4o evaluation

This no-code n8n workflow finds recent Instagram posts by hashtag, scrapes profile data, and uses an AI agent to evaluate whether each account is a good collaboration lead. The workflow filters based on the number of followers and the content of their bio, and outputs structured reasoning for outreach decisions.

Perfect for creators, marketers, or business developers looking to automate influencer or community partnership prospecting—especially in niche ecosystems like n8n.


✅ Key Features

  • 🔍 Hashtag Discovery: Finds recent Instagram posts from a specified hashtag (e.g., #n8n)
  • 👤 Account Scraping: Retrieves profile details such as follower count and biography
  • 🧠 AI Evaluation: Uses OpenAI and LangChain to determine if the profile is a good fit for outreach
  • 📦 Structured Output: Returns a JSON object with "Yes/No" lead status and reasoning
  • 🛠️ Manual Execution: Run on demand using the manual trigger

🧰 What You'll Need

Tool / API Purpose Setup Steps
Apify Account To access Instagram scraping actors Create account → Generate API Token → Use in httpQueryAuth credential in n8n
OpenAI API Key To power the AI decision-making agent Sign up at OpenAI → Create API key → Paste into OpenAI credential in n8n
LangChain Plugin for n8n AI Orchestration with System Message Install LangChain nodes from Community Nodes (already installed in this workflow)

🔧 Step-by-Step Setup

1️⃣ Manual Trigger
  • Node: When clicking ‘Execute workflow’
  • Use: Allows you to run the workflow manually while testing.
2️⃣ Define Hashtag
  • Node: Create Search Term
  • Value: Sets "n8n" as the default Instagram hashtag to scan.
  • You can edit this to any other hashtag you'd like.
3️⃣ Find Recent Posts
  • Node: Find Recent Posts
  • API: Apify Instagram Hashtag Scraper
  • Auth Setup:
    • Go to your Apify Console
    • Click “Create new token”
    • In n8n, create a new HTTP Query Auth credential
      • Set token in the token query param (e.g., ?token=yourTokenHere)
    • Choose the credential in this node
4️⃣ Scrape Each Profile
  • Node: Scrape Accounts
  • API: Apify Instagram Profile Scraper
  • Body: JSON with usernames from the hashtag search
  • Note: Uses the same httpQueryAuth credential as the previous node.
5️⃣ Extract Fields
  • Node: Set bio and follower count
  • What it does: Extracts biography and followersCount from the profile JSON and stores them in clean variables for AI input.
6️⃣ AI Lead Scoring
  • Node: AI Agent
  • Purpose: Uses GPT-4o-mini to analyze the bio and follower count
  • Prompt Details:
7️⃣ AI Model
  • Node: OpenAI Chat Model
  • Model: gpt-4o-mini
  • Credential: Connect your OpenAI account via API Key.
  • Go to OpenAI API Keys
  • Copy your key and create a new OpenAI API credential in n8n.
8️⃣ Output Parser
  • Node: Structured Output Parser
  • What it does: Parses the response from the AI into structured JSON for further use (e.g., storing leads, sending to Airtable, etc.)

🧪 Sample Output

{
"lead status": "Yes",
"Reasoning": "The user has 3.5k followers and their bio shows they build automations with n8n."
}

---

## 📬 Need More Help?

If you'd like assistance setting this up, customizing it to your niche, or expanding it to score and store leads automatically — I can help!

**👤 Robert Breen**  
Automation Consultant | AI Workflow Designer | n8n Expert  
📧 [[email protected]](mailto:[email protected])  
🌐 [ynteractive.com](https://ynteractive.com)  
🔗 [LinkedIn](https://www.linkedin.com/in/robert-breen-29429625/)

---

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 - When clicking ‘Execute workflow’

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

Block 2 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 3 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 5 - Find Recent Posts

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

Block 6 - Create Search Term

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

Block 7 - Scrape Accounts

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

Block 8 - Set bio and follower count

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

Block 9 - Sticky Note

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

Block 10 - Sticky Note1

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

Block 11 - Sticky Note2

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

Block 12 - Sticky Note3

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

3. Summary Table

Workflow Find Instagram collaboration leads using Apify scraping and GPT-4o evaluation
Complexity intermediate
Nodes 12
Categories Lead Generation, AI Summarization
Author Robert Breen
Published 05 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7019/7019.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 Find Instagram collaboration leads using Apify scraping and GPT-4o evaluation do?

This no code n8n workflow finds recent Instagram posts by hashtag, scrapes profile data, and uses an AI agent to evaluate whether each account is a good collaboration lead. The workflow filters bas...

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 Lead Generation, AI Summarization use case.