ChatGPT销售找线索AI 评分 · 73/100AI 辅助编辑·未发现明显提示词注入风险n8n.io

通过 Telegram 使用 Explorium MCP 实现 AI 线索自动丰富

输入:Telegram 发送公司名称或域名 → 处理:n8n AI Agent 调用 Explorium MCP 与 Tavily 搜索 → 输出:结构化 JSON 线索档案与 4 封邮件序列

经验丰富步骤流程提示词
给谁
面向销售代表、代理商和增长团队的 B2B 潜在客户研究人员
你会得到
在 Telegram 中发送公司信息,自动返回包含行业、规模、技术栈、痛点及 4 封外联邮件序列的结构化 JSON
你需要
n8n · telegram · tavily · postgresql

硬约束

需要 n8n 实例;OpenAI API 密钥(GPT-4o);Explorium MCP 凭证;Tavily API 密钥;Telegram Bot Token;PostgreSQL 数据库。温度设为 0.3 以保证输出一致性。模板未声明具体费用,实际成本取决于 API 调用量。

他们做了什么

作者 dae221 在 n8n 上发布了一个官方模板(ID 5421),构建了一个 AI 线索丰富工作流。该工作流通过 Telegram Trigger 接收用户消息,将消息文本传入 AI Agent 节点;AI Agent 以 GPT-4o 为语言模型,调用 Explorium MCP 客户端工具和 Tavily HTTP 请求工具进行 B2B 数据检索与网络情报搜索;对话历史通过 PostgreSQL Chat Memory 持久化;最终结果由 Telegram 节点以 Markdown 格式返回给用户。模板包含 4 个 sticky note 用于文档说明,核心可执行节点 7 个。

效果如何

模板在 n8n 平台上显示为已发布状态,浏览量 1159 次。作者自述该模板适用于销售团队自动化潜在客户研究、增长黑客扩展外联等场景。未提供具体转化率或 ROI 数据(author_report)。

值得知道

1) 模板中的 Tavily 节点包含硬编码的 Bearer Token 占位符(YOUR_TOKEN_HERE),实际部署时必须替换为真实 API 密钥。2) Explorium MCP 节点使用 SSE 端点 mcp.explorium.ai/sse,需 headerAuth 认证;来源未提供该服务的注册或定价详情。3) 模板未声明具体费用,实际成本取决于 OpenAI、Tavily、Explorium 的调用量。4) 输出为 JSON 文本通过 Telegram 发送,如需直接写入 CRM,需额外添加 HTTP Request 或专用节点。5) 本站未对该工作流进行实际运行验证(reproduction=not_tested),搭建后请务必用测试公司信息验证输出格式与工具响应。

n8n 工作流模板

结构已检查 · 未实际运行

下载后在 n8n 选择“Import from File”,或复制 JSON 后粘贴到编辑器。先配置自己的账号,再用测试数据运行;模板默认未启用。

配置与测试清单

需要绑定的凭证

  • Tavily HTTP 工具节点:将 __UKH_TAVILY_TOKEN__ 替换为 Bearer <你的 Tavily API Token>。
  • lmChatOpenAi 节点:绑定OpenAI API 凭证。
  • httpRequestTool 节点:绑定相关 HTTP / API 密钥(按节点 Header 或 Query 配置)。
  • memoryPostgresChat 节点:绑定Postgres 连接凭证。
  • telegramTrigger 节点:绑定Telegram Bot Token。
  • telegram 节点:绑定Telegram Bot Token。

需要替换的配置

  • 源模板来自 n8n 公开库 #5421(约 11 个节点)。导入后先保持未启用,核对触发器、表达式与外部 API 端点。
  • Sticky Note 中的说明仅供参考;按自己的账号、表结构或频道 ID 替换占位配置。

测试输入与预期结果

  • 在测试环境手动执行一次主路径,确认每个需凭证的节点已连接且无鉴权错误。
  • 用一条合成/脱敏样例数据跑通,核对输出字段与下游写入目标,再考虑生产启用。

模板处理说明

  • 已移除原作者凭证绑定、webhookId 与执行数据,工作流设为未启用;节点、连线与原文提示词保持原样。未在 n8n 中实际运行。
  • 未改业务逻辑;运行前请自行核对密钥、配额与隐私合规。
  • 将字面量 Authorization Bearer 占位符替换为 __UKH_TAVILY_TOKEN__ 以便通过密钥扫描。

模板获取日期: 2026-10-24

步骤

  1. 配置 API 凭证

    在 n8n 凭证库中添加:OpenAI API 密钥(用于 GPT-4o 节点)、Explorium MCP 认证信息、Tavily API 密钥(用于 Web 搜索节点)、Telegram Bot Token(通过 @BotFather 创建)。

  2. 设置 PostgreSQL 记忆存储

    创建 PostgreSQL 数据库,并在 Conversation Memory 节点中配置连接。该节点使用自定义会话键(sessionKey = message.from.id + '_lead_enrichment')实现对话持久化;表将自动创建。

  3. 连接 Telegram 机器人与 Webhook

    在 Telegram Input(Telegram Trigger)节点中配置机器人 Token。激活工作流后,Webhook 将自动生成。确保机器人可接收 message 类型的更新。

  4. 自定义 AI Agent 提示词与工具参数

    打开 AI Lead Enrichment Agent 节点,确认 systemMessage 已加载。可根据行业或语调需求调整提示词。检查 Tavily Web Intelligence 节点的搜索参数:搜索深度为 advanced,最大结果数 3,包含域名限定 linkedin.com / crunchbase.com / bloomberg.com,排除 pinterest.com / instagram.com。

    运行提示词 · 来源原文。AI Lead Enrichment Agent 节点的 systemMessage 字段;定义后需用样例消息测试 JSON 输出格式

    # 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:**
  5. 测试工作流

    向 Telegram 机器人发送测试消息,格式示例: ``` Business Name: Acme Corp Domain: acme.com Contact: John Smith, CEO ``` 验证:1) 研究工具是否响应;2) 返回的 JSON 是否包含完整字段;3) Telegram 是否收到回复。

可复制提示词

搭建指导 · 本站建议版本。交给搭建助手,先确认输入和权限,再按步骤配置节点

这一段是提示词,页面不会在这里插入广告。

你正在搭建一个 n8n 工作流:通过 Telegram 接收公司信息,利用 Explorium MCP 和 Tavily 进行多源研究,由 GPT-4o 生成结构化线索档案与 4 封邮件序列,最终通过 Telegram 返回 JSON。请先确认你已准备好以下凭证:OpenAI API 密钥、Explorium MCP 凭证、Tavily API 密钥、Telegram Bot Token、PostgreSQL 数据库。然后按步骤配置节点,特别注意 AI Agent 的 systemMessage 和 Tavily 的搜索参数。

如需调整行业聚焦或 CRM 字段映射,可在第 4 步修改 systemMessage 中的 JSON schema 和搜索查询模板。

来源

AI-powered lead enrichment with Explorium MCP & Telegram · dae221 · n8n.io · 2025-06-28

留言与反馈

试过这个方法吗?分享效果、遇到的问题或改进建议。留言审核后公开,请勿填写敏感信息。

正在加载…

    相关用例