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).