Back to Integrations
integrationGmail node
integrationTelegram node

Gmail and Telegram integration

n8n lets you integrate Gmail with Telegram to build powerful workflows. Design automation that extracts, transforms and loads data between your apps and services. You can choose from thousands of ready-made apps or use our universal HTTP connector to sync apps not yet in our library.

Integrate Gmail and Telegram

Build your own Gmail and Telegram integration

Create custom Gmail and Telegram workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

How to connect Gmail and Telegram

  • Step 1: Add the first step

  • Step 2: Add Gmail and Telegram nodes

  • Step 3: Connect Gmail and Telegram

  • Step 4: Run workflow

Transforming Emails into Podcasts

Transforming Emails into Podcasts 🎙️

The n8n workflow described here aims to revolutionize the way users engage with promotional emails by converting them into entertaining audio podcasts. This innovative project leverages automation through n8n to streamline tasks and enhance user experience.

Project Benefit 🎧🌟

The primary goal of this project is to transform "CATEGORY_PROMOTIONS" emails into engaging audio content. By converting text into speech, users can enjoy promotional material hands-free, making it easier to consume information while on the go or relaxing. The workflow consists of several key steps orchestrated seamlessly to deliver a delightful experience to users.

How to Use the Workflow:

  1. Gmail trigger Node: Initiates the workflow by fetching "CATEGORY_PROMOTIONS" emails at regular intervals.

    The Gmail Trigger node in your N8N workflow is set to poll for new emails every minute and is configured to filter emails with the label "CATEGORY_PROMOTIONS" before triggering the workflow.

    Steps to Use Filters Inside the Gmail Trigger Node:

    Configure Gmail Trigger Node:

    Set "Poll Times" to "Every Minute" to check for new emails at regular intervals.
    Enable the "Simple" toggle if you want to simplify the node interface.
    Under "Filters", specify the label IDs you want to filter by. In this case, it's set to "CATEGORY_PROMOTIONS".
    Adjust any additional options as needed.

    // Configure Gmail Trigger node pollTimes: { item: [ { mode: "everyMinute" } ] }, simple: false, filters: { labelIds: [ "CATEGORY_PROMOTIONS" ] }, options: {}

    Save and Execute:

    • Save your workflow and execute it to start monitoring your Gmail account for new emails with the specified label filter.

      By following these steps, your workflow will effectively trigger based on new emails that match the "CATEGORY_PROMOTIONS" label in your Gmail account.

  2. Get message content Node: Extracts the email content for processing.

  3. Summarization Chain Node: Generates concise summaries using advanced methods for better readability.

  4. Delete the unnecessary items Node: Removes irrelevant details from the email content.

  5. Text to Free TTS Node: Converts the summary text into speech using Free TTS technology.

  6. Convert from base64 to File Node: Transforms the audio data into a compatible file format.

  7. Merge Text with Audio Node: Combines the text and audio components seamlessly.

  8. Aggregate in same cell Node: Gathers all processed data for finalization.

  9. Send Message to Telegram Node: Dispatches the audio message along with a caption to a designated Telegram chat ID.

By automating these tasks, the workflow ensures efficient communication and delivers content in a more engaging format, fostering a positive user experience.

Configuration Instructions:

The configuration of this workflow involves setting up the necessary nodes and establishing connections between them. Each node performs a specific function crucial to the overall operation of the workflow. Additionally, credentials need to be provided for accessing Gmail and OpenAI services to enable seamless data processing and summarization.

Utilizing Text-to-Speech API 🎧

In addition to n8n automation, an external Text-to-Speech API plays a pivotal role in generating audio content from text data. By sending a POST request with JSON data containing the text and voice preferences, users can quickly receive audio files of the converted content. The API offers a straightforward interface for text-to-speech conversion, making it ideal for creating audio clips efficiently.

To access this API, simply submit the desired text and voice selection to receive the generated speech audio file. The API endpoint can be accessed at https://tiktok-tts.weilnet.workers.dev/api/generation or through https://tiktokvoicegenerator.com/.

In conclusion, this n8n workflow coupled with a Text-to-Speech API presents a powerful solution for transforming emails into captivating podcasts, enhancing user engagement and communication effectiveness. By embracing automation and innovative technologies, this project aims to improve user experience and streamline content delivery processes. 🌈✨🚀

Nodes used in this workflow

Popular Gmail and Telegram workflows

Over 3000 companies switch to n8n every single week

Gmail supported actions

Add Label
Delete
Get
Get Many
Mark as Read
Mark as Unread
Remove Label
Reply
Send
Create
Delete
Get
Get Many
Create
Delete
Get
Get Many
Add Label
Delete
Get
Get Many
Remove Label
Reply
Trash
Untrash

Telegram supported actions

Get
Get up to date information about a chat
Get Administrators
Get the Administrators of a chat
Get Member
Get the member of a chat
Leave
Leave a group, supergroup or channel
Set Description
Set the description of a chat
Set Title
Set the title of a chat
Answer Query
Send answer to callback query sent from inline keyboard
Answer Inline Query
Send answer to callback query sent from inline bot
Get
Get a file
Delete Chat Message
Delete a chat message
Edit Message Text
Edit a text message
Pin Chat Message
Pin a chat message
Send Animation
Send an animated file
Send Audio
Send a audio file
Send Chat Action
Send a chat action
Send Document
Send a document
Send Location
Send a location
Send Media Group
Send group of photos or videos to album
Send Message
Send a text message
Send Photo
Send a photo
Send Sticker
Send a sticker
Send Video
Send a video
Unpin Chat Message
Unpin a chat message

Looking to integrate Gmail and Telegram in your company?

Why use n8n to integrate Gmail with Telegram

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon