8
n8n 中文网amn8n.com

Facebook - Meta广告效果监控与Slack警报

中级

这是一个Social Media, Multimodal AI领域的自动化工作流,包含 8 个节点。主要使用 Set, Code, Slack, ManualTrigger, FacebookGraphApi 等节点。 Facebook/Meta广告效果监控与Slack警报(点击率、单次点击成本、广告支出回报率)

前置要求
  • Slack Bot Token 或 Webhook URL
  • Facebook Graph API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "2718e70d3927cc6f222cd0fca1f41929053688eb8b4504451ee7746fdfef7be1",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "655b4bb1-73a3-45e4-8596-65cfc84a6e1b",
      "name": "当点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -448,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "87cb53c6-6551-4794-a22e-81051de23bc5",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        -224,
        0
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "5534d749-c7be-4275-ba9f-91d4a20a039b",
      "name": "扁平化行",
      "type": "n8n-nodes-base.code",
      "position": [
        448,
        0
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "156898d5-b770-4e6f-b93d-f33d156abdfa",
      "name": "Meta 广告洞察",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        224,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8203fb7b-6941-4296-9ac5-08bd973423a5",
      "name": "计算日期范围",
      "type": "n8n-nodes-base.code",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5201a432-482b-4997-9b90-1262593f357d",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        -592
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "79217107-7341-4df0-b405-97b841b69d68",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        -784
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "be05d464-e1b4-4326-a1eb-f4ff5bb6ae57",
      "name": "发送警报",
      "type": "n8n-nodes-base.slack",
      "position": [
        672,
        0
      ],
      "webhookId": "d893bb24-5ebe-4609-92fb-59e51a8d67a4",
      "parameters": {},
      "typeVersion": 2.3
    }
  ],
  "pinData": {},
  "connections": {
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Calculate date range",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Flatten Rows": {
      "main": [
        [
          {
            "node": "Send an alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Meta Ad Insights": {
      "main": [
        [
          {
            "node": "Flatten Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate date range": {
      "main": [
        [
          {
            "node": "Meta Ad Insights",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 社交媒体, 多模态 AI

需要付费吗?

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

工作流信息
难度等级
中级
节点数量8
分类2
节点类型6
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者

Software Engineer & Automations Specialist

外部链接
在 n8n.io 查看

分享此工作流