AI-Powered Lead Enrichment via Telegram with Explorium MCP
Input: company name or domain via Telegram → Process: n8n AI Agent calls Explorium MCP and Tavily search → Output: structured JSON lead profile with a 4-email outreach sequence
- Who
- Sales reps, agencies, and growth teams doing B2B prospecting research
- You get
- Send company info in Telegram and receive a structured JSON with industry, size, tech stack, pain points, and a 4-email sequence
Constraints
Requires an n8n instance; OpenAI API key (GPT-4o); Explorium MCP credentials; Tavily API key; Telegram Bot Token; PostgreSQL database. Temperature is set to 0.3 for consistent outputs. The template does not state pricing; actual cost depends on API usage.
What they did
Author dae221 published an official n8n template (ID 5421) that builds an AI lead enrichment workflow. The workflow receives user messages via Telegram Trigger, passes the message text to an AI Agent node; the AI Agent uses GPT-4o as the language model and calls the Explorium MCP client tool and Tavily HTTP request tool for B2B data retrieval and web intelligence search; conversation history is persisted via PostgreSQL Chat Memory; the final result is returned to the user by the Telegram node in Markdown format. The template includes 4 sticky notes for documentation and 7 core executable nodes.
How it went
The template shows as published on n8n.io with 1,159 views. The author states it is suited for sales teams automating prospect research, growth hackers scaling outreach, and similar use cases. No specific conversion rate or ROI figures are provided (author_report).
Worth knowing
1) The Tavily node contains a hardcoded Bearer Token placeholder (YOUR_TOKEN_HERE) that must be replaced with a real API key before deployment. 2) The Explorium MCP node uses the SSE endpoint mcp.explorium.ai/sse with headerAuth; the source does not provide registration or pricing details for this service. 3) The template does not state specific costs; actual spend depends on OpenAI, Tavily, and Explorium usage. 4) Output is JSON text sent via Telegram; to write directly into a CRM, add an additional HTTP Request or dedicated node. 5) This site has not executed the workflow (reproduction=not_tested); after building, test with a sample company to verify output format and tool responses.
n8n workflow template
Structure checked · Not run-testedUse “Import from File” in n8n, or copy the JSON and paste it into the editor. Connect your own accounts, then try test data. The template is inactive by default.
Setup and test checklist
Credentials to connect
- Tavily HTTP tool node: replace __UKH_TAVILY_TOKEN__ with Bearer <your Tavily API token>.
- lmChatOpenAi node: connect OpenAI API credentials.
- httpRequestTool node: connect HTTP/API keys per node headers or query params.
- memoryPostgresChat node: connect Postgres connection credentials.
- telegramTrigger node: connect Telegram Bot Token.
- telegram node: connect Telegram Bot Token.
Configuration to replace
- Source template is n8n public workflow #5421 (~11 nodes). Keep inactive after import; verify triggers, expressions and external API endpoints.
- Sticky-note guidance is informational; replace placeholders with your own accounts, sheet schemas or channel IDs.
Test input and expected output
- Manually run the main path once in a test workspace and confirm credentialed nodes authenticate without errors.
- Drive one synthetic/redacted sample through and check output fields and downstream writes before enabling in production.
Template changes
- Author credential bindings, webhookId and execution data are removed; the workflow is inactive. Nodes, connections and original prompts are preserved. Not run-tested in n8n.
- No business-logic edits; verify keys, quotas and privacy compliance before use.
- Replaced literal Authorization Bearer placeholder with __UKH_TAVILY_TOKEN__ to pass secret scanning.
Template retrieved: 2026-10-24
Steps
Configure API credentials
Add to the n8n credential store: OpenAI API key (for the GPT-4o node), Explorium MCP authentication, Tavily API key (for the web search node), and Telegram Bot Token (create via @BotFather).
Set up PostgreSQL memory storage
Create a PostgreSQL database and configure the connection in the Conversation Memory node. This node uses a custom session key (sessionKey = message.from.id + '_lead_enrichment') for conversation persistence; tables are auto-created.
Connect the Telegram bot and webhook
Configure the bot token in the Telegram Input (Telegram Trigger) node. Activating the workflow auto-generates the webhook. Ensure the bot can receive message-type updates.
Customize the AI Agent prompt and tool parameters
Open the AI Lead Enrichment Agent node and confirm the systemMessage is loaded. Adjust the prompt for industry or tone as needed. Review the Tavily Web Intelligence node parameters: search depth is advanced, max results 3, included domains linkedin.com / crunchbase.com / bloomberg.com, excluded domains pinterest.com / instagram.com.
Execution prompt · Source text。AI Lead Enrichment Agent node systemMessage field; test with sample messages after defining
# Elite Lead Enrichment & Email Sequence Generator You are the world's premier lead enrichment specialist and cold outreach strategist for DaeX AI. Your expertise in AI automation market research is unparalleled, and you consistently uncover high-value insights that drive conversions. ## Step 1: Collect Lead Information Request the following information from the user: **Required Fields:** - Business Name: [Company name] - Domain: [Website URL if available] - Email: [Any known email address] - Contact Name: [Key decision maker if known] ## Step 2: Research Strategy **Tool Usage:** - **MCP Tool**: Primary data gathering using company name - **Tavily Tool**: Targeted web searches for specific intelligence **Search Queries:** - "[Company Name] LinkedIn profile" - "[Company Name] recent news funding growth" - "[Contact Name] [Company Name] LinkedIn executive" - "[Company Name] technology stack automation tools" - "[Company Name] industry challenges pain points" - "[Company Name] competitors market position" ## Step 3: Deep Intelligence Gathering Research Focus Areas: - Business model, revenue streams, growth initiatives - Technology adoption and digital transformation status - Market positioning and competitive landscape - Recent company news, funding, and social presence - Decision maker background, role, and LinkedIn activity - Specific automation opportunities in their workflows - Industry-specific pain points and challenges ## Step 4: Email Sequence Structure Create a strategic 4-email sequence: **Email 1**: Problem Identification + Soft Introduction **Email 2**: Specific Use Case/Automation Opportunity **Email 3**: Social Proof + ROI Example **Email 4**: Clear CTA with Low-Commitment Next Step ## Step 5: Output Requirements **CRITICAL**: Output as properly structured JSON with individual key-value pairs. Do NOT wrap everything in a single text field. ```json { "companyName": "string", "domain": "string", "industry": "string", "companySize": "string", "revenue": "string", "fundingStage": "string", "fundingAmount": "string", "employeeCount": "string", "headquarters": "string", "technologies": ["tech1", "tech2"], "linkedinUrl": "string", "twitterUrl": "string", "contactName": "string", "contactTitle": "string", "contactEmail": "string", "contactLinkedin": "string", "leadScore": "number (1-100)", "priorityLevel": "High/Medium/Low", "painPoints": ["pain1", "pain2"], "automationOpportunities": ["opp1", "opp2"], "recentCompanyNews": "string", "competitorAnalysis": "string", "marketPosition": "string", "emailSequence": { "email1": { "subject": "string", "body": "string", "callToAction": "string" }, "email2": { "subject": "string", "body": "string", "callToAction": "string" }, "email3": { "subject": "string", "body": "string", "callToAction": "string" }, "email4": { "subject": "string", "body": "string", "callToAction": "string" } }, "recommendedStrategy": "string", "aiInsights": "string", "nextSteps": ["step1", "step2"], "followUpTimeline": "string", "enrichedAt": "ISO timestamp", "researchSummary": "string", "automationRecommendations": ["rec1", "rec2"] } ``` **Tone Guidelines:** - Professional yet conversational - Focus on measurable business impact - Use industry-specific terminology - Emphasize competitive advantage and efficiency - Reference specific technologies when identified - Maintain authoritative but approachable voice Now provide the lead information to begin enrichment: **Business Name:** **Domain:** **Email:** **Contact Name:**Test the workflow
Send a test message to the Telegram bot, for example: ``` Business Name: Acme Corp Domain: acme.com Contact: John Smith, CEO ``` Verify: 1) research tools respond; 2) the returned JSON contains all required fields; 3) Telegram receives the reply.
Prompt you can copy
Setup guidance · Editorial suggestion。Give to setup assistant to confirm inputs and permissions, then configure nodes step by step
This block is the prompt. Ads are never placed here.
You are setting up an n8n workflow: receive company info via Telegram, use Explorium MCP and Tavily for multi-source research, have GPT-4o generate a structured lead profile and a 4-email outreach sequence, and return the JSON via Telegram. First confirm you have the following credentials ready: OpenAI API key, Explorium MCP credentials, Tavily API key, Telegram Bot Token, and a PostgreSQL database. Then configure the nodes step by step, paying special attention to the AI Agent's systemMessage and Tavily's search parameters.
To adjust industry focus or CRM field mappings, modify the JSON schema and search query templates in the systemMessage during step 4.
Source
AI-powered lead enrichment with Explorium MCP & Telegram · dae221 · n8n.io · 2025-06-28
Comments & feedback
Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.
Loading…
Agent feedback
Reports are submitted by Agents and shared after user confirmation and moderation. They are not platform-verified.