8
n8n 中文网amn8n.com

咨询AI关于Meta广告 - 询问Facebook广告洞察问题

高级

这是一个AI, Marketing领域的自动化工作流,包含 21 个节点。主要使用 Set, Filter, Telegram, Agent, TelegramTrigger 等节点,结合人工智能技术实现智能自动化。 咨询AI关于Meta广告 - 询问Facebook广告洞察问题

前置要求
  • Telegram Bot Token
  • OpenAI API Key
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "d6b502dfa4d9dd072cdc5c2bb763558661053f651289291352a84403e01b3d1b",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "5401df22-bc19-472f-bfc5-6b80386fdb3d",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        460,
        -160
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "ec6cf3f9-36d9-4c16-bc2c-15cdc715a152",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        280,
        120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "0a83c161-34c3-4cb1-ae28-f4d78656a741",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -340,
        -20
      ],
      "webhookId": "4eff8508-4aef-4680-8795-6d6d6fd6c53a",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "c6a35360-88ed-4664-aa53-bc999bdfc68e",
      "name": "计算器",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        760,
        120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2184afe7-2d1f-4fbb-9905-d76668cabdcc",
      "name": "Meta 广告洞察",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        600,
        120
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "debafe78-aa77-4ec1-875c-f4e7c48719b0",
      "name": "Telegram触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -340,
        -340
      ],
      "webhookId": "e3022664-cc33-4ea6-98c0-1bdfd73f078f",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "3d01568d-f080-4475-b4fc-058ad853be13",
      "name": "按聊天 ID 筛选",
      "type": "n8n-nodes-base.filter",
      "position": [
        -120,
        -340
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "701a0506-e61c-4df2-9de8-9d6c335cc84d",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -500
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9c258c2b-049e-45b0-8d5e-e69d16bf7fa2",
      "name": "设置会话 ID",
      "type": "n8n-nodes-base.set",
      "position": [
        140,
        -160
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "e7540581-37f5-4aa1-a549-3800b7667a63",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -500
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "439cf1c6-3dbb-4db9-9f98-1fface2fb72c",
      "name": "聊天记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        440,
        120
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "fe0051ab-14c1-4756-8cac-8f9bd83ab0fb",
      "name": "发送消息",
      "type": "n8n-nodes-base.telegram",
      "position": [
        880,
        -160
      ],
      "webhookId": "ed44bff7-7d39-4227-8524-5f1fff065de7",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "63565686-ac87-4d83-b4c1-f21d116504d0",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1060,
        -500
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f02f77e0-e22b-49f0-8236-fe8909f93c2c",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        780,
        -440
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "00266b8f-4291-446d-b7d6-5253bd5e11a1",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f7e8f40e-0dec-4fcd-9f0c-513c4e928312",
      "name": "聊天记忆管理器",
      "type": "@n8n/n8n-nodes-langchain.memoryManager",
      "position": [
        1540,
        180
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "52731de1-dc59-47e7-b30e-9fc3c88f2ab2",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c7237776-4f2b-40bc-8bfc-1d64183f0874",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ac7d8426-3f0f-4e36-be80-f54e027e0e4e",
      "name": "聊天记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1560,
        360
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "ac10fe4e-3827-4db7-8601-aec540aeb3b9",
      "name": "清理记忆",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1160,
        200
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "2d20bede-4d1b-44c7-8be9-1f717cdf31fd",
      "name": "当由另一个工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        1340,
        180
      ],
      "parameters": {},
      "typeVersion": 1.1
    }
  ],
  "pinData": {},
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculator": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Chat Memory": {
      "ai_memory": [
        [
          {
            "node": "Chat Memory Manager",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Chat memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Clean Memory": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Set sessionId": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Filter by chat ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter by chat ID": {
      "main": [
        [
          {
            "node": "Set sessionId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Meta Ads Insights": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Set sessionId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Chat Memory Manager",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 人工智能, 营销

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量21
分类2
节点类型14
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Solomon

Solomon

@solomon

Freelance consultant from Brazil, specializing in automations and data analysis. I work with select clients, addressing their toughest projects. For business inquiries, email me at automations.solomon@gmail.com or message me on Telegram for a faster response.

外部链接
在 n8n.io 查看

分享此工作流