AI Podcast Digest with Wikipedia Research & Gmail
Overview
This workflow automatically processes a podcast transcript, generates a structured summary, extracts key topics and questions, researches each topic using Wikipedia via an AI agent, and emails a beautifully formatted HTML digest. It's perfect for podcasters, students, or lifelong learners who want to turn long-form audio content into actionable, research-backed notes.
The workflow demonstrates a powerful pattern: combining large language models (LLMs) for summarization and extraction with external knowledge tools (Wikipedia) to enrich content, then delivering the result via email. It's a complete content processing pipeline that can be adapted for articles, videos, or any text-heavy content.
Step-by-Step Breakdown
-
When clicking "Execute Workflow" (Manual Trigger) — No auth. This is a manual trigger that starts the workflow when you click the "Execute Workflow" button in the n8n editor. It's useful for testing and one-off runs.
-
Podcast Episode Transcript (Code Node) — No auth. This node contains a hardcoded JavaScript string of a podcast transcript (from the "Philosophize This!" episode on consciousness). In a real-world scenario, you would replace this with a node that fetches a transcript from a file, URL, or database.
-
Recursive Character Text Splitter (Text Splitter) — No auth. This splits the transcript into chunks of 6000 characters with 1000 character overlap. This is necessary because LLMs have context windows; splitting ensures the summarization can process long documents without truncation.
-
Default Data Loader (Document Loader) — No auth. This node takes the split text chunks and converts them into a document format that the summarization chain can process. It acts as a bridge between the text splitter and the LLM.
-
OpenAI Chat Model (LLM: OpenAI) — API Key auth. This is the language model (GPT-4o-mini) used for the initial summarization. You need an OpenAI API key with access to this model. Configure it in n8n credentials under "OpenAI".
-
Summarize Transcript (Chain: Summarization) — No auth. This node uses the OpenAI model to generate a concise summary of the entire transcript. It processes the document chunks from the loader and produces a coherent summary.
-
OpenAI Chat Model3 (LLM: OpenAI) — API Key auth. A second instance of GPT-4o-mini, used for the information extraction step. Same credential setup as above.
-
Extract Topics & Questions (Information Extractor) — No auth. This node takes the summary and uses the LLM to extract:
- A list of questions (with explanations of why they're relevant)
- A list of topics (with explanations of relevance) The output follows a strict JSON schema defined in the node parameters, ensuring structured data.
-
Topics (Split Out) — No auth. This node splits the array of extracted questions into individual items, so each question can be processed independently by the AI Agent.
-
OpenAI Chat Model1 (LLM: OpenAI) — API Key auth. A third instance of GPT-4o-mini, used as the language model for the AI Agent that researches topics. Same credential setup.
-
Wikipedia (Tool: Wikipedia) — No auth. This is a tool that the AI Agent can use to search and retrieve information from Wikipedia. It requires no authentication.
-
AI Agent (Agent) — No auth. This is the core research node. For each question extracted, it:
- Receives the question and context (the summary)
- Uses the Wikipedia tool to research the topic
- Generates a detailed explanation using the LLM The agent can make multiple Wikipedia queries to build a comprehensive answer.
-
Format topic text & title (Code Node) — No auth. This JavaScript node:
- Collects all the researched topics from the AI Agent
- Collects the original questions from the extraction step
- Formats everything into HTML with proper headings and paragraphs
- Returns the summary, topics HTML, and questions HTML as separate fields
-
Send Digest (Gmail) — OAuth2 auth. This node sends an email to a specified recipient (currently hardcoded to [email protected]) with:
- A greeting
- The episode summary
- The researched topics (formatted as HTML)
- The questions to ponder (formatted as HTML) You need to connect a Gmail account via OAuth2 in n8n credentials.
Setup Instructions
Required Accounts & Credentials
- OpenAI Account: Sign up at platform.openai.com and create an API key. You'll need access to GPT-4o-mini (or another model). Add this as an "OpenAI" credential in n8n.
- Gmail Account: You need a Gmail account to send emails. In n8n, create a "Gmail OAuth2" credential by connecting your Google account. You may need to enable "Less secure app access" or use an App Password if 2FA is enabled.
- No other services required: Wikipedia access is built-in and requires no authentication.
Configuration Steps
- Replace the hardcoded transcript in the Podcast Episode Transcript node with your actual transcript (from a file, URL, or database).
- Update the Send Digest node's "Send To" field with your email address.
- Customize the email subject and message template in the Send Digest node.
- (Optional) Change the OpenAI model in the three chat model nodes if you prefer a different model.
- (Optional) Adjust the chunk size and overlap in the text splitter for longer or shorter transcripts.
Use Cases & Variations
Primary Use Case
- Podcast Content Repurposing: Automatically turn podcast episodes into research-backed email digests for subscribers.
Variations
- YouTube Video Processing: Replace the transcript node with a YouTube transcript fetcher (using the YouTube API or a custom node).
- Meeting Notes: Feed meeting transcripts (from Otter.ai, Fireflies, etc.) to generate action items and research topics.
- Academic Paper Analysis: Process research papers or articles to extract key questions and find Wikipedia references.
- Newsletter Automation: Combine with a database to store digests and send them on a schedule (e.g., weekly).
- Multi-Language Support: Change the LLM model or add a translation step for non-English content.
- Different Knowledge Sources: Replace the Wikipedia tool with other tools like a web search, internal database, or custom API.
Customization Tips
- Modify the JSON schema in the Extract Topics & Questions node to extract different types of information (e.g., key quotes, action items, sentiment).
- Change the email template in the Format topic text & title node to match your brand or preferred format.
- Add a Schedule Trigger node to run this automatically (e.g., every Monday morning for weekly episodes).
Workflow JSON
{
"meta": {
"instanceId": "408f9fb9940c3cb18ffdef0e0150fe342d6e655c3a9fac21f0f644e8bedabcd9",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "b2c3ff9d-936e-4c3c-b3da-84b44f12b6f0",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-980,
500
],
"parameters": {},
"typeVersion": 1
},
{
"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 "
},
"typeVersion": 1
},
{
"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."
},
"typeVersion": 1
},
{
"id": "7e27d8fa-a21c-4690-bf84-6366695d49b6",
"name": "Sticky Note3",
// ... truncated (copy to see full JSON)How to Import This Workflow
- 1Copy the workflow JSON above using the Copy Workflow JSON button.
- 2Open your n8n instance and go to Workflows.
- 3Click Import from JSON and paste the copied workflow.
Don't have an n8n instance? Start your free trial at n8nautomation.cloud
Related Templates
Telegram Bot TikTok Video Downloader (No Watermark)
Overview This workflow transforms your Telegram bot into a powerful TikTok video downloader without watermarks. When a user sends a TikTok link to the bot, it automatically validates the URL, fetches the video page, extracts the clean video URL, downloads the file, and sends it back to the user with statistics (views, likes, author). The entire process is handled seamlessly with real-time status updates and robust error handling. This is perfect for content curators, social media managers, or anyone who wants to save TikTok videos without watermarks directly from Telegram. The bot provides a smooth user experience with progress messages and clear error feedback. Workflow Steps Telegram Trigger (No auth) — Listens for incoming messages from Telegram users. Configured to receive only updates. This node requires a Telegram Bot Token set up in n8n credentials. Validate TikTok URL (No auth) — An IF node that checks if the received message contains in the text. Uses string contains operator with loose type validation. Routes valid URLs to the processing path and invalid ones to an error message. Send Invalid URL Message (Telegram API Key auth) — Sends a friendly error message to the user explaining they need to provide a valid TikTok link with examples. Uses the chat ID from the original trigger message. Send Chat Action (Telegram API Key auth) — Sends a "uploading video" chat action to show the user that the bot is processing their request. This provides visual feedback in the Telegram chat. Send Processing Message (Telegram API Key auth) — Sends a status message "⏳ Downloading video... Please wait!" to keep the user informed about the progress. Configure Variables (No auth) — A Set node that stores the video URL (trimmed) and chat ID as named variables for use in subsequent nodes. This ensures data persistence through the workflow. Get TikTok Page HTML (No auth) — An HTTP Request node that fetches the TikTok video page HTML. Uses browser-like headers (User-Agent, Accept, Accept-Language) to mimic a real browser request. Configured with a 30-second timeout and full response capture. On error, it continues to the error handling path. Extract Video URL (No auth) — A Code node running JavaScript that parses the HTML to find the script tag containing video metadata. Extracts the video URL (playAddr or downloadAddr), cookies, description, author, and statistics (plays, likes, comments). On error, it routes to the error handler. Download Video File (No auth) — An HTTP Request node that downloads the actual video file using the extracted URL. Includes cookies from the previous step, proper referrer header, and a 60-second timeout. Configured to return binary file data. On error, it routes to the error handler. Delete Process Notif (Telegram API Key auth) — Deletes the "Processing..." status message to clean up the chat after the video is ready. Uses the message ID from the earlier status message. Send Video to User (Telegram API Key auth) — Sends the downloaded video file to the user with a formatted caption showing the author, view count, and like count. Uses binary data mode for file upload. Format Error (No auth) — A Code node that captures error messages from failed nodes and formats them into a user-friendly error object with the chat ID for response. Send Error Message (Telegram API Key auth) — Sends a detailed error message to the user explaining possible reasons for failure (deleted video, invalid link, maintenance, restrictions) with HTML formatting. Setup Instructions Prerequisites Telegram Bot Token: Create a bot via @BotFather on Telegram and get your API token n8n Instance: Self-hosted or cloud n8n (n8n.io) Configuration Steps Telegram Credentials: In n8n, go to Credentials → New → Telegram API. Enter your bot token from BotFather Webhook Setup: The Telegram Trigger node automatically sets up a webhook URL. Make sure your n8n instance is publicly accessible or use a tunnel (ngrok) Test the Bot: Send any TikTok video link to your bot (e.g., ) Use Cases & Variations Primary Use Case Personal Video Archiving: Save your favorite TikTok videos without watermarks for offline viewing Content Curation: Collect videos for repurposing on other platforms Social Media Management: Download client videos for scheduling tools Possible Adaptations Add Multiple Platforms: Extend the workflow to support Instagram Reels, YouTube Shorts, or Twitter videos by adding additional validation and extraction logic Database Storage: Add a Google Sheets or Airtable node to log downloaded videos with metadata Admin Notifications: Add a second Telegram channel to notify you when someone downloads a video Rate Limiting: Implement user rate limiting using n8n's Wait node or a database Video Processing: Add FFmpeg or other processing nodes to convert formats or add watermarks Multi-language Support: Modify error messages and captions based on user language preferences
YouTube Video Summarizer with Telegram Notification
High-Level Summary This workflow automatically processes YouTube videos by fetching their transcripts, generating a structured AI-powered summary using OpenAI's GPT-4o-mini, and sending the summary along with video metadata to a Telegram chat. It is triggered via a webhook, making it easy to integrate with other tools or services (e.g., a browser extension, a form, or another automation). The workflow is ideal for content curators, researchers, or teams who want to quickly digest video content without watching the full video. Workflow Steps Webhook — Receives an incoming HTTP POST request containing a YouTube URL in the request body. This is the entry point of the workflow. (No auth) Get YouTube URL (Set node) — Extracts the field from the incoming webhook payload and stores it as a string variable for downstream use. (No auth) YouTube Video ID (Code node) — Runs a JavaScript function that parses the YouTube URL using a regex pattern to extract the 11-character video ID (supports both and formats). (No auth) Get YouTube Video (YouTube node) — Uses the extracted video ID to fetch video metadata (title, description, etc.) from the YouTube Data API v3. (OAuth2 — requires a Google Cloud project with YouTube Data API enabled) YouTube Transcript (Community node: ) — Fetches the transcript/captions for the video. This node requires the video ID (passed from the previous step). (No auth — uses public YouTube captions) Split Out (SplitOut node) — Splits the transcript array into individual items so each text segment can be processed separately. (No auth) Concatenate (Summarize node) — Concatenates all transcript text segments into a single string, separated by spaces, to prepare the full transcript for analysis. (No auth) gpt-4o-mini (OpenAI Chat Model node) — Configures the OpenAI language model (GPT-4o-mini) that will be used for summarization. (API Key auth — requires an OpenAI API key) Summarize & Analyze Transcript (LLM Chain node) — Sends the concatenated transcript to the GPT-4o-mini model with a detailed prompt asking for a structured summary with headers, bullet points, bold terms, and tables. The output is a markdown-formatted analysis. (No auth — uses the model configured in the previous node) Response Object (Set node) — Assembles the final output object containing: - : The AI-generated summary text - : An empty array (placeholder for future use) - : The video title from YouTube metadata - : The video description from YouTube metadata - : The YouTube video ID - : The original YouTube URL from the webhook (No auth) Respond to Webhook — Sends the assembled response object back to the original webhook caller (e.g., a browser extension or app). (No auth) Telegram — Sends a message to a specified Telegram chat containing the video title and the YouTube URL. (API Key auth — requires a Telegram Bot Token and chat ID) Setup Instructions To use this workflow, you will need the following accounts and credentials: OpenAI Account: Create an account at platform.openai.com and generate an API key. Add this as a credential in n8n under "OpenAI". Google Cloud Project: Enable the YouTube Data API v3 in your Google Cloud Console, create OAuth 2.0 credentials (Desktop app type), and add them in n8n under "YouTube OAuth2 API". Telegram Bot: Create a bot via @BotFather on Telegram to get a Bot Token. Find your chat ID (e.g., by messaging your bot and visiting ). Add the token as a credential in n8n under "Telegram API". Webhook URL: After activating the workflow, copy the production webhook URL (e.g., ). You will send POST requests to this URL with a JSON body like . Use Cases and Variations Content Curation: Automatically summarize long conference talks, tutorials, or webinars and share them with your team on Telegram. Research Assistant: Collect video transcripts and AI summaries for later reference or database storage. Browser Extension Integration: Pair this workflow with a browser extension that sends the current YouTube URL to the webhook when clicked. Variations: - Replace Telegram with Slack, Discord, or email notifications. - Store summaries in a Google Sheet or Airtable for a searchable archive. - Add a filter to skip videos shorter than a certain duration. - Use a different LLM (e.g., Claude, Gemini) by swapping the OpenAI node. - Add error handling to notify you if a video has no captions.
Simple Webhook API Endpoint for Google Search URL Builder
Overview This workflow creates a simple API endpoint that accepts a first name and last name via query parameters and returns a Google Search URL for that person. It's a perfect starting point for learning how webhooks work in n8n, how to process incoming data, and how to respond dynamically. The workflow demonstrates the core concept of receiving HTTP requests, transforming data, and sending back a response — all without any external authentication or services. Workflow Steps Webhook (No auth) — This node creates a publicly accessible HTTP endpoint. It listens for incoming GET or POST requests on the specified path. The parameters include: - : A unique UUID-based path for the webhook URL - : Empty object (no additional configuration) - : Set to "responseNode" which means the workflow will use a dedicated "Respond to Webhook" node to send the response Create URL string (No auth) — This is a Set node that constructs the Google Search URL. It uses the expression editor to combine: - The base URL: - The first name from the webhook query parameters: - A plus sign separator - The last name from the webhook query parameters: - The option is enabled, meaning only the newly created "product" field will be passed forward Respond to Webhook (No auth) — This node sends the response back to the original HTTP request. It is configured to: - : "text" (returns plain text, not JSON) - : A template string that reads: - The expression retrieves the original query parameters from the Webhook node - The expression retrieves the URL string created by the previous node Setup Instructions No external accounts needed — This workflow requires no API keys, no service accounts, and no external tools. It runs entirely within n8n. Activate the workflow — Click the "Active" toggle to start the webhook listener. n8n will generate a unique webhook URL (e.g., ). Test the endpoint — Open a new browser tab and paste the webhook URL, then append to the end. You should see the response: Use Cases and Variations Learning tool: Perfect for beginners to understand webhooks, data transformation, and response handling in n8n API prototyping: Use this pattern to quickly create mock APIs for testing frontend applications URL shortener: Modify the workflow to accept a URL parameter and return a shortened version using a URL shortening service Form submission handler: Replace the query parameters with POST body data to create a simple form endpoint Data lookup service: Connect the webhook to a database or spreadsheet to look up information based on query parameters Multi-step processing: Add additional nodes between the webhook and response to perform calculations, data enrichment, or conditional logic To adapt this workflow, you can: Change the to "lastNode" to automatically respond with the output of the final node Switch to "json" to return structured data instead of plain text Add authentication by enabling the "Basic Auth" or "Header Auth" options in the Webhook node Use POST requests and extract data from instead of