8
n8n 中文网amn8n.com

Mark2Notion追加

中级

这是一个Document Extraction, Miscellaneous, Multimodal AI领域的自动化工作流,包含 8 个节点。主要使用 Set, Notion, HttpRequest, ManualTrigger 等节点。 使用Mark2Notion将Markdown转换为格式化的Notion页面

前置要求
  • Notion API Key
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "QGikyQ1WgZENu9e5",
  "meta": {
    "instanceId": "636ac343c8909ac80cd6df77ded2011408792e94d4f89fc23dbb1a174ee7ecba"
  },
  "name": "Mark2Notion 追加",
  "tags": [],
  "nodes": [
    {
      "id": "0571b66a-e756-45f2-958b-899ee08dfab2",
      "name": "当您点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        608,
        352
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "278285e1-183a-4a63-a2f9-10e0be2f4a9f",
      "name": "创建页面",
      "type": "n8n-nodes-base.notion",
      "position": [
        1232,
        352
      ],
      "parameters": {
        "title": "Mark2Notion Test Page",
        "pageId": {
          "__rl": true,
          "mode": "id"
        },
        "options": {}
      },
      "typeVersion": 2.2
    },
    {
      "id": "fce17ffd-0f61-4da6-9f40-2a455217897b",
      "name": "设置 Markdown",
      "type": "n8n-nodes-base.set",
      "position": [
        864,
        352
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"markdown\": \"# Header 1\\n\\n## Header 2\\n\\nThis is a short paragraph to demonstrate basic Markdown formatting.\\n\\n- Item 1\\n  - Subitem 1.1\\n    - Subitem 1.1.1\\n- Item 2\\n  - Subitem 2.1\\n- Item 3\\n\\n| Column 1 | Column 2 | Column 3 |\\n|----------|----------|----------|\\n| Row 1    | Data A   | Data B   |\\n| Row 2    | Data C   | Data D   |\\n| Row 3    | Data E   | Data F   |\"\n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "143556c0-7d79-4f85-82eb-bbc7b346079c",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 512,
        "height": 800,
        "content": "使用 Mark2Notion API 将 Markdown 文本转换为精美格式的 Notion 页面。此工作流处理 Notion 块结构的所有复杂性,包括表格、嵌套列表、代码块和特殊格式。"
      },
      "typeVersion": 1
    },
    {
      "id": "ef5c6201-88e7-471a-8f98-101f95d8e981",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        128
      ],
      "parameters": {
        "color": 7,
        "width": 304,
        "height": 400,
        "content": "## 在此插入任何 Markdown 输出节点"
      },
      "typeVersion": 1
    },
    {
      "id": "a90361dc-615b-4866-bbc7-4d5750cb2840",
      "name": "HTTP 请求 - Mark2Notion 追加",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1600,
        352
      ],
      "parameters": {
        "url": "https://api.mark2notion.com/api/append",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "markdown",
              "value": "={{ $('Set Markdown').item.json.markdown }}"
            },
            {
              "name": "notionToken"
            },
            {
              "name": "pageId",
              "value": "={{ $json.id }}"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "39157620-b1c5-43ec-92cd-f1259eb57b34",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        128
      ],
      "parameters": {
        "color": 7,
        "width": 320,
        "height": 400,
        "content": "## 设置 Mark2Notion 和 Notion 凭据"
      },
      "typeVersion": 1
    },
    {
      "id": "34b59cec-a312-47f5-8059-d9bf6b2ad858",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        64
      ],
      "parameters": {
        "color": 7,
        "width": 304,
        "height": 464,
        "content": "## 设置 Notion 凭据"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5904ca6b-a787-4228-8e16-985cef7be1cb",
  "connections": {
    "Set Markdown": {
      "main": [
        [
          {
            "node": "Create a page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a page": {
      "main": [
        [
          {
            "node": "HTTP Request - Mark2Notion Append",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When you click 'Execute Workflow'": {
      "main": [
        [
          {
            "node": "Set Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 文档提取, 杂项, 多模态 AI

需要付费吗?

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

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

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

作者

Developer with over 10+ years of experience. Automation enthusiast.

外部链接
在 n8n.io 查看

分享此工作流