{
  "name": "Create WordPress posts and Telegram updates from links with BrowserAct and Gemini",
  "nodes": [
    {
      "id": "b4354abe-0b88-4a5f-ac40-830082a476c6",
      "name": "Generate an image",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1712,
        464
      ]
    },
    {
      "id": "a2b9eea1-0ef1-4fec-826c-e9f2000afcd1",
      "name": "Validate user Input",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -288,
        304
      ]
    },
    {
      "id": "914a9e2d-7435-41f0-bf2f-c2080a9651e4",
      "name": "Images Analayze",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1072,
        464
      ]
    },
    {
      "id": "497eb6a7-b4b0-4713-bab0-a937f2f55fb5",
      "name": "Generate Web Structure",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2240,
        192
      ]
    },
    {
      "id": "b1e4cfb2-e436-45b2-9c24-ce51dde3368e",
      "name": "Generate Telegram Post",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2944,
        192
      ]
    },
    {
      "id": "eb3c6bb8-dc2a-409f-8ea2-c001073caa6f",
      "name": "OpenRouter",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2240,
        384
      ]
    },
    {
      "id": "d95ebec0-e04c-456b-879d-6b0d81305fe8",
      "name": "Structured Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2368,
        368
      ]
    },
    {
      "id": "a455726d-3529-477a-8a20-9ca73fecd24a",
      "name": "OpenRouter1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2944,
        432
      ]
    },
    {
      "id": "8fdc658c-0d6a-4009-8f55-452cf34d0479",
      "name": "Analyze image",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1056,
        688
      ]
    },
    {
      "id": "4e4d43b3-31a9-4251-bd7b-c331c732e556",
      "name": "Generate Prompt",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1424,
        688
      ]
    },
    {
      "id": "94eaef75-a648-43b3-ab92-fbe7751e08ce",
      "name": "Structured Output1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1168,
        672
      ]
    },
    {
      "id": "6199eb21-830f-404a-a007-77a73177b8c4",
      "name": "Structured Output2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1552,
        672
      ]
    },
    {
      "id": "1772b4f4-971f-4ac5-a0f8-ae0d02c76893",
      "name": "Structured Output3",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        3040,
        432
      ]
    },
    {
      "id": "60c767e2-bf31-495e-8461-0f3cb1559750",
      "name": "Generate Script",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        656,
        416
      ]
    },
    {
      "id": "827ac349-4b26-4b19-8187-33eb79ddb6de",
      "name": "Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        320,
        736
      ]
    },
    {
      "id": "ff47d8c1-7c62-4849-96cf-b37411baaefd",
      "name": "Validate inputs",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -304,
        528
      ]
    },
    {
      "id": "8de3faa5-e852-41d8-a28c-14c24c967a1a",
      "name": "Upload Image To Wordpress",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1936,
        464
      ]
    },
    {
      "id": "b837d733-667f-4672-ab4d-b3fb661ef4e0",
      "name": "User Sends Message to Bot",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -480,
        304
      ]
    },
    {
      "id": "c4e4b274-7f1f-4621-af0e-a4798f4127ff",
      "name": "Check For Input Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        64,
        288
      ]
    },
    {
      "id": "57447047-58a8-4f8d-8f35-65abf3971cc7",
      "name": "Process Initialization Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        384,
        112
      ]
    },
    {
      "id": "9673f294-7810-4047-a628-cba72bfb7bf6",
      "name": "Extract Data from Target Site",
      "type": "n8n-nodes-browseract.browserAct",
      "position": [
        384,
        272
      ]
    },
    {
      "id": "d003e69e-bc2a-47e1-8ca6-7668a155c5b2",
      "name": "Generate Image Prompt",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1424,
        464
      ]
    },
    {
      "id": "6fb99475-19f4-4012-a958-be4f4a51f52e",
      "name": "Synchronize Parallel Executions",
      "type": "n8n-nodes-base.merge",
      "position": [
        2096,
        192
      ]
    },
    {
      "id": "af41ea63-b875-4423-90b4-8c567a49c6bb",
      "name": "Synchronize Paths",
      "type": "n8n-nodes-base.merge",
      "position": [
        2784,
        192
      ]
    },
    {
      "id": "8f594f59-1cae-448b-a995-066f5d9e84f8",
      "name": "Waiting for Required Inputs",
      "type": "n8n-nodes-base.merge",
      "position": [
        3344,
        288
      ]
    },
    {
      "id": "fb42538e-3d84-4ca7-a785-0ef5ad38f58e",
      "name": "Answer the User",
      "type": "n8n-nodes-base.telegram",
      "position": [
        672,
        592
      ]
    },
    {
      "id": "8e0cb123-cdda-45e0-aee8-ae88f50a84b7",
      "name": "Send a photo And caption",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3520,
        288
      ]
    },
    {
      "id": "bec183c2-c1a0-4d65-a976-8510bc654d32",
      "name": "Publish Post via WordPress",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        2592,
        208
      ]
    },
    {
      "id": "59dd54fa-b397-4a08-9544-a587020194f8",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -144,
        528
      ]
    },
    {
      "id": "48e31482-3c3f-47ca-94a6-e57d16106cfb",
      "name": "Conversational Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        320,
        592
      ]
    },
    {
      "id": "3529bdb7-b76d-4d74-8a80-b562dab8693e",
      "name": "Structured Output4",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        752,
        400
      ]
    },
    {
      "id": "bf94b0c5-fc25-46e9-8c6f-07e28c73eb96",
      "name": "Analyze Input & Generate Article",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        672,
        176
      ]
    },
    {
      "id": "6b5edf62-21c3-4d15-8e6c-40c73355efc2",
      "name": "Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -928,
        80
      ],
      "parameters": {
        "width": 400,
        "height": 476,
        "content": "## ⚡ Workflow Overview & Setup\n\n**Summary:** A full-stack publishing engine that scrapes articles, uses AI to write SEO-optimized blog posts, generates custom artwork, and broadcasts updates to Telegr"
      }
    },
    {
      "id": "4e8e37b6-546d-40d3-b4a4-de24aefbd1fd",
      "name": "Step 1 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -496,
        128
      ],
      "parameters": {
        "width": 700,
        "height": 108,
        "content": "### 🚦 Step 1: Intelligent Routing\n\nThe workflow acts as a chat bot first. It analyzes user intent to distinguish between casual conversation and specific article processing requests. If a valid URL is"
      }
    },
    {
      "id": "7399b387-642d-450a-b321-34203aa519f8",
      "name": "Step 2b Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        -16
      ],
      "parameters": {
        "width": 768,
        "height": 112,
        "content": "### ✍️ Step 2: Content Engineering\n\nRunning in parallel with the image generation, this branch cleans the raw scraped text. It rewrites the article for SEO, formats it into valid HTML headers/paragrap"
      }
    },
    {
      "id": "3b0cd0ce-79e7-4fee-9eeb-9facdab861ce",
      "name": "Step 3 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        816
      ],
      "parameters": {
        "width": 1036,
        "height": 124,
        "content": "### 🖼️ Step 3: Visual Synthesis& Upload\n\nAnalyzes scraped visuals to prompt Gemini for a unique, copyright-free feature image. Once text and images are ready, it uploads to WordPress and sends the Ima"
      }
    },
    {
      "id": "5f201625-8441-4cd3-81bd-a245daae0051",
      "name": "Step 4 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2096,
        48
      ],
      "parameters": {
        "width": 1548,
        "height": 112,
        "content": "### 📢 Step 4: Dual-Channel Publishing\n\nOnce the WordPress blog post is live, the workflow retrieves the public link. It then combines the new blog link, the generated image, and the AI-written caption"
      }
    },
    {
      "id": "b834f11d-353c-4d04-8dc5-05b1ff6d0c86",
      "name": "Step 4 Explanation1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        896
      ],
      "parameters": {
        "width": 596,
        "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 URL for processing."
      }
    },
    {
      "id": "aa74defc-434c-437e-925f-8808c5cc06fc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1856,
        352
      ],
      "parameters": {
        "width": 272,
        "height": 272,
        "content": "\nACTION REQUIRED: Replace the Google search URL with your live site domain.\n\nFind: > (\"YourWordPressAddress.com\")\n\nReplace with: > your-actual-site.com"
      }
    }
  ],
  "connections": {
    "Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Conversational Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Web Structure",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter1": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Telegram Post",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Analyze image": {
      "ai_languageModel": [
        [
          {
            "node": "Images Analayze",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate Prompt": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Image Prompt",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate Script": {
      "ai_languageModel": [
        [
          {
            "node": "Analyze Input & Generate Article",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output4",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Images Analayze": {
      "main": [
        [
          {
            "node": "Generate Image Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate inputs": {
      "ai_languageModel": [
        [
          {
            "node": "Validate user Input",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate an image": {
      "main": [
        [
          {
            "node": "Upload Image To Wordpress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Web Structure",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Synchronize Paths": {
      "main": [
        [
          {
            "node": "Generate Telegram Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output1": {
      "ai_outputParser": [
        [
          {
            "node": "Images Analayze",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output2": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Image Prompt",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output3": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Telegram Post",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output4": {
      "ai_outputParser": [
        [
          {
            "node": "Analyze Input & Generate Article",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Validate user Input": {
      "main": [
        [
          {
            "node": "Check For Input Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check For Input Type": {
      "main": [
        [
          {
            "node": "Process Initialization Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Extract Data from Target Site",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Conversational Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Conversational Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Conversational Agent": {
      "main": [
        [
          {
            "node": "Answer the User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image Prompt": {
      "main": [
        [
          {
            "node": "Generate an image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Telegram Post": {
      "main": [
        [
          {
            "node": "Waiting for Required Inputs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Web Structure": {
      "main": [
        [
          {
            "node": "Publish Post via WordPress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Validate user Input",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image To Wordpress": {
      "main": [
        [
          {
            "node": "Waiting for Required Inputs",
            "type": "main",
            "index": 1
          },
          {
            "node": "Synchronize Parallel Executions",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "User Sends Message to Bot": {
      "main": [
        [
          {
            "node": "Validate user Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish Post via WordPress": {
      "main": [
        [
          {
            "node": "Synchronize Paths",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Waiting for Required Inputs": {
      "main": [
        [
          {
            "node": "Send a photo And caption",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Data from Target Site": {
      "main": [
        [
          {
            "node": "Analyze Input & Generate Article",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Synchronize Parallel Executions": {
      "main": [
        [
          {
            "node": "Generate Web Structure",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Input & Generate Article": {
      "main": [
        [
          {
            "node": "Images Analayze",
            "type": "main",
            "index": 0
          },
          {
            "node": "Synchronize Paths",
            "type": "main",
            "index": 0
          },
          {
            "node": "Synchronize Parallel Executions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}