8
n8n 中文网amn8n.com

🧑‍🎓 通过交互式挑战和即时反馈测试JSON技能

高级

这是一个Miscellaneous领域的自动化工作流,包含 61 个节点。主要使用 If, Set, Html, StopAndError, ManualTrigger 等节点。 🧑‍🎓 通过交互式挑战和即时反馈测试JSON技能

前置要求
  • 无特殊前置要求,导入即可使用

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "e409ea34548a2afe2dffba31130cd1cf2e98ebe2afaeed2a63caf2a0582d1da0"
  },
  "nodes": [
    {
      "id": "5ec84dc4-48af-4db1-aedf-66de0ba952c4",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "🎉 成功 🎉",
      "type": "n8n-nodes-base.html",
      "notes": "Well done! You're awesome\n\n© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        5280,
        288
      ],
      "parameters": {
        "html": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Success</title>\n</head>\n<body style=\"margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: #f0f2f5; display: flex; align-items: center; justify-content: center; height: 100vh;\">\n\n    <!-- The main success card -->\n    <div style=\"background-color: #ffffff; padding: 40px 50px; border-radius: 12px; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); text-align: center; max-width: 400px; margin: 20px;\">\n\n        <!-- Circular Green Checkmark -->\n        <div style=\"width: 100px; height: 100px; background-color: #28a745; border-radius: 50%; margin: 0 auto 25px auto; display: flex; align-items: center; justify-content: center;\">\n            <span style=\"color: white; font-size: 60px; line-height: 1;\">✔</span>\n        </div>\n\n        <!-- Main Text -->\n        <h1 style=\"font-size: 36px; font-weight: 600; color: #333; margin: 0 0 10px 0;\">\n            Success!\n        </h1>\n\n        <!-- Call to Action Text & Link -->\n        <p style=\"font-size: 16px; color: #555; line-height: 1.5; margin: 0;\">\n            To go further, you can\n         </p>\n        <p style=\"font-size: 16px; color: #555; line-height: 1.5; margin: 0;\">\n            <a href=\"https://n8n.io/creators/lucaspeyrin\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color: #007bff; text-decoration: none; font-weight: 500;\">check out more templates</a>.\n        </p>\n\n    </div>\n\n</body>\n</html>"
      },
      "notesInFlow": true,
      "typeVersion": 1.2
    },
    {
      "id": "2d4e8f50-9e08-48f6-a01d-40685e7f9840",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "指令 - 数字",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1040,
        -32
      ],
      "parameters": {
        "color": 6,
        "width": 300,
        "height": 508,
        "content": "### 步骤2:数字"
      },
      "typeVersion": 1
    },
    {
      "id": "74651a3a-ac84-46b0-b572-dbbbd17407cf",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "反馈不正确2",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1552,
        352
      ],
      "parameters": {
        "color": 7,
        "height": 320,
        "content": "❌ **不正确。**"
      },
      "typeVersion": 1
    },
    {
      "id": "77ecf195-b9d5-4307-8720-c59692b06e77",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "指令 - 布尔值",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1856,
        -112
      ],
      "parameters": {
        "color": 6,
        "width": 316,
        "height": 700,
        "content": "### 步骤3:布尔值"
      },
      "typeVersion": 1
    },
    {
      "id": "007fd671-1f27-41d1-b0eb-567f50aa9cc4",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "测试 - 布尔值",
      "type": "n8n-nodes-base.set",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "disabled": true,
      "position": [
        1968,
        288
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"is_active\": ,\n  \"has_permission\": \n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "bd109f04-fa2c-45a6-97bd-293b6f655897",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "检查 - 布尔值",
      "type": "n8n-nodes-base.if",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        2224,
        288
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "d4e5f6a7-8901-2345-6789-0abcdef12345",
              "operator": {
                "type": "boolean",
                "operation": "equals"
              },
              "leftValue": "={{ $json.is_active }}",
              "rightValue": true
            },
            {
              "id": "e5f6a789-0123-4567-890a-bcdef1234567",
              "operator": {
                "type": "boolean",
                "operation": "equals"
              },
              "leftValue": "={{ $json.has_permission }}",
              "rightValue": false
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "b2a9b160-7a3f-4147-b501-838aec6e66c8",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "反馈正确3",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        2384,
        64
      ],
      "parameters": {
        "color": 7,
        "height": 272,
        "content": "✅ **正确!**"
      },
      "typeVersion": 1
    },
    {
      "id": "744d372f-b9d0-470a-9212-b9d8074e591e",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "成功 - 布尔值",
      "type": "n8n-nodes-base.noOp",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        2448,
        176
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "65d05841-7dad-49d2-ad29-e1ae181ef2f8",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "反馈不正确3",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        2384,
        352
      ],
      "parameters": {
        "color": 7,
        "height": 320,
        "content": "❌ **不正确。**"
      },
      "typeVersion": 1
    },
    {
      "id": "25f6a110-b111-49de-8854-d529db20dde4",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "错误 - 布尔值",
      "type": "n8n-nodes-base.stopAndError",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        2448,
        512
      ],
      "parameters": {
        "errorMessage": "Incorrect Boolean. Hint: Boolean values are `true` or `false` and must be written without any quotes."
      },
      "typeVersion": 1
    },
    {
      "id": "f99b468d-6fda-4261-b80a-58d4c1e21ebc",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案 - 布尔值",
      "type": "n8n-nodes-base.set",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1968,
        736
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"is_active\": true,\n  \"has_permission\": false\n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "6073ffe7-4ea4-491f-821a-da585f6210b8",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "指令 - Null",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        2672,
        0
      ],
      "parameters": {
        "color": 6,
        "width": 316,
        "height": 492,
        "content": "### 步骤4:Null"
      },
      "typeVersion": 1
    },
    {
      "id": "4c271125-415e-46b3-93ba-12fcc8ba0409",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "测试 - Null",
      "type": "n8n-nodes-base.set",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "disabled": true,
      "position": [
        2784,
        288
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"middle_name\": \n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "6502c640-006b-4ce3-ab32-03e9bfce0446",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "检查 - Null",
      "type": "n8n-nodes-base.if",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        3040,
        288
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "e1234567-890a-bcde-f123-456789012345",
              "operator": {
                "type": "any",
                "operation": "isEmpty"
              },
              "leftValue": "={{ $json.middle_name }}"
            },
            {
              "id": "93811b17-9736-4f3a-bd69-0b297e6f7684",
              "operator": {
                "type": "string",
                "operation": "notExists",
                "singleValue": true
              },
              "leftValue": "={{ $json.middle_name }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "27b327c1-ede6-4d7d-b6f6-a029988fb707",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "反馈正确4",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        3200,
        64
      ],
      "parameters": {
        "color": 7,
        "height": 272,
        "content": "✅ **正确!**"
      },
      "typeVersion": 1
    },
    {
      "id": "418ad6d2-1b57-41cb-bcbd-994c7a3e1f0d",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "成功 - Null",
      "type": "n8n-nodes-base.noOp",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        3264,
        176
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "13f02cb6-a8f7-4185-ae2e-7b728ad37c42",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "错误 - Null",
      "type": "n8n-nodes-base.stopAndError",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        3264,
        512
      ],
      "parameters": {
        "errorMessage": "Incorrect Null. Hint: The `null` value represents 'nothing' and is written as `null` without quotes."
      },
      "typeVersion": 1
    },
    {
      "id": "6e7ff4fd-2fa9-45a7-83d5-1e2847e69bc0",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案 - Null",
      "type": "n8n-nodes-base.set",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        2784,
        640
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"middle_name\": null\n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "441310fa-1b9d-436a-9d12-27a158b5d70f",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "指令 - 数组",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        3520,
        -64
      ],
      "parameters": {
        "color": 6,
        "width": 300,
        "height": 530,
        "content": "### 步骤5:数组"
      },
      "typeVersion": 1
    },
    {
      "id": "f2b4505d-665d-4baf-87e2-d0f9f5ad1a52",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "测试 - 数组",
      "type": "n8n-nodes-base.set",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "disabled": true,
      "position": [
        3632,
        288
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"tags\": \n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "1234203c-72db-410a-b2a0-cd13f421af8f",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "检查 - 数组",
      "type": "n8n-nodes-base.if",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        3856,
        288
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "b0123456-7890-abcd-ef12-345678901234",
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.tags[0] }}",
              "rightValue": "n8n"
            },
            {
              "id": "c1234567-890a-bcde-f123-456789012345",
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.tags[1] }}",
              "rightValue": "automation"
            },
            {
              "id": "d2345678-90ab-cdef-1234-567890123456",
              "operator": {
                "type": "number",
                "operation": "equals"
              },
              "leftValue": "={{ $json.tags[2] }}",
              "rightValue": 2024
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "2f946929-3262-43cb-aaca-a683c9fdc8cb",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "反馈正确5",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        4032,
        64
      ],
      "parameters": {
        "color": 7,
        "height": 272,
        "content": "✅ **正确!**"
      },
      "typeVersion": 1
    },
    {
      "id": "be1a40a8-e8e9-48b7-beb5-6b222242337c",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "成功 - 数组",
      "type": "n8n-nodes-base.noOp",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        4096,
        176
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "167a24fe-9076-4839-81a8-ad42709a812f",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "反馈不正确5",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        4032,
        352
      ],
      "parameters": {
        "color": 7,
        "height": 320,
        "content": "❌ **不正确。**"
      },
      "typeVersion": 1
    },
    {
      "id": "0a7c456b-8312-4079-919a-0a9cb768c2e2",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "错误 - 数组",
      "type": "n8n-nodes-base.stopAndError",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        4096,
        512
      ],
      "parameters": {
        "errorMessage": "Incorrect Array. Hint: Check the order of items, data types (string vs number), and the syntax: `[` `]` `,`."
      },
      "typeVersion": 1
    },
    {
      "id": "83a76d4d-5578-41e9-8598-c4f091c8d38c",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案 - 数组",
      "type": "n8n-nodes-base.set",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        3632,
        624
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"tags\": [\"n8n\", \"automation\", 2024]\n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "5b03bf52-ef8a-4170-a759-7dc6b7c4d232",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "指令 - 对象",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        4320,
        -16
      ],
      "parameters": {
        "color": 6,
        "width": 316,
        "height": 482,
        "content": "### 步骤6:对象"
      },
      "typeVersion": 1
    },
    {
      "id": "d76cc94f-3fdf-46d2-bb35-0e2a427ba368",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "测试 - 对象",
      "type": "n8n-nodes-base.set",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "disabled": true,
      "position": [
        4432,
        288
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"user\": \n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "63570256-b7e8-41cc-84a6-f51c377d0aee",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "检查 - 对象",
      "type": "n8n-nodes-base.if",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        4688,
        288
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "a1234567-890a-bcde-f123-456789012345",
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.user.name }}",
              "rightValue": "Alex"
            },
            {
              "id": "b2345678-90ab-cdef-1234-567890123456",
              "operator": {
                "type": "number",
                "operation": "equals"
              },
              "leftValue": "={{ $json.user.id }}",
              "rightValue": 987
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "fae24ca9-2a98-4748-ab76-d4c8a4264731",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "反馈正确6",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        4848,
        96
      ],
      "parameters": {
        "color": 7,
        "height": 240,
        "content": "✅ **你做到了!**"
      },
      "typeVersion": 1
    },
    {
      "id": "87a8fccc-bf4d-4db6-b4ab-0a4b2a9238ab",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "成功 - 对象",
      "type": "n8n-nodes-base.noOp",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        4912,
        176
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "deb017d8-2520-46b6-9fee-655c1162faa1",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "反馈不正确6",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        4848,
        352
      ],
      "parameters": {
        "color": 7,
        "height": 320,
        "content": "❌ **不正确。**"
      },
      "typeVersion": 1
    },
    {
      "id": "8fe7e4ba-5e75-4258-8638-ab781eb95da8",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "错误 - 对象",
      "type": "n8n-nodes-base.stopAndError",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        4912,
        512
      ],
      "parameters": {
        "errorMessage": "Incorrect Object. Hint: Remember to wrap the inner object in curly braces `{}` and check the data types inside it."
      },
      "typeVersion": 1
    },
    {
      "id": "f16458eb-836c-4122-b958-ff6bba632344",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案 - 对象",
      "type": "n8n-nodes-base.set",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        4432,
        624
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"user\": {\n    \"name\": \"Alex\",\n    \"id\": 987\n  }\n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "98bcaef8-4c6d-4143-9af4-6cc833cf404a",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "恭喜!",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        5120,
        96
      ],
      "parameters": {
        "color": 4,
        "width": 416,
        "height": 576,
        "content": "🎉 **恭喜!您已通过测试!**"
      },
      "typeVersion": 1
    },
    {
      "id": "84a620ab-3cfc-43a5-a905-9c92f34f8cbd",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "指令 - 字符串1",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        224,
        64
      ],
      "parameters": {
        "color": 6,
        "width": 300,
        "height": 396,
        "content": "### 步骤1:字符串"
      },
      "typeVersion": 1
    },
    {
      "id": "d1391387-115a-4263-89e8-409ad347cb98",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "反馈正确1",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        736,
        64
      ],
      "parameters": {
        "color": 7,
        "height": 272,
        "content": "✅ **正确!**"
      },
      "typeVersion": 1
    },
    {
      "id": "2a278bd1-a54b-4804-80b0-442fed0feee1",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "反馈不正确1",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        736,
        352
      ],
      "parameters": {
        "color": 7,
        "height": 320,
        "content": "❌ **不正确。**"
      },
      "typeVersion": 1
    },
    {
      "id": "3cc0a5cf-9c0a-4043-824c-9487f563f722",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "便签13",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        -272,
        -48
      ],
      "parameters": {
        "width": 460,
        "height": 504,
        "content": "## JSON 知识测试"
      },
      "typeVersion": 1
    },
    {
      "id": "f8ffce9d-d4a3-452d-98a6-0fade9d47f1e",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "反馈正确7",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1552,
        64
      ],
      "parameters": {
        "color": 7,
        "height": 272,
        "content": "✅ **正确!**"
      },
      "typeVersion": 1
    },
    {
      "id": "af7ca882-415a-417a-9c5b-c0b62f119de2",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "反馈不正确7",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        3200,
        352
      ],
      "parameters": {
        "color": 7,
        "height": 320,
        "content": "❌ **不正确。**"
      },
      "typeVersion": 1
    },
    {
      "id": "01d04637-fda6-4539-bb75-aab074ecc21b",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案注释 - 数字",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1040,
        496
      ],
      "parameters": {
        "color": 7,
        "width": 304,
        "height": 304,
        "content": "💡 **答案键**"
      },
      "typeVersion": 1
    },
    {
      "id": "ab300417-993a-4399-8cbb-48970a4a468b",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案注释 - 布尔值",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1856,
        608
      ],
      "parameters": {
        "color": 7,
        "width": 320,
        "height": 288,
        "content": "💡 **答案键**"
      },
      "typeVersion": 1
    },
    {
      "id": "64ae4cc7-d135-4314-8057-93c9b728333c",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案注释 - Null",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        2672,
        512
      ],
      "parameters": {
        "color": 7,
        "width": 320,
        "height": 288,
        "content": "💡 **答案键**"
      },
      "typeVersion": 1
    },
    {
      "id": "1fc99ad5-9549-4bc1-82cb-c46e222a9884",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案注释 - 数组",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        3520,
        480
      ],
      "parameters": {
        "color": 7,
        "width": 304,
        "height": 304,
        "content": "💡 **答案键**"
      },
      "typeVersion": 1
    },
    {
      "id": "c0641a7a-b2ab-4ab3-84fc-9643b932d9bd",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案注释 - 对象",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        4320,
        480
      ],
      "parameters": {
        "color": 7,
        "width": 320,
        "height": 304,
        "content": "💡 **答案键**"
      },
      "typeVersion": 1
    },
    {
      "id": "a5acca7f-1eeb-4372-9e66-56e47e697f43",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "测试 - 字符串",
      "type": "n8n-nodes-base.set",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "disabled": true,
      "position": [
        320,
        288
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"my_string\": \n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "f93864ab-89b8-42df-bb6b-bd2c6c0cd241",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "检查 - 字符串",
      "type": "n8n-nodes-base.if",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        576,
        288
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "5ac1af5c-2769-42f8-9df7-ec092d2fec05",
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.my_string.trim().toLowerCase() }}",
              "rightValue": "i love automation"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "35da61fb-1272-4acc-acc5-afae2c5024a6",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "成功 - 字符串",
      "type": "n8n-nodes-base.noOp",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        800,
        176
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6394c8cf-fbc2-4c78-a6b5-eeb3113700de",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "错误 - 字符串",
      "type": "n8n-nodes-base.stopAndError",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        800,
        512
      ],
      "parameters": {
        "errorMessage": "Incorrect String. Hint: A string value must always be enclosed in double quotes `\" \"`. Check for typos!"
      },
      "typeVersion": 1
    },
    {
      "id": "da1aec33-d064-4d66-80b4-a327b688021b",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "测试 - 数字",
      "type": "n8n-nodes-base.set",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "disabled": true,
      "position": [
        1136,
        288
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"product_id\": ,\n  \"price\": \n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "565c42c3-6bc5-4c34-b87d-d60e529cb901",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "检查 - 数字",
      "type": "n8n-nodes-base.if",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1392,
        288
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "5ac1af5c-2769-42f8-9df7-ec092d2fec05",
              "operator": {
                "type": "number",
                "operation": "equals"
              },
              "leftValue": "={{ $json.product_id }}",
              "rightValue": 12345
            },
            {
              "id": "7c1937fa-393c-4b5c-88f5-788df2f99295",
              "operator": {
                "type": "number",
                "operation": "equals"
              },
              "leftValue": "={{ $json.price }}",
              "rightValue": 99.99
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "de1de270-c55b-4b37-abdb-ef619695463a",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "错误 - 数字",
      "type": "n8n-nodes-base.stopAndError",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1616,
        512
      ],
      "parameters": {
        "errorMessage": "Incorrect Number. Hint: Numbers must not be in quotes. Check both the integer and the decimal value."
      },
      "typeVersion": 1
    },
    {
      "id": "3570a1c6-19d1-4f4e-b4e9-5a72ed787ea9",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案 - 数字",
      "type": "n8n-nodes-base.set",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1136,
        640
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"product_id\": 12345,\n  \"price\": 99.99\n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "b36d5141-2714-4e0e-a76b-8c4ddfecbc07",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案 - 字符串",
      "type": "n8n-nodes-base.set",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        320,
        624
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"my_string\": \"I love automation\"\n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "c5e41209-c3ad-4be8-a68b-4a55f6c5ec5d",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案注释 - 字符串",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        224,
        480
      ],
      "parameters": {
        "color": 7,
        "width": 304,
        "height": 304,
        "content": "💡 **答案键**"
      },
      "typeVersion": 1
    },
    {
      "id": "2a6ebfaf-7c59-4f38-9f03-37d385447f68",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "成功 - 数字",
      "type": "n8n-nodes-base.noOp",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        1616,
        176
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "42929a15-4047-47f5-ae17-e19b3b44a808",
      "name": "开始测试!",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -16,
        288
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7533ec6a-a35f-463f-8801-384a19b8a90c",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "答案注释 - 字符串1",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        -272,
        480
      ],
      "parameters": {
        "color": 7,
        "width": 464,
        "height": 304,
        "content": "### 如何通过测试"
      },
      "typeVersion": 1
    },
    {
      "id": "dc32ec11-0360-4713-a9c7-7962b3488e88",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "便签 10",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        5568,
        -320
      ],
      "parameters": {
        "color": 3,
        "width": 540,
        "height": 1280,
        "content": "## 这对您有帮助吗?请告诉我!"
      },
      "typeVersion": 1
    },
    {
      "id": "5a7e7045-7c14-4330-bf8b-992c055ea278",
      "cid": "Ikx1Y2FzIFBleXJpbiI",
      "name": "便签16",
      "type": "n8n-nodes-base.stickyNote",
      "notes": "© 2025 Lucas Peyrin",
      "creator": "Lucas Peyrin",
      "position": [
        5200,
        448
      ],
      "parameters": {
        "color": 4,
        "width": 272,
        "height": 184,
        "content": "[![测试技能](https://supastudio.ia2s.app/storage/v1/object/public/assets/n8n/n8n_animation.gif)](https://n8n.io/creators/lucaspeyrin)"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Start Test!": {
      "main": [
        [
          {
            "node": "Test - String",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test - Null": {
      "main": [
        [
          {
            "node": "Check - Null",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check - Null": {
      "main": [
        [
          {
            "node": "Success - Null",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error - Null",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test - Array": {
      "main": [
        [
          {
            "node": "Check - Array",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check - Array": {
      "main": [
        [
          {
            "node": "Success - Array",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error - Array",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test - Number": {
      "main": [
        [
          {
            "node": "Check - Number",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test - Object": {
      "main": [
        [
          {
            "node": "Check - Object",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test - String": {
      "main": [
        [
          {
            "node": "Check - String",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check - Number": {
      "main": [
        [
          {
            "node": "Success - Number",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error - Number",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check - Object": {
      "main": [
        [
          {
            "node": "Success - Object",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error - Object",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check - String": {
      "main": [
        [
          {
            "node": "Success - String",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error - String",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Success - Null": {
      "main": [
        [
          {
            "node": "Test - Array",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test - Boolean": {
      "main": [
        [
          {
            "node": "Check - Boolean",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check - Boolean": {
      "main": [
        [
          {
            "node": "Success - Boolean",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error - Boolean",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Success - Array": {
      "main": [
        [
          {
            "node": "Test - Object",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Success - Number": {
      "main": [
        [
          {
            "node": "Test - Boolean",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Success - Object": {
      "main": [
        [
          {
            "node": "🎉 SUCCESS 🎉",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Success - String": {
      "main": [
        [
          {
            "node": "Test - Number",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Success - Boolean": {
      "main": [
        [
          {
            "node": "Test - Null",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 杂项

需要付费吗?

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

工作流信息
难度等级
高级
节点数量61
分类1
节点类型7
难度说明

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

作者
Lucas Peyrin

Lucas Peyrin

@lucaspeyrin

Innovative builder with a passion for crafting automation solutions that solve real-world challenges. From streamlining workflows to driving efficiency, my work empowers teams and individuals to achieve more with less effort. Experienced in developing scalable tools and strategies that deliver results with n8n, supabase and cline.

外部链接
在 n8n.io 查看

分享此工作流