πŸ“Š Instagram visual analysis with Apify scraping, OpenAI GPT-5 & Google Sheets

⚑ 1,088 views Β· πŸ“Š Market Research & Insights

πŸ’‘ 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

Pull recent Instagram post media for any username, fetch the image binaries, and run automated visual analysis with OpenAI β€” all orchestrated inside n8n. This workflow uses a Google Sheet to supply target usernames, calls Apify’s Instagram Profile Scraper to fetch recent posts, downloads the images, and passes them to an OpenAI vision-capable model for structured analysis. Results can then be logged, stored, or routed onward depending on your use case.


πŸ§‘β€πŸ’» Who’s it for


βš™οΈ How it works

  1. Google Sheets – Supplies Instagram usernames (one per row).
  2. Apify Scraper – Fetches latest posts (images and metadata).
  3. HTTP Request – Downloads each image binary.
  4. OpenAI Vision Model – Analyzes visuals and outputs structured summaries.
  5. Filter & Split Nodes – Ensure only the right rows and posts are processed.

πŸ”‘ Setup Instructions

1) Connect Google Sheets (OAuth2)

  1. Go to n8n β†’ Credentials β†’ New β†’ Google Sheets (OAuth2)
  2. Sign in with your Google account and grant access
  3. In the Get Google Sheet node, select your spreadsheet + worksheet (must contain a User column with Instagram usernames)

2) Connect Apify (HTTP Query Auth)

  1. Get your Apify API token at Apify Console β†’ Integrations/API
  2. In n8n β†’ Credentials β†’ New β†’ HTTP Query Auth, add a query param token=<YOUR_APIFY_TOKEN>
  3. In the Scrape Details node, select that credential and use the provided URL:

3) Connect OpenAI (API Key)

  1. Create an API key at OpenAI Platform
  2. In n8n β†’ Credentials β†’ New β†’ OpenAI API, paste your key
  3. In the OpenAI Chat Model node, select your credential and choose a vision-capable model (gpt-4o-mini, gpt-4o, or gpt-5 if available)

πŸ› οΈ How to customize


πŸ“‹ Requirements


πŸ“¬ Contact

Need help customizing this (e.g., filtering by campaign, sending reports by email, or formatting your PDF)?

πŸ”— Nodes Used

Google Sheets, HTTP Request, Filter, AI Agent, OpenAI Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup