🎣 Automate Instagram influencer lead collection with Apify, GPT and PostgreSQL

868 views · 🎣 Lead Generation & Enrichment

💡 Pro Tip — Heads up — if this workflow’s Instagram scraping breaks (it happens whenever Meta updates their frontend), ScraperNode is a community node that handles profiles, posts, reels, and comments without any HTML parsing.

View All Scrapers

Description

Screen Shot 20251019 at 3.59.42 PM.png This workflow is built for digital marketers, sales professionals, influencer agencies, and entrepreneurs who want to automate Instagram lead generation. If you’re tired of manually searching for profiles, copying email addresses, and updating spreadsheets, this automation will save you hours every week. It turns your process into a smart system that finds, extracts, and stores leads while you focus on growing your business.

How it works / What it does

This n8n automation completely transforms how you collect Instagram leads using AI and API integrations.

Here’s a simple breakdown of how it works:

Once everything is set up, the system runs on autopilot and keeps building your database of quality leads around the clock.

How to set up

Follow these steps to get your Instagram Lead Generation Machine running:

  1. Import the JSON file into your n8n instance.

  2. Add your API credentials:

  3. Apify token for the Google and Instagram scrapers

  4. OpenAI API key for the AI-powered nodes

  5. PostgreSQL credentials for storing leads

  6. Open the Edit Fields node and set your platform, field of interest, and target country.

  7. Run the workflow manually using the Manual Trigger node to test it.

Once confirmed, replace the manual trigger with a schedule or webhook to run it automatically. Check your PostgreSQL database to ensure the leads are being saved correctly.

Requirements

Before running the workflow, make sure you have the following:

How to customize the workflow

This workflow is flexible and can be customized to fit your business goals. Here’s how you can tailor it:

🔗 Nodes Used

HTTP Request, Postgres, AI Agent, OpenAI Chat Model, Information Extractor

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup