n8nのAI Workflow Builderを触ってみる

{
  "name": "System Development Test Phase Management",
  "nodes": [
    {
      "parameters": {},
      "id": "MASKED_ID",
      "name": "Start Workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [-1104, 256]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            { "id": "MASKED_ID", "name": "phase", "value": "test", "type": "string" },
            { "id": "MASKED_ID", "name": "project_name", "value": "YOUR_PROJECT_NAME", "type": "string" }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "id": "MASKED_ID",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [-880, 256]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            { "id": "MASKED_ID", "name": "task", "value": "環境構築", "type": "string" },
            { "id": "MASKED_ID", "name": "role", "value": "開発者", "type": "string" },
            { "id": "MASKED_ID", "name": "status", "value": "in_progress", "type": "string" },
            { "id": "MASKED_ID", "name": "description", "value": "テスト環境を構築する", "type": "string" },
            { "id": "MASKED_ID", "name": "Output", "value": "", "type": "string" }
          ]
        },
        "options": {}
      },
      "id": "MASKED_ID",
      "name": "1.1 環境構築",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [-656, 256]
    },
    {
      "parameters": {
        "conditions": {
          "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 2 },
          "conditions": [
            {
              "id": "MASKED_ID",
              "leftValue": "={{ $json.status }}",
              "rightValue": "completed",
              "operator": { "type": "string", "operation": "equals" }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "MASKED_ID",
      "name": "環境OK?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [-432, 256]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            { "id": "MASKED_ID", "name": "task", "value": "環境確認", "type": "string" },
            { "id": "MASKED_ID", "name": "role", "value": "テスト責任者", "type": "string" },
            { "id": "MASKED_ID", "name": "status", "value": "in_progress", "type": "string" },
            { "id": "MASKED_ID", "name": "description", "value": "構築されたテスト環境を確認する", "type": "string" },
            { "id": "MASKED_ID", "name": "", "value": "", "type": "string" }
          ]
        },
        "options": {}
      },
      "id": "MASKED_ID",
      "name": "1.2 環境確認",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [-208, 256]
    },
    {
      "parameters": {
        "conditions": {
          "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 2 },
          "conditions": [
            {
              "id": "MASKED_ID",
              "leftValue": "={{ $('1.2 環境確認').item.json.status }}",
              "rightValue": "completed",
              "operator": { "type": "string", "operation": "equals" }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "MASKED_ID",
      "name": "環境確認OK?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [16, 256]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            { "id": "MASKED_ID", "name": "task", "value": "計画書作成", "type": "string" },
            { "id": "MASKED_ID", "name": "role", "value": "テスト責任者", "type": "string" },
            { "id": "MASKED_ID", "name": "status", "value": "in_progress", "type": "string" },
            { "id": "MASKED_ID", "name": "description", "value": "テスト計画書を作成する", "type": "string" }
          ]
        },
        "options": {}
      },
      "id": "MASKED_ID",
      "name": "2.1 計画書作成",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [240, 256]
    },
    {
      "parameters": {
        "conditions": {
          "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 2 },
          "conditions": [
            { "id": "MASKED_ID", "leftValue": "={{ $json.status }}", "rightValue": "completed", "operator": { "type": "string", "operation": "equals" } },
            { "id": "MASKED_ID", "leftValue": "", "rightValue": "", "operator": { "type": "string", "operation": "equals", "name": "filter.operator.equals" } }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "MASKED_ID",
      "name": "計画書OK?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [464, 208]
    },
    ... 省略(同様にすべての `"id"` は `"MASKED_ID"` に置換) ...
  ],
  "pinData": {},
  "connections": { ... (内容変わらず) ... },
  "active": false,
  "settings": { "executionOrder": "v1" },
  "versionId": "MASKED_ID",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "MASKED_ID"
  },
  "id": "MASKED_ID",
  "tags": []
}


Source link

関連記事

コメント

この記事へのコメントはありません。