{
  "name": "Sync products between Airtable and Shopify with inventory management",
  "nodes": [
    {
      "id": "ab50e65d-a4b8-4b5c-b922-8187cf01b61f",
      "name": "Start Workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -544,
        32
      ]
    },
    {
      "id": "2a664203-5fe5-4179-980d-e15c2c4b1ff0",
      "name": "Shopify, ProductQuery",
      "type": "n8n-nodes-base.graphql",
      "position": [
        544,
        48
      ]
    },
    {
      "id": "aa64b2fe-4ebe-4e56-89b3-cda00f2926d7",
      "name": "If product exists",
      "type": "n8n-nodes-base.if",
      "position": [
        752,
        48
      ]
    },
    {
      "id": "98a96cb6-1453-4dfb-b721-b8f7dabf7cc2",
      "name": "Shopify, CreateProduct",
      "type": "n8n-nodes-base.graphql",
      "position": [
        960,
        128
      ]
    },
    {
      "id": "bd8608b9-5438-41dc-8ee2-9720714ecf70",
      "name": "Shopify, GetLocations",
      "type": "n8n-nodes-base.graphql",
      "position": [
        -288,
        32
      ]
    },
    {
      "id": "fe00bde0-ba99-44c2-8059-f57e5ccede6f",
      "name": "Finished",
      "type": "n8n-nodes-base.noOp",
      "position": [
        480,
        -320
      ]
    },
    {
      "id": "5bad3bd2-bdfc-43c1-a192-7a3956256efe",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -544,
        -688
      ],
      "parameters": {
        "width": 800,
        "height": 660,
        "content": "## Create Products in Shopify from Airtable\n\nThis workflow creates products in your Shopify store from Airtable. It also enables inventory tracking and sets the quantity of an inventory item at your s"
      }
    },
    {
      "id": "a05501e9-4c4d-4595-acc0-a77b27068561",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -160
      ],
      "parameters": {
        "width": 1104,
        "height": 540,
        "content": "## Shopify, Product Update or Create as required\n- Create or Update product.\n- Enable inventory tracking \n- Set inventory quantity"
      }
    },
    {
      "id": "278fc7f2-c724-467a-84aa-6a300b902cef",
      "name": "Loop",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        240,
        32
      ]
    },
    {
      "id": "af96fba0-33af-451e-9ba1-91363b4fea89",
      "name": "Shopify, UpdateProduct",
      "type": "n8n-nodes-base.graphql",
      "position": [
        960,
        -48
      ]
    },
    {
      "id": "3188a91d-8f09-4a2a-8088-2ed831a5536c",
      "name": "Airtable, MarkRecord as Sync'd",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1632,
        128
      ]
    },
    {
      "id": "71f512fa-9ce1-4f19-a500-85bd53667c0e",
      "name": "Shopify, Update SetInventory",
      "type": "n8n-nodes-base.graphql",
      "position": [
        1392,
        -48
      ]
    },
    {
      "id": "bf40161f-36a2-4015-8eda-e1f8b6fef998",
      "name": "Shopify, Create SetInventory",
      "type": "n8n-nodes-base.graphql",
      "position": [
        1392,
        128
      ]
    },
    {
      "id": "339262c5-5759-4ab8-a2f1-b83752ae2d5d",
      "name": "Airtable, FetchRecords",
      "type": "n8n-nodes-base.airtable",
      "position": [
        -48,
        32
      ]
    },
    {
      "id": "9a15b62f-702f-408b-bee2-9fed5fdb2b90",
      "name": "Shopify, Update SetVariant",
      "type": "n8n-nodes-base.graphql",
      "position": [
        1184,
        -48
      ]
    },
    {
      "id": "9eee917e-ecfa-4e87-9a64-8da674d5f2ce",
      "name": "Shopify, Create SetVariant",
      "type": "n8n-nodes-base.graphql",
      "position": [
        1184,
        128
      ]
    }
  ],
  "connections": {
    "Loop": {
      "main": [
        [
          {
            "node": "Finished",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Shopify, ProductQuery",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start Workflow": {
      "main": [
        [
          {
            "node": "Shopify, GetLocations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If product exists": {
      "main": [
        [
          {
            "node": "Shopify, UpdateProduct",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Shopify, CreateProduct",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shopify, GetLocations": {
      "main": [
        [
          {
            "node": "Airtable, FetchRecords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shopify, ProductQuery": {
      "main": [
        [
          {
            "node": "If product exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Airtable, FetchRecords": {
      "main": [
        [
          {
            "node": "Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shopify, CreateProduct": {
      "main": [
        [
          {
            "node": "Shopify, Create SetVariant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shopify, UpdateProduct": {
      "main": [
        [
          {
            "node": "Shopify, Update SetVariant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shopify, Create SetVariant": {
      "main": [
        [
          {
            "node": "Shopify, Create SetInventory",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shopify, Update SetVariant": {
      "main": [
        [
          {
            "node": "Shopify, Update SetInventory",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shopify, Create SetInventory": {
      "main": [
        [
          {
            "node": "Airtable, MarkRecord as Sync'd",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shopify, Update SetInventory": {
      "main": [
        [
          {
            "node": "Airtable, MarkRecord as Sync'd",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Airtable, MarkRecord as Sync'd": {
      "main": [
        [
          {
            "node": "Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}