Automated Instagram Profile Qualification and Scoring using AI - n8n Workflow

This n8n workflow template combines Airtop web scraping and GPT-4o analysis to automatically qualify Instagram profiles, score their business potential, and update Google Sheets efficiently. Integrate this powerful n8n solution today.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Lead Generation Teams: Who need to qualify high-potential entrepreneurs from Instagram at scale.

  • Recruitment Agencies: Vetting profiles for exclusive digital mastermind groups.

  • n8n Users: Looking for advanced examples of combining specialized scraping tools (Airtop) with complex AI logic (GPT-4o).

  • Automation Specialists: Seeking robust n8n templates for social media monitoring and data enrichment.

Overview

Manually reviewing hundreds of Instagram profiles for lead qualification is slow and prone to human error. This comprehensive n8n workflow solves this by fully automating the process.

It leverages the powerful capabilities of the n8n platform to integrate Google Sheets as the input source, Airtop for sophisticated web scraping (even handling dynamically loaded content like posts and stories), and a specialized GPT-4o agent for deep business analysis. The AI agent strictly evaluates the profile based on niche (Digital Marketing), evidence of high revenue (targeting 1 Million+ BRL annually), and adherence to ethical standards. The resulting profile score and detailed analysis are automatically written back to the Google Sheet, turning the initial lead list into a qualified, scored database, all driven by this efficient n8n solution.

How it Works

This automation is initiated by an n8n trigger and executes a multi-stage process involving scraping and advanced AI reasoning.


  1. Trigger & Filter: The process starts with a Google Sheets n8n trigger (Nova linha Atualizada) which monitors the spreadsheet for updates. A Filter n8n node checks if the row is marked for activation and hasn't been analyzed previously.

  2. Scraping Setup (Airtop): The n8n workflow initiates a new Airtop session (Criar Nova Sessão) and navigates to the specified Instagram profile URL (Criar uma nova Janela). The Pesquisar página Airtop n8n node executes a detailed extraction prompt to pull the profile's bio, follower counts, and details of the first five posts.

  3. Data Cleanup (AI Agent 1): The raw scraping output is passed to the first LangChain Agent (Ajustar Saída Instagram). This agent, using the gpt-4o-mini model, cleans and formats the messy text data into a structured JSON object. This structuring is essential for accurate downstream analysis.

  4. Deep Qualification (AI Agent 2): The structured data feeds into the second, highly specialized LangChain Agent (Análise de Dados do Perfil). This n8n node acts as an expert profile analyst, adhering to strict rules (Digital Marketing niche, high-revenue indicators, no illicit content) to deliver a final verdict (Approved/Reproved) and a confidence score (0-10).

  5. Output: Finally, the Atualizar Linha na Planilha Google Sheets n8n node takes all the AI-generated metrics (Approval status, Score, Detailed Analysis) and updates the original row in the Google Sheet. This completes the loop of the n8n workflow.

Installation Guide

To set up this powerful n8n workflow template, follow these steps:


  1. Import the n8n Workflow: Copy the provided JSON code and paste it directly into your n8n instance using the 'New' -> 'Import from JSON' option.

  2. Google Sheets Credentials: Configure the credentials for the Nova linha Atualizada (Trigger) and Atualizar Linha na Planilha (Action) n8n nodes. You will need to select the correct spreadsheet ID and sheet name for your lead list.

  3. Airtop Credentials: This n8n workflow requires an Airtop API key. Create and configure the Airtop API credential in n8n and link it to the four Airtop n8n nodes.

  4. OpenAI Credentials: Ensure you have an active OpenAI API key linked to the OpenAI Chat Model1 and OpenAI Chat Model2 n8n nodes, which power the LangChain Agents. GPT-4o-mini is recommended for cost efficiency.

  5. Activate: Once all credentials are set up, activate the n8n workflow. The Google Sheets n8n trigger will begin polling for new profiles to analyze.

Node Details

This advanced n8n workflow utilizes several key nodes:


  • Google Sheets Trigger (Nova linha Atualizada):

- Function: Serves as the primary n8n trigger, initiating the automation when a specified row in the Google Sheet is updated.
- Key Configuration: Monitored Event is rowUpdate. It targets a specific sheet named 'Profiles' (based on the cached ID).


  • Airtop (Criar Nova Sessão, Criar uma nova Janela, Pesquisar página, Terminar Sessão):

- Function: A sequence of Airtop n8n nodes used for robust, automated web scraping of Instagram profiles, ensuring access to complex data points like post details and follower counts.
- Key Configuration: Criar uma nova Janela dynamically sets the URL using the input data (https://www.instagram.com/{{ $('Processar Itens').item.json['@ - Instagram'] }}/). Pesquisar página uses an extensive extraction prompt to gather comprehensive profile metadata.


  • LangChain Agent (Ajustar Saída Instagram):

- Function: The first stage of AI processing. It uses a custom system prompt and a structured output parser to clean the raw, scraped data into a normalized, predictable JSON format.
- Key Configuration: Uses the gpt-4o-mini language model and relies on the connected Structured Output Parser1 n8n node to enforce data structure.


  • LangChain Agent (Análise de Dados do Perfil):

- Function: The core decision-making n8n node. It analyzes the structured data against strict business rules (e.g., target niche, revenue indicators) to determine qualification and generate a detailed report and confidence score.
- Key Configuration: The system message details a complex set of instructions for profiling high-level digital entrepreneurs, ensuring accurate analysis for this n8n workflow.


  • Google Sheets (Atualizar Linha na Planilha):

- Function: The final action n8n node, responsible for updating the original spreadsheet with all the AI-generated results, including the approval status, confidence score, and detailed analysis.
- Key Configuration: Matches the row using the @ - Instagram column and populates ten distinct columns with analysis results and timestamps.

Related n8n Workflows

Free

Nodes: 11 Nodes
Updated: December 26 2025
View all
Created by

Business Ops Analyst with over 3 years experience helping sales and marketing teams to streamline their processes

Featured*