{
  "name": "Linking fewer-paired",
  "description": null,
  "versionCounter": 1,
  "sourceWorkflowId": null,
  "nodes": [
    {
      "id": "w",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "httpMethod": "POST",
        "path": "l3",
        "responseMode": "onReceived",
        "options": {}
      }
    },
    {
      "id": "Customers",
      "name": "Customers",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        200,
        0
      ],
      "parameters": {
        "jsCode": "return [\n  { json: { id: 1, name: 'Ada', email: 'ada@example.com' } },\n  { json: { id: 2, name: 'Grace', email: 'grace@example.com' } },\n  { json: { id: 3, name: 'Linus', email: 'linus@example.com' } },\n];"
      }
    },
    {
      "id": "Rebuild",
      "name": "Rebuild",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        400,
        0
      ],
      "parameters": {
        "jsCode": "return $input.all()\n  .map((item, index) => ({ json: { name: item.json.name }, pairedItem: index }))\n  .slice(1);"
      }
    },
    {
      "id": "Lookup",
      "name": "Lookup",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        600,
        0
      ],
      "parameters": {
        "mode": "manual",
        "assignments": {
          "assignments": [
            {
              "id": "a",
              "name": "email",
              "value": "={{ $('Customers').item.json.email }}",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Customers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Customers": {
      "main": [
        [
          {
            "node": "Rebuild",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rebuild": {
      "main": [
        [
          {
            "node": "Lookup",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "nodeGroups": [],
  "settings": {
    "executionOrder": "v1"
  },
  "activeVersion": {
    "versionId": "26ee19ce-acbd-46a0-958f-72dc112050c7",
    "workflowId": "5REF1sd55UdlPep1",
    "nodes": [
      {
        "id": "w",
        "name": "Webhook",
        "webhookId": "6f1c2d3e-0000-4000-8000-000000000103",
        "type": "n8n-nodes-base.webhook",
        "typeVersion": 2,
        "position": [
          0,
          0
        ],
        "parameters": {
          "httpMethod": "POST",
          "path": "l3",
          "responseMode": "onReceived",
          "options": {}
        }
      },
      {
        "id": "Customers",
        "name": "Customers",
        "type": "n8n-nodes-base.code",
        "typeVersion": 2,
        "position": [
          200,
          0
        ],
        "parameters": {
          "jsCode": "return [\n  { json: { id: 1, name: 'Ada', email: 'ada@example.com' } },\n  { json: { id: 2, name: 'Grace', email: 'grace@example.com' } },\n  { json: { id: 3, name: 'Linus', email: 'linus@example.com' } },\n];"
        }
      },
      {
        "id": "Rebuild",
        "name": "Rebuild",
        "type": "n8n-nodes-base.code",
        "typeVersion": 2,
        "position": [
          400,
          0
        ],
        "parameters": {
          "jsCode": "return $input.all()\n  .map((item, index) => ({ json: { name: item.json.name }, pairedItem: index }))\n  .slice(1);"
        }
      },
      {
        "id": "Lookup",
        "name": "Lookup",
        "type": "n8n-nodes-base.set",
        "typeVersion": 3.4,
        "position": [
          600,
          0
        ],
        "parameters": {
          "mode": "manual",
          "assignments": {
            "assignments": [
              {
                "id": "a",
                "name": "email",
                "value": "={{ $('Customers').item.json.email }}",
                "type": "string"
              }
            ]
          },
          "includeOtherFields": true,
          "options": {}
        }
      }
    ],
    "connections": {
      "Webhook": {
        "main": [
          [
            {
              "node": "Customers",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Customers": {
        "main": [
          [
            {
              "node": "Rebuild",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Rebuild": {
        "main": [
          [
            {
              "node": "Lookup",
              "type": "main",
              "index": 0
            }
          ]
        ]
      }
    },
    "nodeGroups": [],
    "authors": "Test Owner",
    "name": null,
    "description": null,
    "autosaved": false,
    "createdAt": "2026-11-20T08:22:01.595Z",
    "updatedAt": "2026-11-20T08:22:01.595Z",
    "workflowPublishHistory": [
      {
        "id": 3,
        "workflowId": "5REF1sd55UdlPep1",
        "versionId": "26ee19ce-acbd-46a0-958f-72dc112050c7",
        "event": "activated",
        "userId": "43d2b41a-47ca-4465-8bfc-ebc49d457fbb",
        "createdAt": "2026-11-20T08:22:01.662Z"
      }
    ]
  }
}
