Skip to main content

Personalized outreach for lawyers with LinkedIn scraping, GPT-4o, Google Sheets

Workflow preview

Personalized outreach for lawyers with LinkedIn scraping, GPT-4o, Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

Overview

Screenshot 20250612 120714.png โš ๏ธ This template uses only official n8n nodes. No community nodes required.

๐Ÿง‘โ€๐Ÿ’ผ Who is this for?

This workflow is designed for:

  • Legal tech founders
  • Marketing freelancers or consultants
  • Agencies supporting lawyers and small law firms
  • Anyone doing outbound outreach in the legal niche

โ“ What problem is this solving?

LinkedIn is a goldmine for targeting legal professionals โ€” but scraping and personalizing outreach is tedious and expensive. Most tools either:

  • Require paid LinkedIn Sales Navigator
  • Canโ€™t personalize at scale
  • Violate LinkedInโ€™s TOS

This workflow solves that by using free Google Search, OpenRouter AI, and GPT-4o to find, enrich, and message up to 1,000 solo lawyers per day โ€” without using browser automation or scrapers.


โš™๏ธ What this workflow does

  1. Uses Google Programmable Search to find solo lawyers and small firm founders on LinkedIn
  2. Parses each profileโ€™s name, title, profile URL, and snippet
  3. Saves raw lead data to Google Sheets
  4. Uses OpenRouter Sonar Pro to enrich each profile with external content
  5. Generates a personalized, 1-line message using GPT-4o
  6. Appends the final message into Google Sheets for outreach

๐Ÿ› ๏ธ Setup

Estimated time: 15โ€“20 minutes

โœ… Google Programmable Search

  • Enable the Custom Search API on Google Cloud
  • Create a programmable search engine set to search the full web
  • Copy your API key and CX ID

โœ… Google Sheets

  • Create a sheet with columns: Name, Title, Profile URL, Outreach Message
  • Share the sheet with your OAuth-connected Google account

โœ… OpenRouter

  • Sign up at openrouter.ai
  • Fund with at least $5 and generate your API key
  • Use the model perplexity/sonar-pro for real-time research

โœ… GPT-4o (optional)

  • You can use your OpenAI key or route GPT-4o via OpenRouter

All setup-specific values are marked clearly in sticky notes and placeholders.


๐Ÿ› ๏ธ How to customize this workflow to your needs

  • Change the Google search query to match your industry (e.g., "founder" AND "therapist" site:linkedin.com/in)
  • Modify the AI prompt to match your tone (formal, casual, humorous)
  • Connect the final output to your CRM (like HubSpot, Airtable, etc.)
  • Add a second outreach message variant to A/B test performance

๐Ÿ“Œ Sticky Notes & Annotations

  • All nodes are clearly renamed for understandability (e.g., Find Lawyer Profiles, Parse LinkedIn Search Results)
  • Color-coded sticky notes explain:
    • Setup instructions
    • Required credentials
    • Use caseScreenshot 20250612 113505.png

๐Ÿ—‚ Category

  • AI
  • Sales
  • Marketing