Quick overview
This workflow pulls unprocessed leads from Airtable, enriches them with LinkedIn profile, company, website, and post data via Apify and Firecrawl, qualifies each lead with Anthropic Claude, and drafts a 3-step outreach sequence plus phone enrichment via Lusha back into Airtable.
How it works
- Runs manually when you click “Execute workflow” and sets the Airtable base/table to use before loading AI prompts from an Airtable “Prompt” table.
- Searches Airtable for leads with empty “Réponse” and “Match” fields and processes them one by one.
- For each lead, calls Apify to fetch LinkedIn profile details and marks the lead as “Likedin pas dispo” in Airtable if the profile is missing.
- If available, optionally fetches the company’s LinkedIn data via Apify and, when a company website exists, scrapes the homepage with Firecrawl and cleans the returned markdown.
- Fetches recent LinkedIn posts via Apify, selects a recent personal post to “like,” and compiles the lead’s profile, education, experience, company info, posts, and homepage content into a structured dataset.
- Sends the dataset to an Anthropic Claude agent to decide whether the lead matches the qualification prompt, then updates Airtable with “Match=False” for unqualified leads.
- For qualified leads, fetches a phone number from Lusha, generates three personalized outreach messages with a second Anthropic Claude agent, and saves the messages, phone number, and “Match=True” back to Airtable.
Setup
- Add Airtable personal access token credentials and update the Base ID and Table ID values used for your leads table (plus ensure the workflow can read the “Prompt” table).
- Create or verify Airtable fields referenced by the workflow (including LinkedIn profile, Company name, Job title, Sub industry, Match, Réponse, Post à like, Premier message, Deuxième message, Troisième message, and Phone number).
- Add Apify API credentials and ensure the referenced Apify actors are available for LinkedIn profile scraping, company scraping, and post scraping.
- Add a Firecrawl API key for homepage scraping.
- Add an Anthropic API key and confirm the Airtable prompts include entries for Agent = “Qualification” and Agent = “Rédaction” that return structured JSON outputs.
- Add Lusha API credentials (header auth) and confirm your account has access to phone reveal for LinkedIn URLs.