8
n8n 中文网amn8n.com

Instagram MCP服务器

高级

这是一个AI, Marketing领域的自动化工作流,包含 17 个节点。主要使用 Set, Agent, McpTrigger, ChatTrigger, LmChatOpenAi 等节点,结合人工智能技术实现智能自动化。 Instagram MCP AI代理 - 使用GPT-4o读取、回复和管理评论

前置要求
  • OpenAI API Key
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "q0efJd3N6ztzB8JA",
  "meta": {
    "instanceId": "b79da95dcb1b69eebc3470f6fd833d7e53e389c229c716386bdb8e7c291ad2b9",
    "templateCredsSetupCompleted": true
  },
  "name": "MCP Server Instagram",
  "tags": [],
  "nodes": [
    {
      "id": "cb5e4706-3067-4e22-bceb-978a79758aa0",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -380,
        80
      ],
      "webhookId": "e7738761-a095-4c39-9373-9150b5bd9363",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "1cfe6ac2-8a2c-4f62-a60f-2aa028888091",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        120,
        -20
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "17818b50-9b73-4d76-aa8b-aec9aa0af79e",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        180,
        140
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "3eb7ec47-9423-481a-b4c3-810d9d73a74a",
      "name": "🗂️ MCP Instagram",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        900,
        -140
      ],
      "webhookId": "8908a953-c518-49c2-90f5-a995c8fe69bc",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "051a712a-f56f-45c5-be7f-71f34fe49c4a",
      "name": "MCP Instagram",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        520,
        140
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8f1014ee-2190-490f-8ceb-c97ecc155e71",
      "name": "搜索媒体",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        740,
        100
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "470e639b-b967-4b97-b503-d42fa5dddefd",
      "name": "Instagram 映射",
      "type": "n8n-nodes-base.set",
      "position": [
        -160,
        80
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "907e2456-0695-4baa-bbca-2d58e336d19a",
      "name": "媒体详情",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        880,
        100
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "7c725835-8a5b-402d-87b6-82d11581c764",
      "name": "搜索评论",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1020,
        100
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "8b22ce96-46e3-47a8-853d-4c4e242a913f",
      "name": "回复评论",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1160,
        100
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "6d55e836-b087-461b-8501-4c2b5dc91e90",
      "name": "发送私信",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1300,
        100
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "2c1bd6ac-a7f9-41a2-9312-d02a8cd3a440",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        -140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d1542156-a304-45d0-b70c-0757fff0ae1b",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "01c354a8-cbfb-4e39-91d1-11dbe15b1c65",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20,
        -140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "41c83391-415e-4360-ad19-8e1ce68c9a82",
      "name": "聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        60,
        140
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "c381f9bc-9053-4f93-8c5b-9ceb769857af",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2042f1f6-8ab2-458e-a7ec-91426c649381",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        -280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "551d4f14-9845-4fc1-a81b-63e1b97be3b5",
  "connections": {
    "Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Search Media": {
      "ai_tool": [
        [
          {
            "node": "🗂️ MCP Instagram",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "MCP Instagram": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Media Details": {
      "ai_tool": [
        [
          {
            "node": "🗂️ MCP Instagram",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Reply Comment": {
      "ai_tool": [
        [
          {
            "node": "🗂️ MCP Instagram",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Search Comment": {
      "ai_tool": [
        [
          {
            "node": "🗂️ MCP Instagram",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Instagram Mapping": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Direct Message": {
      "ai_tool": [
        [
          {
            "node": "🗂️ MCP Instagram",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Instagram Mapping",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, 营销

需要付费吗?

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

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

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

作者
Amanda Benks

Amanda Benks

@amanda

Hi loves! I've been making workflows for n8n for two years, and I hope you like my flows <3

外部链接
在 n8n.io 查看

分享此工作流