LinkedIn Engagement Data Extraction using AI Agents - n8n Workflow

Automate scraping LinkedIn post metrics (reactions, comments, and audience data) using this powerful n8n workflow template. Extract structured data for lead generation.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Growth Marketers seeking to analyze content performance and identify highly engaged users.

  • Sales Professionals looking to generate leads by analyzing who is interacting with competitor content.

  • Data Analysts needing structured, clean data from social media platforms for research.

  • n8n Users who require reliable web scraping solutions leveraging AI capabilities within an n8n workflow.

Overview

Manually tracking engagement on LinkedIn posts and profiling the interacting audience is time-consuming and prone to errors. This specialized n8n workflow template solves this by leveraging an advanced AI scraping n8n node (Airtop) to extract precise, structured data.

This n8n workflow provides critical insights, including the total count of reactions, comments, and reposts, along with a list of interactors, including their name, job title, and profile URL. This capability transforms a complex scraping task into a simple, automated process, making this n8n template invaluable for competitive analysis and lead generation strategies. The structure ensures reliable data output every time the n8n workflow is run.

How it Works

This automation offers dual entry points, making it a flexible n8n template.


  1. Triggering the n8n Workflow: The automation can start via an internal Form Trigger, allowing users to manually input the necessary parameters (Airtop Profile name and LinkedIn Post URL). Alternatively, it can be executed as a sub-workflow triggered by another n8n workflow.

  2. Input Standardization: The 'Map fields' n8n node standardizes the input variables, ensuring that whether the data comes from the form or another n8n trigger, it is correctly labeled as airtopprofile and posturl.

  3. AI Data Extraction: The core Airtop n8n node takes the LinkedIn URL. It utilizes a detailed prompt and a strict JSON schema to instruct an AI agent to extract all required engagement data—specifically the counts and the list of interactor profiles.

  4. Parsing the Output: Since the AI response is returned as a string within the JSON, the final Code n8n node, 'Parse engagement analysis response,' converts this string back into a functional, nested JSON object. This ensures the output from the n8n workflow is immediately usable by subsequent n8n nodes or systems.

Installation Guide

To deploy this n8n workflow, follow these steps:


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

  2. Airtop Setup: You will need an Airtop account and credentials. Ensure you have an Airtop Profile that is currently logged into LinkedIn, as this is required for the scraping agent to access the data.

  3. Credential Configuration: Configure the required credentials for the Airtop n8n node.

  4. Initial Test: Execute the n8n workflow using the 'On form submission' n8n trigger to ensure the data extraction logic works correctly. Input a valid Airtop profile name and a public LinkedIn post URL.

  5. Activation: Once configured and tested, set the n8n workflow to 'Active'.

Node Details


  • On form submission (n8n trigger): Serves as a manual entry point for the n8n workflow, collecting the Airtop profile name and the target LinkedIn post URL from a user-friendly form.

  • When Executed by Another Workflow (n8n trigger): Allows this n8n workflow to be easily incorporated into larger automation sequences as a sub-routine.

  • Map fields (Set n8n node): Essential for maintaining data consistency. It ensures that input fields from either n8n trigger are standardized into the airtopprofile and posturl keys.

  • Airtop (AI Agent n8n node): The primary extraction tool. It runs a detailed prompt against the provided URL to extract structured data based on a defined JSON output schema, ensuring precise engagement metrics and interactor lists are returned.

  • Parse engagement analysis response (Code n8n node): A utility n8n node that cleans the data output. It uses JavaScript to parse the stringified JSON response (data.modelResponse) received from the Airtop n8n node into a native JSON format.

Related n8n Workflows

Free

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

Airtop provides an intelligent browser automation API for AI agents, enabling seamless web interaction, including login, navigation, and data extraction from any site, even those with complex authentication - all with natural language instructions.In simple terms, we allow you to automate anything humans can do online, on any site with just words

Featured*