{
  "name": "Aggregate Twitter/X content to Telegram channel with BrowserAct & Google Gemini",
  "nodes": [
    {
      "id": "51ad1db1-1268-43f2-af87-49784184b19e",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1056,
        80
      ]
    },
    {
      "id": "eb445058-6561-4cdd-aeb6-86b1cea7caac",
      "name": "HTTP Request1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -576,
        64
      ]
    },
    {
      "id": "e3a8baef-33a5-4b36-a0ac-f393077dfba9",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -320,
        336
      ]
    },
    {
      "id": "d7afdc55-375d-42f6-aec1-d5ed4073fd86",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        -864,
        336
      ]
    },
    {
      "id": "4f1ec379-162b-4d77-bdb5-e4bcdca86935",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -864,
        80
      ]
    },
    {
      "id": "a50bbd98-fbb7-4bab-bd52-b03c9c12c7b5",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        -304,
        64
      ]
    },
    {
      "id": "641e6deb-f68f-48ad-99e5-382d0b36df95",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        464,
        112
      ]
    },
    {
      "id": "a53dc2cd-7ed0-478a-a610-bca789143af5",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        -64,
        400
      ]
    },
    {
      "id": "61a053ae-cd55-43b2-9b08-53171f39c37c",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -64,
        48
      ]
    },
    {
      "id": "ce1fbc09-7156-4a7d-b88c-1c1bb881d12a",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        96,
        256
      ]
    },
    {
      "id": "55d8a924-c02d-4d5e-893f-094587a8b1a7",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -64,
        256
      ]
    },
    {
      "id": "c582cfc7-66c7-46da-918f-6758014b8587",
      "name": "If2",
      "type": "n8n-nodes-base.if",
      "position": [
        128,
        400
      ]
    },
    {
      "id": "e63901a7-2e00-4467-8191-a6e529d9ef90",
      "name": "Send a photo message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        464,
        336
      ]
    },
    {
      "id": "85e66f7d-b04c-494a-a80c-3d54522b8aaa",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1312,
        80
      ]
    },
    {
      "id": "2170f06f-24de-455c-8f2a-bbd3310a72d0",
      "name": "Sticky Note-Intro",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1936,
        -128
      ],
      "parameters": {
        "width": 592,
        "height": 408,
        "content": "## Try It Out!\n### This n8n template automatically scrapes and refines content from the X homepage and sends curated posts to your Telegram channel.\n\n### How it works\n* The workflow is triggered autom"
      }
    },
    {
      "id": "80c1e1b8-cb9b-42c4-8509-81106db60295",
      "name": "Sticky Note-Scraping",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1152,
        -128
      ],
      "parameters": {
        "width": 480,
        "height": 164,
        "content": "## 1. Trigger the Job Scraper\n\nThis workflow uses an HTTP Request to start a job scraping task via the BrowserAct API. This allows you to collect up-to-date job market data.\n\n### Don't forget to add y"
      }
    },
    {
      "id": "341dd9f1-bde8-4fc8-9fd9-39dc60107eef",
      "name": "Sticky Note-Wait",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -656,
        -128
      ],
      "parameters": {
        "width": 512,
        "height": 164,
        "content": "## 2. Wait for Scraping to Finish\n\nThese nodes check the status of the scraping task. The `If` node determines if the task is complete. If it's still running, the `Wait` node pauses the workflow for a"
      }
    },
    {
      "id": "81b9fbd7-33fc-4563-8a1f-e3a4fc939cb2",
      "name": "Sticky Note-AI",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        -128
      ],
      "parameters": {
        "width": 448,
        "height": null,
        "content": "## 3. Refine Content with AI\n\nThis **AI Agent** node, powered by **Google Gemini**, processes the scraped data. Its job is to summarize the posts and remove any duplicate information, ensuring the fin"
      }
    },
    {
      "id": "f861965c-7e8c-4008-b6ea-6aa310d0b813",
      "name": "Sticky Note-Conditional Send",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        -128
      ],
      "parameters": {
        "width": 352,
        "height": 196,
        "content": "## 4. Send to Telegram\n\nAn **If** node checks if the post includes an image. It then routes the data to either a 'send photo' or 'send text message' Telegram node, ensuring the content is sent in the "
      }
    },
    {
      "id": "1f370ea2-d0fd-4442-baa8-ae101cd9e5f7",
      "name": "Sticky Note-How to Use",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1936,
        288
      ],
      "parameters": {
        "width": 592,
        "height": 168,
        "content": "## How to use\n\n1.  **Set up Credentials:** Add your credentials for **BrowserAct**, **Google Gemini**, and **Telegram** to the workflow. They will be used by the relevant nodes.\n2.  **Set up BrowserAc"
      }
    },
    {
      "id": "323127a9-6e88-41a6-8529-b43cc44b009a",
      "name": "Sticky Note-Help",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1936,
        464
      ],
      "parameters": {
        "width": 592,
        "height": 96,
        "content": "## Need Help ?\n* [How to Find Your BrowserAct API Key & Workflow ID](https://www.youtube.com/watch?v=pDjoZWEsZlE)\n* [How to Connect n8n to Browseract](https://www.youtube.com/watch?v=RoYMdJaRdcQ)\n* [H"
      }
    },
    {
      "id": "b78bcd09-88bc-4dd9-8ef1-32d3e247a6e1",
      "name": "Sticky Note-Video",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1936,
        576
      ],
      "parameters": {
        "width": 592,
        "height": 80,
        "content": "## Watch Workflow Guidance and Showcase\n* #### [Automate Your Social Media: Get All X/Twitter Updates Directly in Telegram!](https://youtu.be/6CXe6k9vihk)"
      }
    },
    {
      "id": "f59c80ea-db18-4f18-b623-f4f0fe156c69",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1152,
        48
      ],
      "parameters": {
        "width": 480,
        "height": 480,
        "content": ""
      }
    },
    {
      "id": "c8d84675-275a-4838-961c-9701f8a3a7cb",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -656,
        48
      ],
      "parameters": {
        "width": 512,
        "height": 480,
        "content": ""
      }
    },
    {
      "id": "807e290e-0b2e-4e75-b91d-e4b7ab77cb9e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        48
      ],
      "parameters": {
        "width": 448,
        "height": 480,
        "content": ""
      }
    },
    {
      "id": "a821fb85-990c-4a4c-9329-808dff71b184",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        80
      ],
      "parameters": {
        "width": 352,
        "height": 448,
        "content": ""
      }
    },
    {
      "id": "94468263-32d0-49c2-b805-61f8a0c1b7cb",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1008,
        -240
      ],
      "parameters": {
        "width": 182,
        "height": 80,
        "content": "## \n# Run Node"
      }
    },
    {
      "id": "3116f3bc-dd38-4a46-b62e-713150332933",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -496,
        -240
      ],
      "parameters": {
        "width": 182,
        "height": 80,
        "content": "## \n# Get Node"
      }
    },
    {
      "id": "0c84785c-6e66-47d1-b307-9198ccbc85a4",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        -240
      ],
      "parameters": {
        "width": 230,
        "height": 80,
        "content": "## \n# Agent Node"
      }
    },
    {
      "id": "ec102a87-733d-4e22-8a08-154d53552139",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -240
      ],
      "parameters": {
        "width": 214,
        "height": 80,
        "content": "## \n# Send Node"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If2": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a photo message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "If2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}