{
  "name": "Generate audio documentaries from web articles with ElevenLabs and BrowserAct",
  "nodes": [
    {
      "id": "09cea8e1-cb2e-4e89-ade5-f116d826d3a8",
      "name": "Convert text to speech",
      "type": "@elevenlabs/n8n-nodes-elevenlabs.elevenLabs",
      "position": [
        1184,
        96
      ]
    },
    {
      "id": "1b93468c-ef4b-4acf-a641-b7f0cf3fcfe9",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -352,
        272
      ]
    },
    {
      "id": "17590514-6226-4d8e-a5f7-3c59c047f1a0",
      "name": "Validate user Input",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -448,
        96
      ]
    },
    {
      "id": "9db82843-ee96-4987-93af-c44f354d1cd8",
      "name": "OpenRouter",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        512,
        128
      ]
    },
    {
      "id": "8c1ba184-4f91-468e-941b-15b77dd1e0bf",
      "name": "Google Gemini",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        224,
        736
      ]
    },
    {
      "id": "bcc683cf-73de-47eb-ae20-cbaa7cdef94f",
      "name": "Google Gemini1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -464,
        288
      ]
    },
    {
      "id": "1b308edc-7dc8-402c-8365-1378c685cc13",
      "name": "Structured Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        640,
        144
      ]
    },
    {
      "id": "44cc33ff-dffd-4253-88ff-88a1e55831c5",
      "name": "Notify User",
      "type": "n8n-nodes-base.telegram",
      "position": [
        224,
        -192
      ]
    },
    {
      "id": "c57ddf8a-2d5f-45d1-bac9-a27882d9f445",
      "name": "Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1056,
        -560
      ],
      "parameters": {
        "width": 380,
        "height": 516,
        "content": "## ⚡ Workflow Overview & Setup\n\n**Summary:** This automation converts web articles sent via Telegram into engaging audio documentaries by scraping text with BrowserAct, rewriting it into a narrative s"
      }
    },
    {
      "id": "6e886a42-49d0-40a1-9127-3c195237a811",
      "name": "Step 1 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -656,
        -112
      ],
      "parameters": {
        "width": 664,
        "height": 156,
        "content": "### 🧠 Step 1: Intent Recognition\n\nThe system analyzes incoming Telegram messages to distinguish between general conversation and content requests. If a valid URL is detected, it routes the process to "
      }
    },
    {
      "id": "f9db7f9e-b335-4259-99cb-72d2f825e0ec",
      "name": "Step 2 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -352
      ],
      "parameters": {
        "width": 688,
        "height": 148,
        "content": "### ✍️ Step 2: Scraping & Scripting\n\nBrowserAct extract the full text from the provided link. An AI agent then transforming raw research data into an emotional, high-stakes audio documentary script, w"
      }
    },
    {
      "id": "6c20f625-a10f-426f-aace-046c51335a4a",
      "name": "Step 3 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        -96
      ],
      "parameters": {
        "width": 584,
        "height": 140,
        "content": "### 🎙️ Step 3: Production & Delivery\n\nThe generated script is sent to ElevenLabs to create a voiceover. The final file is then uploaded to Telegram, accompanied by the AI-generated caption."
      }
    },
    {
      "id": "841a630e-6ffa-43f7-937b-b7749416957e",
      "name": "Step 4 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        400
      ],
      "parameters": {
        "width": 564,
        "height": 136,
        "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": "a275592a-8599-4eb2-ba73-76a16b2327f3",
      "name": "User Sends Message to Bot",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -656,
        96
      ]
    },
    {
      "id": "714420d7-0c71-48ac-aaf6-9329db72f945",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -560
      ],
      "parameters": {
        "width": 624,
        "height": 368,
        "content": "@[youtube](YuxjfB87F0E)"
      }
    },
    {
      "id": "d3c731e7-e1bc-4489-a6f6-873f5b6552c2",
      "name": "Get Article Data from BrowserAct",
      "type": "n8n-nodes-browseract.browserAct",
      "position": [
        224,
        -48
      ]
    },
    {
      "id": "96de8726-e5f5-4217-a2e5-568a1ce8f42e",
      "name": "Check For Input Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        -96,
        80
      ]
    },
    {
      "id": "fa7912ad-6561-4f84-bd26-d7e9dd19bf78",
      "name": "Chatting With User",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        224,
        576
      ]
    },
    {
      "id": "8d217a0b-2662-4f9b-ab87-d033d9e6adda",
      "name": "Answer the User",
      "type": "n8n-nodes-base.telegram",
      "position": [
        608,
        576
      ]
    },
    {
      "id": "b71a4ea8-d867-48d9-9bc2-b2fe1437fb9c",
      "name": "Send an audio file To User",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1568,
        96
      ]
    },
    {
      "id": "9e77b86a-4fdb-4116-8e6e-80f0894d675f",
      "name": "Write Script for ElevenLabs",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        512,
        -48
      ]
    }
  ],
  "connections": {
    "OpenRouter": {
      "ai_languageModel": [
        [
          {
            "node": "Write Script for ElevenLabs",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini": {
      "ai_languageModel": [
        [
          {
            "node": "Chatting With User",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini1": {
      "ai_languageModel": [
        [
          {
            "node": "Validate user Input",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "Write Script for ElevenLabs",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Chatting With User": {
      "main": [
        [
          {
            "node": "Answer the User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate user Input": {
      "main": [
        [
          {
            "node": "Check For Input Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check For Input Type": {
      "main": [
        [
          {
            "node": "Notify User",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Article Data from BrowserAct",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Chatting With User",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Chatting With User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert text to speech": {
      "main": [
        [
          {
            "node": "Send an audio file To User",
            "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
          }
        ]
      ]
    },
    "Write Script for ElevenLabs": {
      "main": [
        [
          {
            "node": "Convert text to speech",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Article Data from BrowserAct": {
      "main": [
        [
          {
            "node": "Write Script for ElevenLabs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}