Block 1 - API Call Validation
- Type / Role
- n8n-nodes-base.code - code
- Config choices
- Version 2
This workflow is provided as-is. Please review and test before using in production.
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 da...
n8n-nodes-base.code, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, @exploriumai/n8n-nodes-explorium-ai.exploriumapinode, @n8n/n8n-nodes-langchain.lmchatanthropic, @n8n/n8n-nodes-langchain.chattrigger
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by explorium.
Original n8n.io sourceThis 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.
To use this workflow, set up the following credentials in your n8n environment:
AuthorizationBearer YOUR_API_KEYhttps://mcp.explorium.ai/mcpGo to Settings → Credentials, create these credentials, and assign them in the respective nodes before running the workflow.
This node creates an interactive chat interface where users can describe their prospecting criteria in natural language.
This code node manages the conversation flow, handling both initial user queries and validation error feedback.
chatInput and errorInput fieldsThe core intelligence node that interprets natural language and generates structured API calls.
Functionality:
AI Components:
https://mcp.explorium.ai/mcp for Explorium specificationsSystem Instructions:
mode: "full", size: 10000, page_size: 100, has_email: trueThis code node validates the AI-generated API request against Explorium's filter specifications.
Validation Checks:
total_experience_months, current_role_months)Allowed Filters:
country_code, region_country_code, company_country_code, company_region_country_codecompany_size, company_revenue, company_age, number_of_locationsgoogle_category, naics_category, linkedin_category, company_namecity_region_country, website_keywordshas_email, has_phone_numberjob_level, job_department, job_titlebusiness_id, total_experience_months, current_role_monthsOutput:
isValid: Boolean validation statusvalidationErrors: Array of specific error messagesConditional routing node that determines the next step based on validation results.
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).
Makes the validated API call to Explorium's prospect database.
/v1/prospects/fetchExtracts prospect IDs from the fetch response for bulk enrichment.
prospect_id values formatted for enrichment APISingle enrichment node that enhances prospect data with both contact and profile information.
/v1/prospects/enrichReturns:
Transforms and structures the enriched data for downstream processing.
Iterates through each prospect to generate individualized research and emails.
AI-powered research agent that investigates each prospect using Explorium MCP.
Input Data:
Research Focus:
AI Components:
https://mcp.explorium.ai/mcp for real-time intelligenceOutput: Structured JSON with research findings including automation tools, pain points, personalization notes
Generates personalized cold email drafts based on research findings.
Input Data:
AI Components:
Output Schema:
email: Selected prospect email address (professional preferred)subject: Compelling, personalized subject linemessage: HTML formatted email bodyCreates 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:
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.
The chat interface can be replaced with:
Adjust enrichment depth by:
Route emails to your preferred platform:
Swap AI providers based on your needs:
This workflow represents a complete AI-powered sales development representative (SDR) that handles prospecting, research, and personalized outreach with minimal human intervention.
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.
Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.
| Workflow | Generate personalized sales leads with Claude AI & Explorium for Gmail outreach |
|---|---|
| Complexity | advanced |
| Nodes | 30 |
| Categories | Lead Generation, AI Chatbot |
| Author | explorium |
| Published | 06 Nov 2025 |
Use the JSON export at /data/workflows/10561/10561.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
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 da...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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 Chatbot use case.