8
n8n 中文网amn8n.com

Notion想法收集器

中级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 9 个节点。主要使用 Code, Slack, Notion, Webhook, Agent 等节点。 使用GPT-4o-mini、Notion和Slack通知捕获和处理想法

前置要求
  • Slack Bot Token 或 Webhook URL
  • Notion API Key
  • HTTP Webhook 端点(n8n 会自动生成)
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "name": "Notion想法收集器",
  "nodes": [
    {
      "id": "555579a1-2e02-4273-85d4-a2d456b1b083",
      "name": "🌐 Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -240,
        64
      ],
      "parameters": {
        "path": "webhook-path-here",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2.1
    },
    {
      "id": "0ae8d1e6-0ba1-42d8-a477-f00434d0f449",
      "name": "🤖 AI代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -16,
        64
      ],
      "parameters": {
        "text": "={{ $json.body.text }}\nUser ID: {{ $json.body.user_id }}\n\nthis is the input based on the input you have to give \nTitle, tags, submitted by, created(Actual date in IST) {{ new Date().toISOString() }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "1a11f67b-58f0-4bab-9a39-24504216e038",
      "name": "💬 OpenAI聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        64,
        288
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "e1a3b2c3-6853-4df0-8cd3-33f3f8c2a087",
      "name": "🧑‍💻 代码",
      "type": "n8n-nodes-base.code",
      "position": [
        336,
        64
      ],
      "parameters": {
        "jsCode": "const items = $input.all();\n\nlet results = [];\n\nfor (const item of items) {\n  const text = item.json.output;\n\n  const titleMatch = text.match(/Title:\\s*(.+)/);\n  const tagsMatch = text.match(/Tags:\\s*(.+)/);\n  const submittedByMatch = text.match(/Submitted by:\\s*(.+)/);\n  const createdMatch = text.match(/Created:\\s*(.+)/);\n\n  results.push({\n    json: {\n      Title: titleMatch ? titleMatch[1].trim() : null,\n      Tags: tagsMatch ? tagsMatch[1].split(\",\").map(tag => tag.trim()) : [],\n      \"Submitted By\": submittedByMatch ? submittedByMatch[1].trim() : null,\n      Created: createdMatch ? createdMatch[1].trim() : null\n    }\n  });\n}\n\nreturn results;"
      },
      "typeVersion": 2
    },
    {
      "id": "a4d36c4d-8c78-405b-9465-ae05d5c7f54e",
      "name": "📝 添加到Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        560,
        64
      ],
      "parameters": {
        "title": "={{ $json.Title }}",
        "options": {},
        "resource": "databasePage",
        "databaseId": {
          "__rl": true,
          "mode": "list",
          "value": "YOUR_NOTION_DATABASE_ID"
        },
        "propertiesUi": {
          "propertyValues": [
            {
              "key": "Title|title",
              "type": "title",
              "title": "={{ $json.Title }}"
            },
            {
              "key": "Submitted By|rich_text",
              "type": "rich_text",
              "textContent": "={{ $json['Submitted By'] }}"
            },
            {
              "key": "Created|date",
              "date": "={{ $json.Created.replace(' IST', '') }}",
              "timezone": "Asia/Kolkata",
              "includeTime": false
            },
            {
              "key": "Tags|rich_text",
              "textContent": "={{ $json.Tags.join(', ') }}"
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "94c0952d-7f0e-4be5-9041-6144d20fdd13",
      "name": "✅ 发送确认(Slack)",
      "type": "n8n-nodes-base.slack",
      "position": [
        784,
        64
      ],
      "parameters": {
        "text": "✅ Your idea has been added to our Product Ideas database!\n\n💡 *Idea:* {{ $json.Title }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "#general"
        },
        "otherOptions": {},
        "authentication": "oAuth2"
      },
      "typeVersion": 2
    },
    {
      "id": "37362989-2e8c-49aa-81ff-cee9ce44c8b8",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -288,
        -368
      ],
      "parameters": {
        "color": 5,
        "width": 784,
        "height": 800,
        "content": "## 🛠️ 数据处理与转换"
      },
      "typeVersion": 1
    },
    {
      "id": "0546d4fa-157a-49ba-93cb-95d34a2080c9",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        -368
      ],
      "parameters": {
        "color": 3,
        "width": 192,
        "height": 800,
        "content": "## 🗂️ 数据库(Notion集成)"
      },
      "typeVersion": 1
    },
    {
      "id": "b044e4f5-7a4f-4bd5-9093-1785a1553bf4",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -368
      ],
      "parameters": {
        "color": 4,
        "width": 208,
        "height": 800,
        "content": "## 💬 通知"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "🌐 Webhook": {
      "main": [
        [
          {
            "node": "🤖 AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 AI Agent": {
      "main": [
        [
          {
            "node": "🧑‍💻 Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🧑‍💻 Code": {
      "main": [
        [
          {
            "node": "📝 Add to Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📝 Add to Notion": {
      "main": [
        [
          {
            "node": "✅ Send Confirmation (Slack)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "💬 OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "🤖 AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 内容创作, 多模态 AI

需要付费吗?

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

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

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

作者
Avkash Kakdiya

Avkash Kakdiya

@itechnotion

🚀 Founder of iTechNotion — we build custom AI-powered automation workflows for startups, agencies, and founders. 💡 Specializing in agentic AI systems, content automation, sales funnels, and digital workers. 🔧 14+ years in tech | Building scalable no-code/low-code solutions using n8n, OpenAI, and other API-first tools. 📬 Let’s automate what slows you down.

外部链接
在 n8n.io 查看

分享此工作流