Automate Gmail Promotions to Podcast with n8n Workflow

Discover how to convert your Gmail CATEGORY_PROMOTIONS emails into engaging audio podcasts automatically using n8n. Save time by listening to summaries instead of reading emails, improving accessibility and enjoying promotional content hands-free.
gmailTrigger
gmail
code
+7
Workflow Identifier: 1193
NODES in Use: Sticky Note, Gmail Trigger, Gmail, Code, Summarization Chain3, HTTP Request, Convert from base64 to File, Merge, Aggregate, Telegram
Automate Gmail to podcast with n8n

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow watches a Gmail inbox for new emails labeled as promotional. It then gets the full email content, cleans unneeded data, and sends a short summary as a spoken audio message to a Telegram chat. This helps save time reading many promotional emails by turning text into easy-to-listen podcasts.


Who should use this workflow

This setup is useful for anyone who gets many promotional emails and wants to avoid reading them all. It is good for busy people who like to listen to information instead of reading it. It is also for those who want to get summaries with emojis and quick highlights without missing key offers.


Tools and services used

  • Gmail API: To watch and read promotional emails from Gmail.
  • OpenAI via LangChain Summarization node: To generate short, emoji-enhanced summaries of promotional content.
  • Free Text-to-Speech HTTP API: To turn the summary text into natural-sounding audio.
  • Telegram Bot API: To send the final audio podcasts with captions to a Telegram chat.

Inputs, Processing Steps, and Output

Inputs

  • New promotional emails from Gmail inbox labeled CATEGORY_PROMOTIONS.

Processing Steps

  • The Gmail Trigger node checks every minute for new labeled emails.
  • The Gmail node fetches full content of each new email by ID.
  • The Code node deletes unnecessary email details like headers and metadata.
  • The LangChain Summarization Chain3 node creates a concise summary under 247 characters, adding emojis.
  • The HTTP Request node sends the summary text to a text-to-speech API to get audio in base64 format.
  • The next node converts this base64 audio into a binary file suitable for Telegram.
  • The Merge and Aggregate nodes combine the summary text and audio binary into one output.
  • The Telegram node sends the audio file with the summary as a caption to a Telegram chat.

Output

Audio podcast-style messages with summary captions delivered to a Telegram chat for easy listening.


Beginner step-by-step: How to use this workflow in n8n

Import and Setup

  1. Download the workflow file using the Download button on this page.
  2. Inside the n8n editor, click on the menu and select “Import from File”.
  3. Choose the downloaded workflow file to add it to n8n.

Configure Credentials and IDs

  1. Add your Gmail OAuth2 credentials to the Gmail Trigger and Gmail nodes.
  2. Insert your OpenAI API Key inside the LangChain Summarization node.
  3. If needed, update the Gmail label ID for promotional emails to match your account.
  4. Check the Telegram bot token and chat ID in the Telegram node.
  5. Verify the HTTP Request Text to TTS node has the correct API URL and JSON body:
{
  "text": "{{ $json.response.text }}",
  "voice": "en_us_001"
}

Test and Activate

  1. Run the workflow once to test if it fetches promotional emails, summarizes, generates audio, and sends to Telegram.
  2. If all works well, activate the workflow in n8n to run automatically every minute.

Note: For self hosting n8n or VPS setups, consider secure network settings and monitor API limits.


Common edge cases and failures

  • If the Gmail Trigger node does not find new emails, check the label ID. It must exactly match the promotional label in Gmail.
  • If the HTTP Request TTS node returns errors, confirm the API URL is live and required headers like Content-Type are set.
  • If the Telegram node fails to send audio, verify the binary data property is correct and audio format is supported by Telegram.

Ideas for customization

  • Change the Gmail label filter to other categories like Social or Updates to create different audio streams.
  • Edit the LangChain node prompt to shift the tone or focus summaries only on deals.
  • Use different voice options in the text-to-speech API by changing the voice parameter.
  • Send podcasts to multiple Telegram chats by duplicating and modifying the Telegram node.
  • Add the email subject line to the Telegram message caption for more context.

Summary

✓ Converts promotional emails into short audio summaries.

✓ Saves hours by letting users listen instead of read.

✓ Sends audio podcasts directly to a Telegram chat.

→ Keeps users updated on important deals with clear, quick audio.


Automate Gmail to podcast with n8n

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Verify the label ID matches exactly the CATEGORY_PROMOTIONS label in the Gmail account. Manually label a test email to confirm.
Errors can occur if the API URL is incorrect, the server is down, or required headers and body parameters are missing or malformed.
This usually happens when the binary data property is wrong or the audio format is unsupported by Telegram. Check the file conversion step.
Outlook can replace Gmail nodes but label filtering works differently. Specific Outlook nodes or APIs need configuring.
Author
Written By
Ritu Sanjali

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.