🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

LinkedIn to Gmail, personalized drafts ready to send

Lisa Granqvist Partner Workflow Automation Expert

You find a good LinkedIn prospect, then the grind starts. Copy the URL. Hunt for an email. Google the company. Open five tabs. By the time you write the first line, you’ve lost the momentum (and honestly, sometimes the lead too).

This LinkedIn Gmail automation hits sales reps first, but recruiters and demand gen marketers feel it too. You want personalization that doesn’t take all afternoon. This workflow gets you a ready-to-review Gmail draft from a single LinkedIn URL.

Below you’ll see how the workflow turns profile data into research-backed messaging, what it saves you in real time, and what you need to plug it into your outreach process.

How This Automation Works

The full n8n workflow, from trigger to final output:

n8n Workflow Template: LinkedIn to Gmail, personalized drafts ready to send

The Problem: Personalization Takes Too Long to Scale

Personalized cold email works, but manual personalization is a tax on your day. You’re not just writing an opener; you’re doing detective work: finding the right email, confirming company details, scanning news, and trying to pull a believable “reason I’m reaching out” from a handful of clues. Then you still have to paste it all into Gmail and hope nothing gets mixed up. One small mistake (wrong company name, stale job title, generic flattery) can tank the whole message and waste the lead.

It adds up fast. Here’s where it usually breaks down.

  • Finding a verified email often means bouncing between tools, and it can easily eat 10 minutes per lead.
  • Company research turns into a rabbit hole, and the “quick scan” becomes 20 minutes of tab juggling.
  • Openers end up inconsistent because you’re writing from memory and rushing, which means more rewrites later.
  • Drafting inside Gmail is slow and error-prone when you’re copying names, roles, and details by hand.

The Solution: LinkedIn URL In, Gmail Draft Out

This workflow starts with a simple form where you submit a LinkedIn profile URL. n8n sends that URL to Wiza to discover the prospect’s email and basic company info, then routes the workflow based on whether enrichment succeeded. If it fails, you get a clear “enrichment failure” response instead of silently creating bad drafts. If it succeeds, the lead details get mapped into a clean structure and appended to a lightweight lead database, so you’re not losing track of who you contacted. From there, Perplexity gathers recent, relevant context (news, growth signals, likely pain points), and an AI agent uses your offer profile plus that research to write a personalized icebreaker email. The final output is a Gmail draft sitting in your inbox, ready for a quick human review.

The workflow kicks off with the LinkedIn form trigger, then runs enrichment through Wiza and a status switch. Next, it performs prospect and company research with Perplexity and an AI agent, then composes the email and pushes the draft straight into Gmail. You review, tweak a line or two, and send.

What You Get: Automation vs. Results

Example: What This Looks Like

Say you personalize 10 outbound emails a day. Manually, you might spend about 10 minutes finding an email, 15 minutes researching, and 5 minutes drafting and formatting in Gmail. That’s roughly 5 hours a day. With this workflow, submitting the LinkedIn URL takes about a minute, the enrichment + research + draft generation typically runs in a few minutes, and you spend maybe 2 minutes reviewing before sending. You’re back to real selling work, not browser gymnastics.

What You’ll Need

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Wiza for email discovery and enrichment
  • Perplexity to research the prospect’s company context
  • OpenAI API key (get it from your OpenAI dashboard)

Skill level: Intermediate. You’ll connect credentials, update the offer context node, and test a few runs.

Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).

How It Works

A LinkedIn URL triggers the run. You submit the profile link through the built-in form trigger, which is handy for reps because it’s quick and consistent.

Email discovery and routing happens automatically. Wiza attempts to find the email and enrichment details, then a switch routes the workflow to either a failure form response or the enrichment path.

Research becomes usable talking points. Lead fields are mapped and saved, your “Service Offer Profile” is loaded, and Perplexity gathers context that an AI agent can cite without sounding like it’s making things up.

A draft lands in Gmail. The personalized email composer generates the outreach message, and n8n creates a Gmail draft so you can review it in the same place you actually send email.

You can easily modify the offer context and the email template to match your niche, tone, and compliance needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Form Trigger

This workflow starts when a lead submits a LinkedIn URL through a form.

  1. Add and open LinkedIn Form Trigger.
  2. Set Form Title to Linkedin.
  3. Under Form Fields, add a field with Field Label set to Linkedin.
  4. Save the node and copy the generated form URL if you plan to embed or share it.

Tip: Ensure the submitted field name is exactly Linkedin so downstream expressions like {{$json.Linkedin}} resolve correctly.

Step 2: Connect Wiza Enrichment and Route Status

After a form submission, the workflow enriches the lead and routes failures to a completion form.

  1. Open Email Discovery and set Input Type to linkedinUrl.
  2. Set LinkedIn URL to {{$json.Linkedin}}.
  3. Credential Required: Connect your wizaApi credentials in Email Discovery.
  4. Open Status Route Switch and confirm the rules check {{$json.status}} equals failed (output Failed) and equals finished (output Finished).
  5. Open Enrichment Failure Form and verify Operation is completion, Completion Title is Failed To Find Enrichment Data, and Completion Message is The Wiza Back-End Could Not Find any Enrichment Data from the provided information.

⚠️ Common Pitfall: If Status Route Switch doesn’t receive status from Wiza, all leads may fall into the wrong path—validate enrichment responses during testing.

Step 3: Map Lead Fields and Append to Data Table

Successful enrichment data is normalized and stored for reporting and follow-up.

  1. Open Lead Detail Mapper and set assignments to map enrichment fields, including: full_name{{$json.name}}, title{{$json.title}}, location{{$json.location}}, company_industry{{$json.company_industry}}, company_domain{{$json.company_domain}}, company_revenue{{$json.company_revenue_range}}, company_size{{$json.company_size}}, company_type{{$json.company_type}}, company_description{{$json.company_description}}, company_location{{$json.company_location}}, email{{$json.email}}, id{{$json.id}}.
  2. Open Append Lead Database and select the Data Table with ID Leads.
  3. Map the columns exactly: name{{$json.full_name}}, email{{$json.email}}, title{{$json.title}}, location{{$json.location}}, company_size{{$json.company_size}}, company_domain{{$json.company_domain}}, company_industry{{$json.company_industry}}, linkedin_profile_url{{$('LinkedIn Form Trigger').item.json.Linkedin}}, company_revenue_range{{$json.company_revenue}}, and keep email_sent as false.

Step 4: Set Up AI Research and Context

This section configures the research agent, memory, tools, and business context that drive personalization.

  1. Open Service Offer Profile and set Grand Slam Offer to ### **OFFER NAME:** ... (use the full multi-line offer text from the node) and Business Profile to # otomata.xyz — Business Profile ... (use the full multi-line business profile text from the node).
  2. Open OpenAI Mini Chat Model, set the model to gpt-5-mini-2025-08-07, and connect credentials. Credential Required: Connect your openAiApi credentials.
  3. Open Session Memory Buffer and set Session Key to 1020293294 with Session ID Type set to customKey.
  4. Open Perplexity Insight Fetcher and keep Simplify enabled. Credential Required: Connect your perplexityApi credentials.
  5. Open Prospect Research Agent and keep the prompt as defined. Confirm it references lead fields like {{$('Lead Detail Mapper').item.json.full_name}} and company fields such as {{$('Lead Detail Mapper').item.json.company_domain}}.
  6. Open Retrieve Case Studies and set Operation to get and Return All to true with the Data Table set to Case Studies.

Tip: Perplexity Insight Fetcher, Retrieve Case Studies, and Session Memory Buffer are connected as AI tools/memory to Prospect Research Agent and Personalized Email Composer—configure their credentials and options so the parent agents can call them successfully.

Step 5: Set Up Email Composition and Drafting

The research output is transformed into a personalized email and saved as a Gmail draft.

  1. Open OpenAI Dialogue Model, set the model to gpt-5, and connect credentials. Credential Required: Connect your openAiApi credentials.
  2. Open Structured Result Parser and keep the JSON Schema Example set to the provided schema, including keys like lead_full_name, subject_line, email_address, and icebreaker_email.
  3. Open Personalized Email Composer and keep the prompt as defined. Ensure the system message injects values like {{$('Service Offer Profile').item.json['Business Profile']}} and the research report via {{$('Prospect Research Agent').item.json.output}}.
  4. Open Gmail Draft Creator and set Resource to draft, Email Type to html, Subject to {{$json.output.subject_line}}, Message to {{$json.output.icebreaker_email}}, and Send To to {{$json.output.email_address}}.
  5. Credential Required: Connect your gmailOAuth2 credentials in Gmail Draft Creator.

⚠️ Common Pitfall: The email body is produced as HTML with <br> line breaks—ensure Email Type remains set to html in Gmail Draft Creator or formatting will break.

Step 6: Test and Activate Your Workflow

Validate each path before turning the workflow on.

  1. Click Execute Workflow and submit a test lead through LinkedIn Form Trigger with a valid LinkedIn URL.
  2. Confirm Email Discovery returns status as finished and Status Route Switch sends the lead to Lead Detail Mapper.
  3. Verify a new record appears in the Append Lead Database table and that Prospect Research Agent returns a research summary.
  4. Check that Personalized Email Composer outputs JSON with subject_line and icebreaker_email, and that Gmail Draft Creator creates a draft in Gmail.
  5. Once successful, toggle the workflow to Active for production use.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Common Gotchas

  • Wiza credentials can expire or need specific permissions. If things break, check the Wiza API key entry in your n8n credentials store first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • Default prompts in AI nodes are generic. Add your brand voice early in the “Ice Breaker Email Generator” prompt or you will be editing outputs forever.

Frequently Asked Questions

How long does it take to set up this LinkedIn Gmail automation?

About 30 minutes once you have your API keys.

Do I need coding skills to automate LinkedIn-to-Gmail drafts?

No. You’ll mainly connect accounts and paste a few API keys into n8n. The only “technical” part is testing with a couple of LinkedIn URLs to make sure enrichment and draft creation work end to end.

Is n8n free to use for this LinkedIn Gmail automation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in API usage for Wiza, Perplexity, and OpenAI, which depends on how many leads you process.

Where can I host n8n to run this LinkedIn Gmail automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I customize this LinkedIn Gmail automation workflow for my industry and tone?

Yes, and you should. Update the “Service Offer Profile” node with your business context, then edit the prompt in “Ice Breaker Email Generator” to match your voice and the kinds of proof you want to reference. Many teams also adjust the “Retrieve Case Studies” data table so the composer can pull in relevant examples automatically. If you prefer a different model, swap the OpenAI chat model node used by the agents.

Why is my Gmail connection failing in this workflow?

Usually it’s OAuth permissions or an expired token in your n8n Gmail credentials. Reconnect the Gmail account, then confirm the draft-creation scope is allowed. Also check that the workflow is running under the same Google account you expect, because teams sometimes authenticate a personal inbox by accident.

How many leads can this LinkedIn Gmail automation handle?

A few hundred a day is realistic if your API limits allow it and you’re not running huge research prompts.

Is this LinkedIn Gmail automation better than using Zapier or Make?

It depends on how “smart” you want the workflow to be. Zapier and Make are fine for simple routing, but this flow leans on agents, structured parsing, and branching logic, which n8n handles cleanly without you fighting plan limits. You also get a self-hosting option, which can matter once you’re generating lots of drafts. The tradeoff is a bit more setup and testing. If you want help choosing, Talk to an automation expert.

This is the kind of automation that pays for itself in attention. You keep the human judgment, but you stop spending your best hours on copy-paste research.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal