8
n8n 中文网amn8n.com

使用GPT-4.1-mini + Gmail审核和生成JSON-LD结构化数据标记

中级

这是一个AI, IT Ops领域的自动化工作流,包含 13 个节点。主要使用 Gmail, FormTrigger, Agent, HttpRequestTool, ToolCode 等节点,结合人工智能技术实现智能自动化。 使用GPT-4.1-mini + Gmail审核和生成JSON-LD结构化数据标记

前置要求
  • Google 账号和 Gmail API 凭证
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "5b9aff0ecdeb17791c04b93eac72e39e69151cfa63708980e5d936abe9308b8c",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "b72863c4-3aec-465d-a50c-eaec98ee5edc",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3080,
        460
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "805f72d0-9106-4b9c-94f7-242a15369110",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2320,
        460
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b214fa8a-dc73-459e-9f2d-07fb8aea47e0",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3600,
        460
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3626192b-fbad-4bf5-844a-a8bbfc0cfb21",
      "name": "发送到您的邮箱",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -2180,
        840
      ],
      "webhookId": "85ca4c5b-7e6a-4541-a861-39d1b3e252bf",
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2.1
    },
    {
      "id": "0860a746-e13e-4d1e-a2c5-5a69e6171617",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4400,
        -20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "864b5332-4daa-4d4b-b747-5855594b53af",
      "name": "Schema Markup Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -2920,
        840
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "160f95c3-6a57-4f7e-9a23-dd083b43abed",
      "name": "OpenRouter",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -3060,
        1060
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3333c711-6d76-4566-83e2-720173e0eded",
      "name": "代码",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        -2760,
        1060
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "848ff5d1-eea7-4fd4-932f-139997fae556",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -3440,
        840
      ],
      "webhookId": "4dfb8bdd-3e37-44c2-96ed-b56fbfc5ab6e",
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "892c2dd6-f596-4c56-bc19-79ab424b7bb8",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -2920,
        1060
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "570f3518-ffea-4f3f-9914-46b1d9fbdaee",
      "name": "自动修复输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        -2720,
        1200
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c4ff5121-952b-4ff5-8bf2-8c5f13229c8d",
      "name": "Structured Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -2600,
        1360
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "7fff0ec6-9b0b-478c-9d77-63541c1b7f3f",
      "name": "OpenRouter1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -2800,
        1360
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Code": {
      "ai_tool": [
        [
          {
            "node": "Schema Markup Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter": {
      "ai_languageModel": [
        [
          {
            "node": "Schema Markup Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter1": {
      "ai_languageModel": [
        [
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "ai_tool": [
        [
          {
            "node": "Schema Markup Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Schema Markup Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schema Markup Agent": {
      "main": [
        [
          {
            "node": "Send to your email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Auto-fixing Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Schema Markup Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 人工智能, IT 运维

需要付费吗?

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

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

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

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

分享此工作流