{
  "name": "AI: summarize podcast episode and enhance using Wikipedia",
  "nodes": [
    {
      "id": "b2c3ff9d-936e-4c3c-b3da-84b44f12b6f0",
      "name": "When clicking \"Execute Workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -980,
        500
      ]
    },
    {
      "id": "8ddbbd62-a49b-44d9-b8db-d710c2cc7f07",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        360
      ],
      "parameters": {
        "width": 456,
        "height": 638,
        "content": "## Chunk the transcript into several parts, and refine-summarize it "
      }
    },
    {
      "id": "007400f1-97b8-4b31-a126-f9b76ffabc65",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        360
      ],
      "parameters": {
        "width": 615.8516011477997,
        "height": 443.66706715913415,
        "content": "## Generate Questions and Topics from the summary and make sure the response follows required schema."
      }
    },
    {
      "id": "7e27d8fa-a21c-4690-bf84-6366695d49b6",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        360
      ],
      "parameters": {
        "width": 479,
        "height": 508,
        "content": "## Ask Agent to research and explain each topic using Wikipedia\n\n"
      }
    },
    {
      "id": "e6cef3c3-0811-49dc-9706-f98befeadfc0",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        360
      ],
      "parameters": {
        "width": 452,
        "height": 351,
        "content": "## Format as HTML and send via Gmail"
      }
    },
    {
      "id": "cb911db1-d2af-4d2b-9338-3804f89d6de2",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        -380,
        722.5
      ]
    },
    {
      "id": "20e60d3a-bc0d-4918-b0bc-53dea0b31e15",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -500,
        720
      ]
    },
    {
      "id": "e6d03a52-ba51-4661-a3ff-647bffe1dc4a",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        680,
        500
      ]
    },
    {
      "id": "70c1fa3b-40b2-4015-b6dd-5f0750c80c1b",
      "name": "Wikipedia",
      "type": "@n8n/n8n-nodes-langchain.toolWikipedia",
      "position": [
        860,
        720
      ]
    },
    {
      "id": "968816a8-2da1-4af0-abe1-e46f9df21883",
      "name": "Podcast Episode Transcript",
      "type": "n8n-nodes-base.code",
      "position": [
        -760,
        500
      ]
    },
    {
      "id": "a2ba5d04-8c28-4899-b131-29ade473526e",
      "name": "Summarize Transcript",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        -484,
        500
      ]
    },
    {
      "id": "47b73fb3-0d0c-4125-8639-8809ebccb9f6",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        -280,
        860
      ]
    },
    {
      "id": "0830e349-2c8e-45ad-89be-14a77d0d083e",
      "name": "Extract Topics & Questions",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        -4,
        500
      ]
    },
    {
      "id": "e9e8239d-2154-406a-98c2-b77511a70f3e",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        80,
        660
      ]
    },
    {
      "id": "b3abb262-f334-4ef4-b8f7-a8e6e8aa3b5f",
      "name": "Topics",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        340,
        500
      ]
    },
    {
      "id": "0bd53e7e-e1dd-47bb-86a1-e4f270c4dab3",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        700,
        720
      ]
    },
    {
      "id": "6c05ed75-e890-4500-9804-6118adca6ee6",
      "name": "Format topic text & title",
      "type": "n8n-nodes-base.code",
      "position": [
        1160,
        500
      ]
    },
    {
      "id": "836c1897-04bd-4547-897f-d7bf5ad91762",
      "name": "Send Digest",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1340,
        500
      ]
    }
  ],
  "connections": {
    "Topics": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Format topic text & title",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wikipedia": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Summarize Transcript",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Extract Topics & Questions",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Summarize Transcript",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Summarize Transcript": {
      "main": [
        [
          {
            "node": "Extract Topics & Questions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format topic text & title": {
      "main": [
        [
          {
            "node": "Send Digest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Topics & Questions": {
      "main": [
        [
          {
            "node": "Topics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Podcast Episode Transcript": {
      "main": [
        [
          {
            "node": "Summarize Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Execute Workflow\"": {
      "main": [
        [
          {
            "node": "Podcast Episode Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    }
  }
}