{
  "name": "Automatically transfer Shopify order data to structured Airtable records",
  "nodes": [
    {
      "id": "78d221dc-8297-4181-8a9e-e97c04fc97c3",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        -100,
        460
      ]
    },
    {
      "id": "b5ccebd2-e080-4e7f-a7d0-48dac47ffeff",
      "name": "create order",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -740,
        460
      ]
    },
    {
      "id": "73e33596-7fe5-4573-8081-5e4557b7a332",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        380,
        460
      ]
    },
    {
      "id": "74f0ef0a-06da-4ce1-83ee-718b22327bdd",
      "name": "Sheet ",
      "type": "n8n-nodes-base.set",
      "position": [
        720,
        700
      ]
    },
    {
      "id": "da068325-94a1-47ab-a538-b4411bc187d1",
      "name": "Order Sheeet",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1080,
        700
      ]
    },
    {
      "id": "f8482c76-a80d-46db-b2e5-4bb89e03f536",
      "name": "Code23",
      "type": "n8n-nodes-base.code",
      "position": [
        1640,
        700
      ]
    },
    {
      "id": "5ee6a75d-b528-4c5f-bbe7-bc3a11400e9f",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        2020,
        700
      ]
    },
    {
      "id": "053766a1-beb4-4eab-972f-7bdcfdcc562d",
      "name": "Generating S No1",
      "type": "n8n-nodes-base.code",
      "position": [
        2540,
        700
      ]
    },
    {
      "id": "6d6b3cff-7abd-4f9b-9aa6-be9ebd32d6a6",
      "name": "CustomerSheet",
      "type": "n8n-nodes-base.airtable",
      "position": [
        3320,
        700
      ]
    },
    {
      "id": "e296f347-80d9-4e94-8e47-08c94b373575",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -840,
        340
      ],
      "parameters": {
        "width": 340,
        "height": 320,
        "content": "## Webhook Trigger when the Customer create order\n"
      }
    },
    {
      "id": "5b3893ab-74b9-4a3d-b3f4-a92e7ca948ff",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -720
      ],
      "parameters": {
        "width": 480,
        "height": 1360,
        "content": "## Code Extract Order Information\nReads the order from the incoming webhook or payload.\n\nPulls customer, shipping, billing, and line item details.\n\nFinancial Summary\nGrabs totals like:\n\nSubtotal\n\nShip"
      }
    },
    {
      "id": "4620fdcd-3a69-4040-9c3e-74c4a0994ce9",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        360
      ],
      "parameters": {
        "width": 320,
        "height": 500,
        "content": "# Airtable Customer Sheet\n\n## Listing out total rows of customer sheet\n\n"
      }
    },
    {
      "id": "0607336c-5d55-4329-85ad-6e53050691e8",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1460,
        200
      ],
      "parameters": {
        "width": 460,
        "height": 660,
        "content": "## Return Only Last Row\nPurpose: Get the last item from all incoming rows and pass it forward.\n\n📌 How it works:\n\n$input.all() → Fetches all incoming items.\n\nrows[rows.length - 1] → Picks the last item"
      }
    },
    {
      "id": "f3e14e2b-1900-4af0-b597-e952ef802798",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2340,
        120
      ],
      "parameters": {
        "width": 540,
        "height": 800,
        "content": "# Auto-Increment \"S No\" from Previous Node\n## Take the serial number (S No) from previous node data, increment it by 1, and return the updated data.\n\n📌 How it works:\n\nReads the first item from the inp"
      }
    },
    {
      "id": "5d934d8e-573d-44ef-aace-b968bde029f6",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3120,
        400
      ],
      "parameters": {
        "width": 460,
        "height": 500,
        "content": "# Airtable Sheet\n## Appending data in Airtable of new Customer Sheet "
      }
    },
    {
      "id": "671effcd-0f28-4eff-a49a-78779a712db7",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2420,
        -720
      ],
      "parameters": {
        "width": 1120,
        "height": 2920,
        "content": "## This automation is built in n8n (a no-code/low-code automation platform). It automatically updates order data into system every time when a customer places an order on your Shopify store.\n\nNo manua"
      }
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code23": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sheet ": {
      "main": [
        [
          {
            "node": "Order Sheeet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Generating S No1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Order Sheeet": {
      "main": [
        [
          {
            "node": "Code23",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "create order": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CustomerSheet": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Sheet ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generating S No1": {
      "main": [
        [
          {
            "node": "CustomerSheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}