Scope of work
AI Automation & Pipeline
Category
Lead Generation Agent
Tech Stack
n8n, Apify, JS, Sheets
Live Demo
Insta Lead Agent is an end-to-end autonomous AI Instagram Lead Generation agent built inside n8n. Designed to eliminate manual prospect hunting, the agent accepts user search parameters via a webhook form, orchestrates high-speed web scraping through the Apify API, cleans and enriches lead details using an embedded JavaScript execution node, and appends structured, sales-ready prospects directly into a centralized Google Sheets CRM.
Captures target queries dynamically using an interactive form trigger (n8n-nodes-base.formTrigger). Users specify their target niche keyword (e.g., "Fitness Coach", "Real Estate") and location (e.g., "Miami", "Dubai"), initiating the automation pipeline with zero latency.
Dispatches synchronized HTTP POST requests to the Apify search engine scraper service. The request constructs precise Google Search query syntax (Site: www.instagram.com + [Keyword] [Location]) to extract up to 100 organic profile URLs and rich snippets per search without risking account bans or rate limits.
Raw scraper outputs are routed through a custom JavaScript function node (n8n-nodes-base.code). The code parses unstructured search snippets, extracts clean profile names, validates Instagram handles, maps bios, handles follower/like counts dynamically, and isolates emphasized keywords into clean arrays.
Cleaned lead profiles are mapped and appended directly into the client's Google Sheet (Instagram_AGENT) via OAuth2-secured API calls (n8n-nodes-base.googleSheets). The resulting dataset is immediately actionable for sales reps, cold outreach cadences, or downstream automated DM workflows.
Automated synchronous batch retrieval of up to 100 highly targeted Instagram business profiles per search.
Zero manual copy-pasting, data formatting, or CRM entry required—from input trigger straight to spreadsheet.
Captures Name, Handle, Profile URL, Bio Description, Follower count, Post Type, and Niche Keywords.
Visual pipeline illustrating the end-to-end trigger, Apify scraping, JavaScript parsing, and Google Sheets CRM sync.
Experience the full live run of Insta Lead Agent, querying Instagram search via Apify, transforming parameters in JavaScript, and appending real-time verified leads into Google Sheets.