🎣 Generate personalized sales leads with Claude AI & Explorium for Gmail outreach

⚡ 279 views · 🎣 Lead Generation & Enrichment

💡 Pro Tip — For lead enrichment, ScraperNode can pull LinkedIn profiles, company data, and job listings directly into your pipeline — useful for building prospect lists without manual research.

View All Scrapers

Description

Outbound Agent - AI-Powered Lead Generation with Natural Language Prospecting

This n8n workflow transforms natural language queries into targeted B2B prospecting campaigns by combining Explorium’s data intelligence with AI-powered research and personalized email generation. Simply describe your ideal customer profile in plain English, and the workflow automatically finds prospects, enriches their data, researches them, and creates personalized email drafts.

DEMO

Template Demo

Credentials Required

To use this workflow, set up the following credentials in your n8n environment:

Anthropic API

Explorium API

Explorium MCP

Gmail

Go to Settings → Credentials, create these credentials, and assign them in the respective nodes before running the workflow.


Workflow Overview

Node 1: When chat message received

This node creates an interactive chat interface where users can describe their prospecting criteria in natural language.

Node 2: Chat or Refinement

This code node manages the conversation flow, handling both initial user queries and validation error feedback.

Node 3: AI Agent

The core intelligence node that interprets natural language and generates structured API calls.

Functionality:

AI Components:

System Instructions:

Node 4: API Call Validation

This code node validates the AI-generated API request against Explorium’s filter specifications.

Validation Checks:

Allowed Filters:

Output:

Node 5: Is API Call Valid?

Conditional routing node that determines the next step based on validation results.

Node 6: Validation Prompter

Generates detailed error feedback for the AI Agent when validation fails. This creates a self-correcting loop where the AI learns from validation errors and regenerates compliant requests by routing back to Node 2 (Chat or Refinement).

Node 7: Explorium API: Fetch Prospects

Makes the validated API call to Explorium’s prospect database.

Node 8: Pull Prospect IDs

Extracts prospect IDs from the fetch response for bulk enrichment.

Node 9: Explorium API: Contact Enrichment

Single enrichment node that enhances prospect data with both contact and profile information.

Returns:

Node 10: Clean Output Data

Transforms and structures the enriched data for downstream processing.

Node 11: Loop Over Items

Iterates through each prospect to generate individualized research and emails.

Node 12: Research Email

AI-powered research agent that investigates each prospect using Explorium MCP.

Input Data:

Research Focus:

AI Components:

Output: Structured JSON with research findings including automation tools, pain points, personalization notes

Node 13: Email Writer

Generates personalized cold email drafts based on research findings.

Input Data:

AI Components:

Output Schema:

Node 14: Create a draft (Gmail)

Creates email drafts in Gmail for review before sending.

After Creation: Loops back to Node 11 (Loop Over Items) to process next prospect

Alternative Output Options:


Workflow Flow Summary

  1. Input: User describes target prospects in natural language via chat interface
  2. Interpret: AI Agent converts query to structured Explorium API filters using MCP
  3. Validate: API call validation ensures filter compliance
  4. Refine: If invalid, error feedback loop helps AI correct the request
  5. Fetch: Retrieve matching prospect IDs from Explorium database
  6. Enrich: Parallel bulk enrichment of contact details and professional profiles
  7. Clean: Transform and structure enriched data
  8. Loop: Process each prospect individually
  9. Research: AI agent uses Explorium MCP to gather company and prospect intelligence
  10. Write: Generate personalized email based on research
  11. Draft: Create reviewable email drafts in preferred platform

This workflow eliminates manual prospecting work by combining natural language processing, intelligent data enrichment, automated research, and personalized email generation—taking you from “I need marketing leaders at fintech companies” to personalized, research-backed email drafts in minutes.


Customization Options

Flexible Triggers

The chat interface can be replaced with:

Scalable Enrichment

Adjust enrichment depth by:

Output Destinations

Route emails to your preferred platform:

AI Model Flexibility

Swap AI providers based on your needs:


Setup Notes

  1. Domain Filtering: The workflow prioritizes professional emails—customize email selection logic in the Clean Output Data node
  2. MCP Configuration: Explorium MCP requires Header Auth setup—ensure credentials are properly configured
  3. Rate Limits: Adjust Loop Over Items batch size if hitting API rate limits
  4. Memory Context: Simple Memory maintains conversation history—increase window length for longer sessions
  5. Validation: The AI self-corrects through validation loops—monitor early runs to ensure filter accuracy

This workflow represents a complete AI-powered sales development representative (SDR) that handles prospecting, research, and personalized outreach with minimal human intervention.

đź”— Nodes Used

Gmail, AI Agent, Anthropic Chat Model, Simple Memory, Structured Output Parser, Chat Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup