Skip to main content

Automate B2B sales research & email personalization with Sona and GPT-4

Workflow preview

Workflow preview
100%
Automate B2B sales research & email personalization with Sona and GPT-4 preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Sona Powered AI Sales Research & Personalized Email Automation Overview Automatically research B2B leads and generate personalized outreach emails by reading prospects from Google Sheets, enrich...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.noop

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Sona Labs.

Original n8n.io source

1.1 Workflow description

Title
Automate B2B sales research & email personalization with Sona and GPT-4
Workflow name
Automate B2B sales research & email personalization with Sona and GPT-4

Sona-Powered AI Sales Research & Personalized Email Automation

🎯 Overview

Automatically research B2B leads and generate personalized outreach emails by reading prospects from Google Sheets, enriching with company data from Sona Enrich, analyzing insights with AI, and creating custom emails — so you can scale personalized outreach to target accounts.

You'll be able to automatically enrich company data for target accounts, use AI to identify pain points and opportunities, generate personalized email copy, and sync everything back to your sheet with ready-to-send Gmail compose links.

✨ What This Workflow Does

  1. Smart Lead Processing - Reads leads from Google Sheets and filters unprocessed contacts
  2. Deep Company Intelligence - Enriches each lead using Sona's API (industry, tech stack, revenue, employee count, social profiles)
  3. AI-Powered Research - GPT-4 analyzes company data to identify pain points, growth opportunities, and personalization hooks
  4. Email Generation - Creates 120-150 word personalized emails with curiosity-driven subject lines
  5. Automated Sync - Updates Google Sheets with research insights and one-click Gmail compose links

🔥 Key Features

  • Structured AI Output - Consistent, high-quality research and copy generation
  • Zero Manual Work - Processes 20-50 leads per hour completely hands-free
  • **Email Generation - Creates 120-150 word personalized emails with curiosity-driven subject lines
  • Gmail Integration - Pre-filled send links for instant outreach
  • Progress Tracking - Real-time status updates in Google Sheets

💼 Perfect For

  • Sales teams doing cold outreach
  • SDRs needing personalized emails at scale
  • Agencies managing client prospecting
  • Founders building their pipeline

📋 What You'll Need

1. Sona API Key

  • Get yours at sonalabs.com
  • Provides company data enrichment
  • Add to HTTP Request node header: x-api-key: YOUR_KEY

2. OpenAI API Key

  • Get from platform.openai.com
  • Uses GPT-4.1-mini for research and email generation
  • Add credentials in n8n

3. Google Sheets Setup

Create a spreadsheet with these columns:

  • Input columns: Website Domain, Company Name, Contact Name, Email, Industry
  • Status column: Research Status (leave empty for new leads)
  • Auto-populated: Pain Points, Key Insight, Email Subject, Email Body, Send Email Link, Generated Date, Sent Status

4. Google Sheets API

  • Enable in Google Cloud Console
  • Set up OAuth2 with spreadsheets permission
  • Add your spreadsheet ID to workflow nodes

🚀 Setup Instructions

  1. Import workflow into n8n
  2. Add credentials:
    • Sona API key (HTTP Request node)
    • OpenAI API credentials
    • Google Sheets OAuth2
  3. Update spreadsheet ID in all Google Sheets nodes
  4. Customize AI prompts (optional) to match your offering
  5. Test with 2-3 leads before running full list
  6. Execute workflow - it processes leads automatically in batches

📊 Expected Output

Each processed lead gets:

  • Pain points (3-5 identified challenges)
  • Growth opportunities (2-3 actionable insights)
  • Personalization hooks (3-4 talking points)
  • Email subject line (max 8 words, curiosity-driven)
  • Email body (120-150 words, consultative tone)
  • Gmail compose link (one-click to send)
  • Fit score (High/Medium/Low)

Processing time: 30-60 seconds per lead

🎓 How It Works

Step 1: Data Input & Filtering

Reads all leads from Google Sheets and filters out already-processed leads (those with a value in "Research Status" column).

Step 2: Company Data Enrichment

  • Updates status to "Pending" in Google Sheets
  • Searches Sona database using domain or email
  • 5-tier smart matching algorithm finds best company match
  • Retrieves firmographic data and technology stack

Step 3: AI Company Research

GPT-4.1-mini analyzes company data to generate:

  • Specific pain points based on industry, size, tech stack
  • Growth opportunities and market positioning
  • Personalization hooks from company description
  • Recommended outreach tone and CTA
  • One-liner insight for email opening

Step 4: Personalized Email Generation

AI crafts cold email following best practices:

  • Curiosity-driven subject line (max 8 words)
  • Opens with personalization hook showing research
  • References ONE specific pain point
  • Focuses on tangible outcomes (not product features)
  • Natural CTA without being pushy
  • Professional but conversational tone

Step 5: Data Output & Loop

  • Formats all data for Google Sheets
  • Creates Gmail compose link with pre-filled content
  • Updates sheet with complete results
  • Sets status to "Completed"
  • Waits 2 seconds, then processes next lead

⚡ Pro Tips

  • Start small: Test with 5-10 leads to validate personalization quality
  • Review first emails: Adjust AI prompts if tone needs calibration
  • Clean your data: Better input domains = better Sona matches
  • Monitor fit scores: Focus manual review on High/Medium fits
  • Use status column: Easily re-run workflow for new leads only
  • Connect CRM: Use webhooks to push data to Salesforce/HubSpot

🎯 Use Cases

Sales Team Automation

Process 100+ leads overnight with personalized research and emails ready by morning.

Agency Client Work

Deliver custom prospecting campaigns with unique emails for each client's target accounts.

Founder Outreach

Build pipeline systematically with AI-researched, personalized emails at scale.

SDR Productivity

Give SDRs pre-researched talking points and draft emails to speed up their workflow 10x.

📈 Expected Results

  • Email personalization: 10x better than templates
  • Time saved: 5-10 minutes per lead → 30 seconds automated
  • Response rates: 2-3x higher with AI-researched insights
  • Scalability: Process 50-100 leads per day hands-free

🔧 Customization Options

  • Change AI model: Swap GPT-4.1-mini for GPT-4 or other models
  • Adjust email length: Modify prompt to generate shorter/longer emails
  • Add more enrichment: Chain additional API calls (Clearbit, Apollo, etc.)
  • Multi-language: Update prompts for outreach in other languages
  • Custom tone: Adjust system prompts for industry-specific voice
  • Webhook triggers: Replace manual trigger with scheduled runs or form submissions

🐛 Troubleshooting

No Sona data found?

  • Verify API key is correct
  • Check domain format (remove http://, trailing slashes)
  • Fallback uses first search result if no exact match

AI output not formatted correctly?

  • Structured Output Parser ensures valid JSON
  • Check OpenAI API key and model availability

Google Sheets not updating?

  • Verify OAuth2 credentials are connected
  • Check spreadsheet ID matches your sheet
  • Ensure column names match exactly (case-sensitive)

Rate limits?

  • Sona: 3 second delay between requests (built-in)
  • OpenAI: Adjust batch size or add longer waits
  • Google Sheets: No limit for standard usage

📝 Template Information

  • Category: Sales & Marketing
  • Difficulty: Intermediate
  • Setup Time: 5-10 minutes
  • Run Time: 30-60 seconds per lead
  • Cost: Pay-per-use (Sona API + OpenAI tokens)
  • Updated: December 2025

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Read Leads from Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4

Block 2 - Loop Over Leads

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 3 - Update Sheet with Results

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4

Block 4 - Sona Company Search

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 7 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 8 - Company Research AI

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 9 - Generate Personalized Email

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 10 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 11 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 12 - Format Results

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Update Row Status

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4

Block 14 - End

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 15 - Start

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 16 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 17 - Filter

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 18 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automate B2B sales research & email personalization with Sona and GPT-4
Complexity advanced
Nodes 23
Categories Lead Generation, AI Summarization
Author Sona Labs
Published 26 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12189/12189.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate B2B sales research & email personalization with Sona and GPT-4 do?

Sona Powered AI Sales Research & Personalized Email Automation Overview Automatically research B2B leads and generate personalized outreach emails by reading prospects from Google Sheets, enrich...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.