{
  "id": "sSqJNShO1lSW7pDR",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "AutoPostToWooCommerce_Template",
  "tags": [
    {
      "id": "GvyyqNQKMajZL27F",
      "name": "Template",
      "createdAt": "2025-09-18T07:14:31.617Z",
      "updatedAt": "2025-09-18T07:14:31.617Z"
    }
  ],
  "nodes": [
    {
      "id": "e966e752-5474-4e9f-840e-7605dd3065e7",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -496,
        -352
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f1828cff-a28e-4d55-be61-efb7499d711c",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        176,
        -256
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "510a7a54-e603-4611-b71c-0d50f076c585",
      "name": "Create a product",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        1520,
        -256
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "bafc8bd9-191d-4426-bf53-ba9e86428432",
      "name": "Get a file",
      "type": "n8n-nodes-base.telegram",
      "position": [
        624,
        -256
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "6681ddd1-00ad-4c96-9446-df536ea72b62",
      "name": "GetCategories",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1072,
        -256
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "3d6611ad-212f-4223-933d-8aa0ea373861",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -48,
        -352
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "5d30354c-a6f9-444e-b7b7-3f53e143bb8a",
      "name": "Read/Write Files from Disk",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        1840,
        -256
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "92031371-df3c-4bf5-9c55-440b11103ee7",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1696,
        -256
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "c959ec8c-62a9-45cc-8d14-80e97a625691",
      "name": "Get a file1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        176,
        -448
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "479b4163-08f0-4c8f-82b0-630b6e22f091",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        624,
        -448
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "607c1bdd-8492-484a-8f72-7a13cde71710",
      "name": "Read/Write Files from Disk1",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        848,
        -448
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6f2b3798-8b89-4aee-a8a9-04a170bbc973",
      "name": "AppendImages",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1744,
        -448
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "98d6ca10-c43b-45d5-98bb-59e1d35a9191",
      "name": "Get a product",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        1296,
        -448
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dfe4dfe9-6b1c-40e2-84b3-021e0532d720",
      "name": "LastSavedJson",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1072,
        -448
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ef828ca3-91b0-4002-9469-45c544e69d7d",
      "name": "Code3",
      "type": "n8n-nodes-base.code",
      "notes": "Push to images Arr",
      "position": [
        1520,
        -448
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2
    },
    {
      "id": "a6fe4653-4b74-4004-b3bb-4d50c35150af",
      "name": "UploadImage",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        400,
        -448
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f8c39952-2732-4b1d-9c5a-126e8729722f",
      "name": "UploadImage1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        848,
        -256
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "0c30126b-0d99-438f-94c6-32f0ab815902",
      "name": "IfHasPhoto",
      "type": "n8n-nodes-base.if",
      "position": [
        400,
        -256
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "8a2648c0-ba30-4a6e-88ff-316794d251e9",
      "name": "SetFields",
      "type": "n8n-nodes-base.set",
      "position": [
        -272,
        -352
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "ffb95b43-c697-4d04-afa5-65b262cb6243",
      "name": "FindCatId_From_Text",
      "type": "n8n-nodes-base.code",
      "position": [
        1296,
        -256
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "bfd046f2-fad4-4eb3-8eda-423fcc99858f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -800
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "db8f0adc-5037-49eb-8105-05a9c6f37df2",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        -560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bff925fb-7c60-490d-89ad-2504c4c1e439",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        -288
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "448edca4-21a3-45d5-84e7-d92352c86cc6",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        -288
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "32c79d06-afa1-4d58-ad5f-7e3dcfe75720",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        -288
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b262afaa-9d23-43d8-b54a-27496c156ac2",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1456,
        -288
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "6581f90d-610a-4e9f-ab51-523a89b65e67",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Get a file1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "IfHasPhoto",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Read/Write Files from Disk1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code3": {
      "main": [
        [
          {
            "node": "AppendImages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SetFields": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a file": {
      "main": [
        [
          {
            "node": "UploadImage1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IfHasPhoto": {
      "main": [
        [
          {
            "node": "Get a file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a file1": {
      "main": [
        [
          {
            "node": "UploadImage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "UploadImage": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "UploadImage1": {
      "main": [
        [
          {
            "node": "GetCategories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a product": {
      "main": [
        [
          {
            "node": "Code3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GetCategories": {
      "main": [
        [
          {
            "node": "FindCatId_From_Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LastSavedJson": {
      "main": [
        [
          {
            "node": "Get a product",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Read/Write Files from Disk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a product": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "SetFields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FindCatId_From_Text": {
      "main": [
        [
          {
            "node": "Create a product",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read/Write Files from Disk1": {
      "main": [
        [
          {
            "node": "LastSavedJson",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}