8
n8n 中文网amn8n.com

使用GPT-4情感分析在Notion中分析与标记用户反馈

高级

这是一个Sales, Support, AI, Marketing领域的自动化工作流,包含 31 个节点。主要使用 Set, Code, Merge, Notion, NotionTool 等节点,结合人工智能技术实现智能自动化。 使用GPT-4情感分析在Notion中分析与标记用户反馈

前置要求
  • Notion API Key
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "f4f5d195bb2162a0972f737368404b18be694648d365d6c6771d7b4909d28167",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "d4f8359b-c80b-409c-a5e3-0c4a2b1868ae",
      "name": "更新反馈情感分析",
      "type": "n8n-nodes-base.notion",
      "position": [
        1660,
        -220
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "76fd1d49-3c0e-4f82-a362-e9e934fb4603",
      "name": "获取数据库结构",
      "type": "n8n-nodes-base.notion",
      "position": [
        1640,
        440
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "cdea1403-bb1f-498e-bed7-999f5a32ac67",
      "name": "获取所有反馈",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        3360,
        600
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "c0c95739-45b9-4947-b214-0d238b51c33b",
      "name": "获取所有洞察",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        3180,
        600
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "90241f39-a8af-4675-a57a-f1391f9b513c",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        3980,
        760
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f93b5559-8eb5-4216-95b8-82e061a71b24",
      "name": "情感分析1",
      "type": "@n8n/n8n-nodes-langchain.sentimentAnalysis",
      "position": [
        1240,
        -220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "33b9c804-4f4b-44ae-8238-2bdb5e859665",
      "name": "自动修复输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        3800,
        620
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8a306667-f028-48fc-a3a3-44bf33d79cad",
      "name": "创建新洞察",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        3520,
        600
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "2146f34b-9f59-404e-b70d-f8e22b7f49b0",
      "name": "窗口缓冲记忆1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        2860,
        600
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "87c6d9a6-58d7-4a58-b1da-3ee37ab58e3e",
      "name": "更新反馈",
      "type": "n8n-nodes-base.notion",
      "maxTries": 2,
      "position": [
        3860,
        160
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 2.2,
      "waitBetweenTries": 5000
    },
    {
      "id": "965d9764-2916-4bc5-bc46-37d242871173",
      "name": "在数据库项更新时",
      "type": "n8n-nodes-base.notionTrigger",
      "position": [
        920,
        140
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2d691c3b-92c9-4f70-b51c-cfb11455b52e",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        2420,
        160
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "9a0475cd-906a-4bdc-a9db-167dabc1916a",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        860,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "49d3e282-b43a-435f-b04f-663680383f09",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        -340
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ec11349c-fc60-41f1-baa7-01ab6c25ddc8",
      "name": "OpenAI - 情感分析",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1340,
        -80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3d3051dc-c141-4917-a7a4-25d6bb9d8065",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1200,
        240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "cda892d3-d588-418d-85ac-d266bf91592b",
      "name": "设置产品信息",
      "type": "n8n-nodes-base.set",
      "position": [
        1300,
        440
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "c7a2465f-4062-49e7-9dd3-70768d7f00d4",
      "name": "设置提示",
      "type": "n8n-nodes-base.set",
      "position": [
        2120,
        440
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "a6ed81c9-b6d8-4777-b6bb-c27c91becb0d",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1580,
        240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "616e34d9-2c57-4942-befc-4ee2b585934e",
      "name": "清理数据库属性",
      "type": "n8n-nodes-base.code",
      "position": [
        1820,
        440
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "158439de-221a-492e-adc3-746cb2201321",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2020,
        240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9a0f41b8-9fc3-4a79-9d65-1e7032a28574",
      "name": "OpenAI - AI 代理",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2540,
        600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "356ed301-f92d-4e0e-a07b-1e56ce0b7af1",
      "name": "OpenAI - 解析器修复",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3840,
        760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6e16a3c3-5453-4e75-9742-8a2f1efb92a0",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2440,
        400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8ef22961-fcef-4f48-9e27-36caefe91ce6",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2760,
        400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "61144e4d-9c4e-41cb-98ef-aecefc5dd721",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3080,
        400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "68d38fd5-6aa5-4e4d-8019-d43767d4e03b",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2864.257816298081,
        -35.53222703726067
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c24f6d6f-4291-4a25-a874-8ae676db104e",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3740,
        400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "cb5af46d-2dc2-409f-bff3-56e16beb6cb2",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2940,
        160
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "321d155f-b2a2-4073-83d7-3893b3f52a12",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3740,
        -40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e7c6de3b-3787-449f-be67-f2bd3ab07412",
      "name": "便签11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -360
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Update Feedback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Prompt": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get all feedback": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get all insights": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - AI Agent": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Create New Insight": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Sentiment Analysis1": {
      "main": [
        [
          {
            "node": "update feedback sentiment analysis",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "update feedback sentiment analysis",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "update feedback sentiment analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory1": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Get database structure": {
      "main": [
        [
          {
            "node": "Clean the database propertied",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - Parser fixing": {
      "ai_languageModel": [
        [
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "on database item update": {
      "main": [
        [
          {
            "node": "Sentiment Analysis1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Set the Product information",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Auto-fixing Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - Sentiment Analysis": {
      "ai_languageModel": [
        [
          {
            "node": "Sentiment Analysis1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set the Product information": {
      "main": [
        [
          {
            "node": "Get database structure",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean the database propertied": {
      "main": [
        [
          {
            "node": "Set Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 销售, 客户支持, 人工智能, 营销

需要付费吗?

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

工作流信息
难度等级
高级
节点数量31
分类4
节点类型13
难度说明

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

作者
Agent Studio

Agent Studio

@agentstudio

We are a product studio that helps organizations leverage no-code and generative AI to automate internal processes and launch new digital products.

外部链接
在 n8n.io 查看

分享此工作流