{
  "name": "Flowprep · Prepare contact rows",
  "active": false,
  "nodes": [
    {
      "id": "prepare-contact-rows-start",
      "name": "Start manually",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        300
      ],
      "parameters": {}
    },
    {
      "id": "prepare-contact-rows-sample",
      "name": "Sample data",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        260,
        300
      ],
      "parameters": {
        "jsCode": "return [\n  {\n    \"firstName\": \"Alex\",\n    \"lastName\": \"Rivera\",\n    \"email\": \"alex@example.com\"\n  },\n  {\n    \"firstName\": \"Sam\",\n    \"lastName\": \"Lee\",\n    \"email\": \"sam@example.com\"\n  }\n].map(json => ({ json }));"
      }
    },
    {
      "id": "prepare-contact-rows-transform",
      "name": "Prepare contact rows",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        520,
        300
      ],
      "parameters": {
        "jsCode": "return $input.all().map((item, i) => ({\n  json: { fullName: [item.json.firstName, item.json.lastName].filter(value => typeof value === 'string' && value.trim()).map(value => value.trim()).join(' '), email: String(item.json.email || '').trim().toLowerCase() },\n  pairedItem: { item: i }\n}));"
      }
    },
    {
      "id": "prepare-contact-rows-note",
      "name": "Read first",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        -30
      ],
      "parameters": {
        "content": "## Prepare contact rows\nCreate consistent full-name and email columns for a handoff.\n\n1. Import into n8n.\n2. Execute manually and inspect the output.\n3. Replace Sample data with your source after reviewing the Code node.\n\nOther source fields are intentionally omitted. Adjust the mapping before using it with real contact data.\n\nIndependent example from Flowprep. No credentials or external calls. Sample transformation tested; verify import and execution on your n8n version.",
        "width": 760,
        "height": 230
      }
    }
  ],
  "connections": {
    "Start manually": {
      "main": [
        [
          {
            "node": "Sample data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sample data": {
      "main": [
        [
          {
            "node": "Prepare contact rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "tags": []
}