{
  "name": "Create WooCommerce products and WordPress posts from product links via Telegram and BrowserAct",
  "nodes": [
    {
      "id": "3828d539-2520-4e35-b4dd-b199d1aa7fdf",
      "name": "Structured Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        416,
        592
      ]
    },
    {
      "id": "8a212ca9-ceaa-4c5e-b6bc-f807260e3f58",
      "name": "Check Ouput",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        416,
        704
      ]
    },
    {
      "id": "7485ce38-6230-4cca-b04e-ca436c27a360",
      "name": "Check Ouputs1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1136,
        944
      ]
    },
    {
      "id": "23c22bf0-69f8-4455-9958-077dbd013f44",
      "name": "Structured Output3",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1136,
        816
      ]
    },
    {
      "id": "5004c1f9-3be2-4153-821b-d552b4795b24",
      "name": "Generate Article",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1040,
        624
      ]
    },
    {
      "id": "03a3b498-4add-4cbb-a606-12fe5c9eac43",
      "name": "Create a product",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        1104,
        400
      ]
    },
    {
      "id": "76db317c-1057-429d-acef-74dcbb99a57b",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2000,
        480
      ]
    },
    {
      "id": "9ad0b72f-7828-419d-81b0-aeeab56e1294",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -720,
        704
      ]
    },
    {
      "id": "e3965bdb-7f7a-49a6-8ec2-63402baeed49",
      "name": "Validate user Input",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -848,
        512
      ]
    },
    {
      "id": "f4646aa2-0a5f-46c5-b8f8-d8d19fb39cfd",
      "name": "Google Gemini",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -144,
        1040
      ]
    },
    {
      "id": "cf90a9ea-9809-4821-94a0-2977b35b9c69",
      "name": "Validate user Inputs",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -848,
        704
      ]
    },
    {
      "id": "9e5e68ab-ae8d-4054-a7d4-42446960e654",
      "name": "Validation Type Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -496,
        496
      ]
    },
    {
      "id": "7a8a84e2-8997-4a64-83a9-53adc859cc3b",
      "name": "User Sends Message to Bot",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1008,
        512
      ]
    },
    {
      "id": "8c7442bb-a9be-4402-89e4-70c62625421d",
      "name": "Send Text Message to Telegram Bot",
      "type": "n8n-nodes-base.telegram",
      "position": [
        160,
        880
      ]
    },
    {
      "id": "4e1834bc-c720-4dd2-8625-45a26906604c",
      "name": "Process Initialization Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        64,
        336
      ]
    },
    {
      "id": "f0a9ee59-abe3-4c65-b4b5-d70084caf60a",
      "name": "Extract Product Details",
      "type": "n8n-nodes-browseract.browserAct",
      "position": [
        64,
        480
      ]
    },
    {
      "id": "4d6ba4fa-44fd-4754-82d6-368df6cebdc5",
      "name": "Chat bot Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -144,
        880
      ]
    },
    {
      "id": "6cf53bc1-5039-4ac6-8ad6-13f3cc2ce3a0",
      "name": "Generate Product Data",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        320,
        400
      ]
    },
    {
      "id": "66315ba1-4dc5-44f7-bf70-5ab5814feb2a",
      "name": "Create WordPress Post",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        1424,
        624
      ]
    },
    {
      "id": "76d2bd6c-6852-4525-9da8-77b755fc7b10",
      "name": "Split out the images",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1760,
        480
      ]
    },
    {
      "id": "00125d1b-f01f-4582-ae44-949cbb2230f0",
      "name": "Update Product Image",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        2240,
        480
      ]
    },
    {
      "id": "9f694eda-07dc-46a8-96ac-0ce798555c6c",
      "name": "Generate Product",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        320,
        592
      ]
    },
    {
      "id": "21b94fbf-30e0-46c5-8851-bbf641925c44",
      "name": "Generate  Article",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1040,
        816
      ]
    },
    {
      "id": "33ad180c-e0ed-4009-85b3-2226a43a352e",
      "name": "Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1408,
        -64
      ],
      "parameters": {
        "width": 380,
        "height": 520,
        "content": "## ⚡ Workflow Overview & Setup\n\n**Summary:** This automation takes a product link from Telegram, scrapes the details using BrowserAct, and automatically creates a new WooCommerce product and a corresp"
      }
    },
    {
      "id": "80350922-6088-4ba7-a52c-51ce7733fffe",
      "name": "Step 1 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1008,
        336
      ],
      "parameters": {
        "width": 700,
        "height": 124,
        "content": "### 🔍 Step 1: Input Analysis & Extraction\n\nThe workflow intercepts Telegram messages to identify product links. An AI agent classifies the input, extracts the URL, and determines if the user wants to "
      }
    },
    {
      "id": "d2ca0e54-4719-4bf9-b564-2dfd9614dfe7",
      "name": "Step 2 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        208
      ],
      "parameters": {
        "width": 812,
        "height": 108,
        "content": "### 🛍️ Step 2: Product Scraping & AI Writing\n\nBrowserAct scrapes the product page for details. An AI Copywriter then transforms raw specs into persuasive sales copy for WooCommerce and a narrative blo"
      }
    },
    {
      "id": "632ec302-b602-4b63-9dc2-0891de52b748",
      "name": "Step 3 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        864,
        256
      ],
      "parameters": {
        "width": 716,
        "height": 108,
        "content": "### 📦 Step 3: Product & Post Creation\n\nThe system creates a new product in WooCommerce with the AI-generated title, price, and description. Simultaneously, it publishes the narrative blog post to Word"
      }
    },
    {
      "id": "f35d8c88-b4a4-4b1d-b0e3-1c5109728625",
      "name": "Step 4 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1696,
        320
      ],
      "parameters": {
        "width": 728,
        "height": 136,
        "content": "### 🖼️ Step 4: Image Management\n\nProduct images are processed and uploaded to the WooCommerce gallery. The workflow ensures each image has unique, SEO-friendly alt text before attaching it to the fina"
      }
    },
    {
      "id": "c50fa502-5e38-400e-bb42-aa0a15ce86e7",
      "name": "Step 4 Explanation1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        1152
      ],
      "parameters": {
        "width": 820,
        "height": 120,
        "content": "### 💬 Step 2-2: Conversational Fallback\n\nIf no Link is present in the user's message, this branch engages the user in natural conversation or prompts them to provide a Link for processing."
      }
    },
    {
      "id": "ba99516a-dde8-4719-b92c-3227bf2a88d7",
      "name": "Await Synchronous Data Arrival",
      "type": "n8n-nodes-base.merge",
      "position": [
        1424,
        480
      ]
    },
    {
      "id": "13cd12d2-085f-488f-a242-da46737f4dc9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -992,
        -64
      ],
      "parameters": {
        "width": 640,
        "height": 368,
        "content": "@[youtube](euLP9xdv7J0)"
      }
    }
  ],
  "connections": {
    "Check Ouput": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Check Ouputs1": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini": {
      "ai_languageModel": [
        [
          {
            "node": "Chat bot Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Chat bot Agent": {
      "main": [
        [
          {
            "node": "Send Text Message to Telegram Bot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Update Product Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a product": {
      "main": [
        [
          {
            "node": "Await Synchronous Data Arrival",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Article": {
      "main": [
        [
          {
            "node": "Create WordPress Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Product": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Product Data",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate  Article": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Article",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Product Data",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output3": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Article",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Validate user Input": {
      "main": [
        [
          {
            "node": "Validation Type Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split out the images": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Product Image": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate user Inputs": {
      "ai_languageModel": [
        [
          {
            "node": "Validate user Input",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate Product Data": {
      "main": [
        [
          {
            "node": "Generate Article",
            "type": "main",
            "index": 0
          },
          {
            "node": "Await Synchronous Data Arrival",
            "type": "main",
            "index": 1
          },
          {
            "node": "Create a product",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validation Type Switch": {
      "main": [
        [
          {
            "node": "Extract Product Details",
            "type": "main",
            "index": 0
          },
          {
            "node": "Process Initialization Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Chat bot Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Chat bot Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Product Details": {
      "main": [
        [
          {
            "node": "Generate Product Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Validate user Input",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "User Sends Message to Bot": {
      "main": [
        [
          {
            "node": "Validate user Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Await Synchronous Data Arrival": {
      "main": [
        [
          {
            "node": "Split out the images",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}