Enrich LinkedIn leads with Aimfox, Apify, OpenAI and Airtable
Quick Overview This workflow listens for Aimfox webhooks when a LinkedIn connection request is accepted, notifies a Slack channel, creates and enriches a lead in Airtable using Apify scrapers for profile/company data and website content, and uses OpenAI to generate a lead rating, outreach angles, and hooks.
How it works Receives a webhook from Aimfox when a lead accepts a LinkedIn connection request. Extracts the lead, campaign, and LinkedIn profile identifier from the webhook payload and posts a notification to Slack. Creates a new lead record in Airtable with the lead’s name, campaign, date, and LinkedIn profile URL. Uses Apify to scrape the lead’s LinkedIn profile details, the most recent lead post, the lead’s company details, and the most recent company post. Downloads the company website with an HTTP request and converts the HTML content to Markdown for easier analysis. Sends the aggregated lead, company, posts, and website data to OpenAI to produce a structured lead rating, automation outreach angles, and outreach hooks. Updates the Airtable record with the scraped enrichment fields and the OpenAI-generated insights, and sets the lead status to “not contacted”.
Setup In Aimfox, configure the “accepted connection request” webhook to point to this workflow’s webhook URL. Add credentials for Slack, Airtable (Personal Access Token), Apify, and OpenAI. Update the Slack channel target and the Airtable base/table to match your workspace, and ensure the table contains fields that match the workflow’s mapped columns (for example Headline, About, Company Website, Hooks, and Icp match).
Related Templates
Restore your workflows from GitHub
This workflow restores all n8n instance workflows from GitHub backups using the n8n API node. It complements the Backup ...
Build a Restaurant Voice Assistant with VAPI and PostgreSQL for Bookings & Orders
This n8n template demonstrates how to create a comprehensive voice-powered restaurant assistant that handles table reser...
Extract Named Entities from Web Pages with Google Natural Language API
Who is this for? Content strategists analyzing web page semantic content SEO professionals conducting entity-based anal...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments