{
  "name": "🏫 English lesson generator from podcasts with RSS, GPT-4, ElevenLabs and Gmail",
  "nodes": [
    {
      "id": "4ab973b0-1d9e-4f21-9054-fd518305153d",
      "name": "Latest Episode",
      "type": "n8n-nodes-base.limit",
      "position": [
        -848,
        -448
      ]
    },
    {
      "id": "90d86576-599f-49a6-ad8f-735b6ab65f29",
      "name": "Parse HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        -512,
        -448
      ]
    },
    {
      "id": "a10da932-7465-41d1-ac82-ff4a39a62714",
      "name": "Prepare Email",
      "type": "n8n-nodes-base.code",
      "position": [
        384,
        -480
      ]
    },
    {
      "id": "55a9a4eb-dcdd-450e-9ca3-767c537df012",
      "name": "Discussion Questions",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -128,
        -128
      ]
    },
    {
      "id": "254e0003-2fe8-40ec-b679-b72a4fcaa229",
      "name": "Practice Exercises",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -128,
        -336
      ]
    },
    {
      "id": "3c16dca9-a353-4eaf-ac15-adf1035c3b10",
      "name": "Email Hook",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -144,
        -576
      ]
    },
    {
      "id": "3aa5ad68-cc82-43a1-9e3e-ba0141d38eb4",
      "name": "Send Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        736,
        -448
      ]
    },
    {
      "id": "f99060da-9028-4621-93d5-74a02e82ed02",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -672
      ],
      "parameters": {
        "width": 668,
        "height": 492,
        "content": "## 6. Build and send the HTML study email with vocabulary audio attached\n"
      }
    },
    {
      "id": "5282c375-8369-4337-9211-e3fb95b03e0c",
      "name": "Trigger Sunday 20:00",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1872,
        -448
      ]
    },
    {
      "id": "409f2a0a-77f8-4749-b228-7a98a708093d",
      "name": "Podcasts from RSS Feed",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -1568,
        -528
      ]
    },
    {
      "id": "41498f6a-253f-49f3-b48e-f63c90cb7cd7",
      "name": "Unique guid(s)",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -1456,
        -352
      ]
    },
    {
      "id": "5d9ae5d4-bb6c-4161-be7e-be074899dc66",
      "name": "Combine with archived guid(s)",
      "type": "n8n-nodes-base.merge",
      "position": [
        -1232,
        -448
      ]
    },
    {
      "id": "67cf3c71-c7bb-4cac-a271-d260caad62a3",
      "name": "Filter out duplicates",
      "type": "n8n-nodes-base.filter",
      "position": [
        -1056,
        -448
      ]
    },
    {
      "id": "38defa5a-2192-4902-8627-c8c2963b6f13",
      "name": "Extract Podcast Information",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -672,
        -448
      ]
    },
    {
      "id": "808623bd-8a99-42ee-abda-cce24219d4da",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2560,
        -672
      ],
      "parameters": {
        "width": 588,
        "height": 1052,
        "content": "## AI English Lesson Generator from Podcasts\n\n### How it works\n1. A trigger runs every Sunday at 20:00 and reads the BBC **6 Minute English** RSS feed  \n2. Previously sent episodes are looked up in th"
      }
    },
    {
      "id": "0da1001c-7f9d-486f-9031-640d73946494",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1888,
        -144
      ],
      "parameters": {
        "width": 912,
        "height": 512,
        "content": "## [Check my Tutorial](https://www.youtube.com/watch?v=IKugAVZWgKM)\n@[youtube](IKugAVZWgKM)"
      }
    },
    {
      "id": "a24815ac-c166-4ab6-9fc4-f4a54b78c4cc",
      "name": "Merge All Sections",
      "type": "n8n-nodes-base.merge",
      "position": [
        224,
        -464
      ]
    },
    {
      "id": "8fd65fc0-3b47-49fa-87a9-3da8ed4c4887",
      "name": "Model: Email Hook",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -240,
        -464
      ]
    },
    {
      "id": "ce0192e9-e823-47b1-823d-9e6fd0a4a6e6",
      "name": "Model: Practice Exercises",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -240,
        -224
      ]
    },
    {
      "id": "a35107de-6616-435b-9cd7-0a7dbe4faba2",
      "name": "Model: Discussion Questions",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -240,
        -16
      ]
    },
    {
      "id": "66193edb-73e7-4b74-8fc5-752e3cdc39df",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -672
      ],
      "parameters": {
        "width": 476,
        "height": 796,
        "content": "## 4. Generate hook and exercises from the episode content"
      }
    },
    {
      "id": "04e9f287-47fd-43d9-bb2d-66ad1f403a19",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        -672
      ],
      "parameters": {
        "width": 476,
        "height": 492,
        "content": "## 3. Select latest unsent episode and fetch its page content"
      }
    },
    {
      "id": "14c7029b-9f35-4c4d-9391-f2b04a7eb708",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1296,
        -672
      ],
      "parameters": {
        "width": 380,
        "height": 492,
        "content": "## 2. Filter out podcasts that have already been sent\n"
      }
    },
    {
      "id": "2588028f-173d-4485-b282-c89bfab9778d",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1888,
        -672
      ],
      "parameters": {
        "width": 572,
        "height": 492,
        "content": "## 1. Weekly trigger to fetch RSS feed and load archived GUIDs\n"
      }
    },
    {
      "id": "11cc185a-8b94-480d-a3a4-ad46effd03f0",
      "name": "Split Out Vocabulary",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -288,
        240
      ]
    },
    {
      "id": "0760b50b-a72e-4cd3-97d6-faeff08363db",
      "name": "Combine Words",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -128,
        240
      ]
    },
    {
      "id": "adc5c199-ba25-416e-98a7-51b51c101298",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        144
      ],
      "parameters": {
        "width": 476,
        "height": 236,
        "content": "## 5. Generate vocabulary audio with ElevenLabs"
      }
    },
    {
      "id": "b6af0e0a-dc3b-45a1-958e-05a0b1345d08",
      "name": "Generate Audio Transcript",
      "type": "@elevenlabs/n8n-nodes-elevenlabs.elevenLabs",
      "position": [
        48,
        240
      ]
    },
    {
      "id": "e7e9310c-3fc1-4830-af84-2212e93adcac",
      "name": "Archived Podcasts",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -1648,
        -352
      ]
    },
    {
      "id": "ccc7c946-0726-4e28-9945-5584290d1d27",
      "name": "Combine Email + Attachment",
      "type": "n8n-nodes-base.merge",
      "position": [
        576,
        -448
      ]
    }
  ],
  "connections": {
    "Email Hook": {
      "main": [
        [
          {
            "node": "Merge All Sections",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse HTML": {
      "main": [
        [
          {
            "node": "Email Hook",
            "type": "main",
            "index": 0
          },
          {
            "node": "Practice Exercises",
            "type": "main",
            "index": 0
          },
          {
            "node": "Discussion Questions",
            "type": "main",
            "index": 0
          },
          {
            "node": "Split Out Vocabulary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Words": {
      "main": [
        [
          {
            "node": "Generate Audio Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Email": {
      "main": [
        [
          {
            "node": "Combine Email + Attachment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Latest Episode": {
      "main": [
        [
          {
            "node": "Extract Podcast Information",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Unique guid(s)": {
      "main": [
        [
          {
            "node": "Combine with archived guid(s)",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Archived Podcasts": {
      "main": [
        [
          {
            "node": "Unique guid(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Model: Email Hook": {
      "ai_languageModel": [
        [
          {
            "node": "Email Hook",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Merge All Sections": {
      "main": [
        [
          {
            "node": "Prepare Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Practice Exercises": {
      "main": [
        [
          {
            "node": "Merge All Sections",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Discussion Questions": {
      "main": [
        [
          {
            "node": "Merge All Sections",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Split Out Vocabulary": {
      "main": [
        [
          {
            "node": "Combine Words",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger Sunday 20:00": {
      "main": [
        [
          {
            "node": "Podcasts from RSS Feed",
            "type": "main",
            "index": 0
          },
          {
            "node": "Archived Podcasts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter out duplicates": {
      "main": [
        [
          {
            "node": "Latest Episode",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Podcasts from RSS Feed": {
      "main": [
        [
          {
            "node": "Combine with archived guid(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Audio Transcript": {
      "main": [
        [
          {
            "node": "Combine Email + Attachment",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Model: Practice Exercises": {
      "ai_languageModel": [
        [
          {
            "node": "Practice Exercises",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Combine Email + Attachment": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Podcast Information": {
      "main": [
        [
          {
            "node": "Parse HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Model: Discussion Questions": {
      "ai_languageModel": [
        [
          {
            "node": "Discussion Questions",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Combine with archived guid(s)": {
      "main": [
        [
          {
            "node": "Filter out duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}