{
  "name": "【比較A】問い合わせを種別ごとに振り分ける",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "inquiry",
        "responseMode": "lastNode",
        "options": {}
      },
      "name": "問い合わせを受け取る",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "id": "b1"
    },
    {
      "parameters": {
        "jsCode": "const map = { '見積': '営業担当', '採用': '人事担当' };\nreturn $input.all().map(i => { const b = i.json.body ?? {}; return { json: { 種別: b.種別, 件名: b.件名, 担当: map[b.種別] ?? '総務担当' } }; });"
      },
      "name": "担当を決める",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        220,
        0
      ],
      "id": "b2"
    }
  ],
  "connections": {
    "問い合わせを受け取る": {
      "main": [
        [
          {
            "node": "担当を決める",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}