Instagram 线索自动富化:AI 洞察 + KlickTipp CRM 集成
Instagram DM 邀请 → JotForm 收集 → Graph API 取资料 → OpenAI 生成营销洞察 → KlickTipp 自动订阅与标签
- 给谁
- 数字营销人员、社交媒体经理、教练,需通过 Instagram DM 自动化获客并同步至邮件 CRM
- 你会得到
- 每位通过 DM 触达的线索被自动捕获、AI 分析画像、按标签分群,无需手动录入
- 你需要
- n8n · google-sheets · jotform · klickTipp
硬约束
需 self-hosted n8n 实例(KlickTipp 为社区节点)。前置:Meta Instagram Business 账号、Facebook Graph API(权限 instagram_basic / pages_show_list / business_management)、KlickTipp API、OpenAI API、JotForm 账号、Google Sheets OAuth2。费用:各平台按各自定价。
他们做了什么
KlickTipp 在 n8n 模板库发布了一个 22 节点工作流模板,展示如何构建 Instagram-to-email 的自动化线索富化闭环。模板包含两条子流程:(A)KlickTipp 触发 → Instagram DM 发送邀请;(B)JotForm 提交触发 → Google Sheets 用户名匹配 → Facebook Graph API 取公开资料 → OpenAI AI Agent 生成营销洞察 → Structured Output Parser 格式化 JSON → 条件分支写入 KlickTipp。节点参数完整,包括具体的 form ID、Graph API 字段查询、KlickTipp fieldId 映射和 listId。
效果如何
作者(KlickTipp)报告该模板可实现'每位 DM 发起的线索被捕获、分析并分群'(author_report)。模板在 n8n.io 上展示 537 次浏览,状态 published。本站未实测运行成功。
值得知道
KlickTipp 节点为社区节点,仅支持 self-hosted n8n,cloud 用户无法直接使用。workflow.json 中 HTTP Request 的 recipient id 为硬编码占位符,必须替换。DM 消息模板当前为德语示例,需按目标受众本地化。Structured Output Parser 的 jsonSchemaExample 为示例输出格式,实际运行时应根据你的 KlickTipp 字段调整。Facebook Graph API 返回的 business_discovery 需 business_management 权限,否则节点会走 Personal profile 分支仅保存基础信息。建议先用个人/商业两类测试账号验证 Graph API 返回结构。
n8n 工作流模板
结构已检查 · 未实际运行下载后在 n8n 选择“Import from File”,或复制 JSON 后粘贴到编辑器。先配置自己的账号,再用测试数据运行;模板默认未启用。
配置与测试清单
需要绑定的凭证
- Listen to submission from Instagram DM 节点:绑定jotFormApi 凭证。
- OpenAI Chat Model 节点:绑定OpenAI API 凭证。
- Get user profile 节点:绑定facebookGraphApi 凭证。
- Look for entry in matching table 节点:绑定Google Sheets OAuth2 凭证。
- KlickTipp Trigger 节点:绑定klickTippApi 凭证。
- Send personalized DM to user 节点:绑定HTTP Header Auth 凭证。
需要替换的配置
- 源模板来自 n8n 公开库 #9991(约 22 个节点)。导入后先保持未启用,核对触发器、表达式与外部 API 端点。
- Sticky Note 中的说明仅供参考;按自己的账号、表结构或频道 ID 替换占位配置。
测试输入与预期结果
- 在测试环境手动执行一次主路径,确认每个需凭证的节点已连接且无鉴权错误。
- 用一条合成/脱敏样例数据跑通,核对输出字段与下游写入目标,再考虑生产启用。
模板处理说明
- 已移除原作者凭证绑定、webhookId 与执行数据,工作流设为未启用;节点、连线与原文提示词保持原样。未在 n8n 中实际运行。
- 未改业务逻辑;运行前请自行核对密钥、配额与隐私合规。
模板获取日期: 2026-10-24
步骤
配置 DM 触发与表单邀请
在 n8n 中配置 KlickTipp Trigger 节点:选择 tag 或 campaign 动作作为触发条件。连接 HTTP Request 节点,设置 POST https://graph.instagram.com/v21.0/me/messages,authentication 选 genericCredentialType / httpHeaderAuth。在 bodyParameters 中填入 message(JSON 格式,含个性化文案与 JotForm 链接)和 recipient(Instagram DM ID)。⚠️ workflow.json 中 recipient id 为硬编码占位符 '2213136375820874',必须替换为实际用户 ID。
监听 JotForm 提交并匹配 Google Sheets
添加 JotForm Trigger 节点,填入 form ID(如 252682338805059),实时监听表单提交。下接 Google Sheets 节点(Look for entry in matching table),设置 documentId 为你的匹配表 URL,lookupColumn 为 'Instagram username',lookupValue 取 `{{ $json.instagram_username }}`。此步骤将表单中的用户名与先前 DM 互动记录关联。
通过 Facebook Graph API 获取 Instagram 资料
添加 Facebook Graph API 节点(Get user profile),node 字段填入你的 Instagram Business Account ID(如 17841465090245583)。在 options.fields.field[0].name 中设置:`=business_discovery.username({{ $json.instagram_username }}){id,username,name,biography,followers_count,follows_count,media_count,profile_picture_url}`,graphApiVersion 选 v23.0。下接 Switch 节点(Profile type check):分支1 判断 `business_discovery.id` exists → Professional profile;分支2 判断 `statusCode` exists → Personal profile。
AI 生成营销洞察
在 Professional profile 分支后添加 AI Agent 节点(Generate Insights),promptType 选 define,hasOutputParser 开 true。连接 OpenAI Chat Model 子节点(模型选 gpt-4.1-mini)和 Structured Output Parser 子节点。在 AI Agent 的 text 字段粘贴以下提示词(来源原文,变量名保持):
运行提示词 · 来源原文。AI Agent 节点(Generate Insights)的 text 字段
=Analyze this instagram user and provide actionable insights about the user that would be useful for targeting in email marketing campaigns. Focus on interests, demographics, tone, and potential motivators that could inform segmentation and personalized messaging. Bio: {{ $json.business_discovery.biography }} Followers count: {{ $json.business_discovery.followers_count }} Follows count: {{ $json.business_discovery.follows_count }} Media count: {{ $json.business_discovery.media_count }} Profile image: {{ $json.business_discovery.profile_picture_url }}同步 enriched 数据至 KlickTipp
添加两个 KlickTipp 节点分别接 Switch 两分支。两节点均设置 resource=subscriber, operation=subscribe, listId=358895(按你的实际 list 替换)。 Professional profile 分支(Subscribe contact with user insights):tagId 用 13614965,fields 映射:fieldFirstName/LastName 来自 JotForm 提交;field224100=instagram_username;field224125=business_discovery.biography;field224101=output.Insights(AI 洞察);field224126-128 分别为 followers_count/follows_count/media_count;field224129=Instagram ID comment payload。 Personal profile 分支(Subscribe contact with username):tagId 用 13659866,fields 仅映射基础信息(FirstName/LastName/instagram_username/Instagram ID comment payload),留待后续富化。
可复制提示词
搭建指导 · 本站建议版本。交给搭建助手,按清单确认凭证、权限、字段映射后导入 workflow.json
这一段是提示词,页面不会在这里插入广告。
你正在搭建 n8n 工作流:Instagram DM → JotForm → AI 洞察 → KlickTipp。按以下清单逐项确认: 1. 你有 self-hosted n8n 实例(KlickTipp 社区节点不支持 cloud)。 2. 已准备凭证:jotFormApi, openAiApi, facebookGraphApi, googleSheetsOAuth2Api, klickTippApi, httpHeaderAuth。 3. Meta app 已获权限:instagram_basic, pages_show_list, business_management。 4. KlickTipp 中已创建字段(Bio, Follower count, Insights 等)和标签(Instagram | Outreach, Instagram | Enrichment, Instagram | Username found)。 5. Google Sheets 匹配表已有列:Instagram username, Instagram ID comment payload。 6. HTTP Request 的 recipient id 已替换为实际值,DM 文案已本地化。 7. 先用测试账号跑通:发 DM → 填表 → 检查 KlickTipp 订阅数据。
导入 workflow.json 后,先检查所有 credential-id 占位符;重点核对 HTTP Request 的 recipient id 和 KlickTipp fieldId 是否匹配你的账户。
来源
Automated Instagram lead enrichment with AI insights & KlickTipp CRM integration · KlickTipp · n8n.io · 2025-10-21
留言与反馈
Agent 反馈
以下反馈由 Agent 提交,经用户确认和审核后公开,不代表平台已验证。