8
n8n 中文网amn8n.com

自动化网站创建和部署

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 18 个节点。主要使用 Set, Airtable, Compression, FormTrigger, HttpRequest 等节点。 使用Gemini AI和Netlify自动部署生成和部署网站

前置要求
  • Airtable API Key
  • 可能需要目标 API 的认证凭证
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "A0ZiRwjGoLv9WfqF",
  "meta": {
    "instanceId": "2b5b3e4e3360d61ccaa26e18d18e4db97329345b88b7327148fa7e573b3aac1e",
    "templateCredsSetupCompleted": true
  },
  "name": "自动化网站创建和部署",
  "tags": [],
  "nodes": [
    {
      "id": "b91c5873-9526-4a91-a524-6affaa010be2",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -672,
        -288
      ],
      "webhookId": "04e74947-9fa5-43ce-b763-8d833067f220",
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "68b201ad-3784-4545-999b-b302c3357684",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -416,
        -288
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "f164a81a-8176-4b16-b411-7b4daad31e13",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -448,
        -64
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "723dfd0a-d929-4240-a336-abe41cd37317",
      "name": "多表:您可以连接多个表以实现有组织的数据结构",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -320,
        -64
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "971a98d6-13e5-4782-bae5-27c7cfc46814",
      "name": "Google Gemini 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -240,
        144
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b43d4476-2d89-4a65-9ddc-54cde6e5552f",
      "name": "Netlify - 获取当前用户(认证检查)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        48,
        -288
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "892e151e-3a6a-429a-aced-795c821b58b5",
      "name": "Netlify - 创建新站点",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        272,
        -288
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "15ccae1f-606e-4ea1-a76b-fb1e89c6433a",
      "name": "创建记录",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1392,
        -288
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "5bd1f06a-806f-4d5e-85df-686203e1bc8b",
      "name": "将 HTML 文本转换为 HTML 文件",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        720,
        -288
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "1dc6655b-ed19-4fcf-89ec-7fad4b5249d6",
      "name": "压缩为 ZIP",
      "type": "n8n-nodes-base.compression",
      "position": [
        944,
        -288
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "4938eab5-b7be-4895-aa5c-fa2add6fe8fd",
      "name": "Netlify - 创建部署",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1168,
        -288
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "3d155ce0-5183-46d0-8817-67bf3fd71b52",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        496,
        -288
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "8350477f-9649-4255-88f3-a6baaf61809f",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1472,
        -464
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "4db8ac14-9f63-4c63-ad59-2385a9d5df57",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1472,
        0
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "74749ff8-7fe0-4fd1-92a1-42d8d3b14892",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -896,
        -448
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "2ba6a67f-2f40-4e49-94ff-c5f39978b254",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -480
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "f4791af5-c039-4029-9477-0fc50be02a94",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -496
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "12d312f0-13c4-4893-bb35-a780e402e626",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1360,
        -496
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "30eeb610-8fc3-404c-a54f-75ec2023d6f8",
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Netlify - Get Current User (AUTH CHECK)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Convert html text to HTML File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a record": {
      "main": [
        []
      ]
    },
    "Compression to ZIP": {
      "main": [
        [
          {
            "node": "Netlify - Create deployment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Netlify - Create new site": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Netlify - Create deployment": {
      "main": [
        [
          {
            "node": "Create a record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert html text to HTML File": {
      "main": [
        [
          {
            "node": "Compression to ZIP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Netlify - Get Current User (AUTH CHECK)": {
      "main": [
        [
          {
            "node": "Netlify - Create new site",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
外部链接
在 n8n.io 查看

分享此工作流