Back to Catalog

Gmail to Telegram: email summaries with OpenAI GPT-4o

LucΓ­a Maio BriosoLucΓ­a Maio Brioso
2497 views
2/3/2026
Official Page

πŸ§‘β€πŸ’Ό Who is this for?

This workflow is for anyone who receives too many emails and wants to stay informed without drowning in their inbox.

If you're constantly checking your Gmail and wish you had someone summarizing messages and sending just the important parts to your phone, this is for you. Especially useful for solopreneurs, customer support, busy professionals, or newsletter addicts.

🧠 What problem is this workflow solving?

Email is powerful, but also overwhelming. Important info gets buried in threads, and staying on top of things can mean hours wasted scanning messages.

This workflow turns that chaos into clarity: as soon as a new email arrives, you get a concise AI-generated summary in Telegram β€” straight to your pocket.

No more checking Gmail constantly. No more missing key updates. Just a clean, human-style summary, written in the language you choose.

βš™οΈ What this workflow does

  • Watches your Gmail inbox for new messages
  • Prepares the content, including sender, subject, and message body
  • Sends it to OpenAI to generate a friendly, casual summary
  • Delivers that summary to your Telegram chat

All in seconds, completely automated.

πŸ› οΈ Setup

  1. Connect your accounts: Gmail, Telegram, and OpenAI credentials must be added to the respective nodes.
  2. Set your Telegram chat ID: Use a bot like @userinfobot to get it.
  3. Customize the language in the Set summary language node (default is English).
  4. Activate the workflow β€” and watch it go.

🧩 How to customize this workflow to your needs

You can make this workflow your own in a few easy ways:

  • Summarize only some emails: Add a Filter node after the Gmail trigger (e.g., only messages from certain senders).
  • Change the tone or detail of summaries: Tweak the system prompt in the Summary generation agent.
  • Use a different model: Swap OpenAI’s GPT-4o for another provider like Claude or DeepSeek.
  • Translate to your preferred language: Just change "english" to "espaΓ±ol", "franΓ§ais", etc.

Gmail to Telegram Email Summaries with OpenAI GPT-4o

This n8n workflow automates the process of summarizing new emails received in Gmail and sending these summaries to a Telegram chat. It leverages OpenAI's GPT-4o model for intelligent summarization, ensuring you stay informed without having to read every email in full.

What it does

This workflow simplifies email management by:

  1. Monitoring Gmail: It continuously checks for new emails in your specified Gmail inbox.
  2. Extracting Email Content: For each new email, it extracts the subject, sender, and body content.
  3. Summarizing with AI: It sends the extracted email content to an OpenAI GPT-4o model, requesting a concise summary.
  4. Formatting the Summary: It formats the AI-generated summary along with the original email details into a readable message.
  5. Sending to Telegram: Finally, it posts the formatted email summary to a designated Telegram chat.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running instance of n8n.
  • Gmail Account: Connected to n8n with appropriate permissions to read emails.
  • Telegram Bot Token: A Telegram bot and its API token to send messages.
  • OpenAI API Key: An API key for OpenAI, with access to the GPT-4o model.

Setup/Usage

  1. Import the Workflow:
    • Download the provided JSON file.
    • In your n8n instance, go to "Workflows" and click "New".
    • Click the "Import from JSON" button and paste the workflow JSON or upload the file.
  2. Configure Credentials:
    • Gmail Trigger: Configure your Gmail OAuth2 credentials. Ensure it has access to read your emails.
    • OpenAI Chat Model: Configure your OpenAI API Key credential.
    • Telegram: Configure your Telegram Bot API credential. You will need your Bot Token and the Chat ID where you want to receive the summaries.
  3. Activate the Workflow:
    • Once all credentials are set up, save the workflow.
    • Toggle the workflow to "Active" to start it.
  4. Customize (Optional):
    • Gmail Trigger: You can adjust the "Query" field in the Gmail Trigger node to filter for specific emails (e.g., is:unread from:important@example.com).
    • AI Agent: The "AI Agent" node is configured to use the "OpenAI Chat Model". You can customize the prompt given to the AI to refine the summaries further if needed.
    • Edit Fields (Set): This node is currently empty but can be used to add or modify data before sending it to Telegram, for example, to add a custom prefix to the message.
    • Telegram: Adjust the message format in the Telegram node if you want to change how the summary appears.

The workflow will now automatically process new emails, summarize them using AI, and send them to your Telegram chat.

Related Templates

Generate AI website legal and accessibility compliance reports with OpenAI, Gmail and Google Drive

Automated Legal & Accessibility Website Compliance Checker Description Automate website compliance checks in minutes using AI-powered analysis. This workflow scans any website for essential legal and accessibility requirements, generates a professional compliance report, delivers it as a PDF, and stores it securely β€” helping teams identify risks early and stay audit-ready with zero manual effort. --- What This Workflow Does Transforms manual website compliance reviews into a single automated flow: 🌐 Capture Website Details – Accepts website URL, company name, and email via webhook. πŸ“₯ Fetch Website Content – Securely downloads and cleans website HTML for analysis. 🧠 AI Compliance Analysis – Uses AI to audit the site against key compliance standards. πŸ“Š Scoring & Insights – Calculates an overall compliance score and highlights gaps. πŸ“„ Generate Visual Report – Builds a detailed, easy-to-read HTML compliance report. πŸ–¨οΈ Convert to PDF – Converts the report into a downloadable, shareable PDF. πŸ“§ Email Delivery – Sends the compliance report directly to the provided email. ☁️ Secure Storage – Saves the PDF report to Google Drive for records and audits. --- Key Features πŸ€– AI-Powered Compliance Audits – Automatically checks privacy, cookies, accessibility, SSL, and more. πŸ“Š Compliance Scoring – Clear numerical scores and status indicators for each section. πŸ“„ Professional PDF Reports – Branded, structured reports suitable for clients or audits. βš™οΈ End-to-End Automation – From URL submission to email delivery without manual steps. πŸ“§ Instant Email Notifications – Reports delivered automatically to stakeholders. ☁️ Google Drive Backup – Centralized storage for compliance history and documentation. --- Compliance Checks Included βœ”οΈ Privacy Policy presence & indicators βœ”οΈ Cookie consent mechanisms βœ”οΈ Terms of Service availability βœ”οΈ Accessibility (WCAG-related indicators) βœ”οΈ Contact information visibility βœ”οΈ SSL / HTTPS verification βœ”οΈ Critical issues & improvement recommendations --- Perfect For 🏒 Startups & SaaS Companies – Quickly assess website compliance before launch. 🧾 Agencies & Consultants – Deliver automated compliance audits to clients. βš–οΈ Legal & Compliance Teams – Speed up preliminary compliance checks. πŸ’» Freelancers & Web Developers – Validate client websites post-deployment. πŸ“ˆ Operations Teams – Maintain ongoing compliance documentation effortlessly. --- What You’ll Need Required Integrations 🌐 Webhook – Receive website URL and user details. πŸ€– OpenAI – Analyze website HTML for compliance indicators. πŸ“„ HTMLCSS to PDF – Convert compliance report into a PDF. πŸ“§ Gmail – Send compliance report via email. ☁️ Google Drive – Store generated compliance reports. 🌍 HTTP Request – Fetch website HTML content (no authentication required). --- Optional Enhancements πŸ“Š Compliance Dashboard – Connect Google Drive or logs to Looker Studio. 🌍 Multi-Website Scans – Extend webhook to accept bulk URLs. πŸ•’ Scheduled Scans – Run periodic compliance checks automatically. πŸ“¨ Slack Alerts – Send compliance summaries to internal channels. πŸ“ Custom Branding – Adjust HTML styling, logos, and colors. --- Quick Start 1️⃣ Import the workflow JSON into your n8n workspace. 2️⃣ Activate the webhook and copy the endpoint URL. 3️⃣ Connect OpenAI, Gmail, Google Drive, and HTMLCSS to PDF credentials. 4️⃣ Send a POST request with website URL, company name, and email. 5️⃣ Review the emailed PDF compliance report. 6️⃣ Check Google Drive for stored audit copies. 7️⃣ Activate the workflow for production use. --- Expected Results ⚑ Minutes Instead of Hours – Instant compliance assessments. πŸ€– AI Accuracy – Consistent, structured compliance analysis. πŸ“ˆ Risk Visibility – Early detection of legal and accessibility gaps. πŸ“„ Audit-Ready Reports – Clean, shareable documentation. ☁️ Centralized Storage – Every scan archived automatically. --- Workflow Structure 🌐 Webhook Trigger ↓ πŸ“₯ Fetch Website HTML ↓ 🧹 Clean & Prepare Content ↓ 🧠 AI Compliance Analysis ↓ πŸ“Š Parse Results ↓ πŸ“„ Generate HTML Report ↓ πŸ–¨οΈ Convert to PDF ↓ πŸ“§ Email Report ↓ ☁️ Save to Google Drive --- Ready to Automate Website Compliance? Import this template and turn any website URL into a complete compliance report β€” automatically, consistently, and professionally. Perfect for audits, clients, and peace of mind. βœ… ---

Jitesh DugarBy Jitesh Dugar
31

WhatsApp group chat with your vector database β€” no Facebook Business required

Enable smart, real-time answers in your WhatsApp groups using a custom webhook, Pinecone vector database, and no Facebook Business setup. > 🟑 Note: This template uses a custom WhatsApp webhook. It does not use the official WhatsApp Business API. --- πŸ‘₯ Who is this for? This workflow is designed for individuals and teams who want to enable smart WhatsApp group automation β€” without going through Meta’s official WhatsApp Business API. Ideal for small businesses, internal teams, communities, and personal power users. --- ❓ What problem is this solving? Setting up WhatsApp bots with intelligent responses often requires approval from Meta and a verified business account. This workflow removes those barriers by using a self-hosted webhook to handle incoming messages and respond using a document-trained AI via Pinecone. --- βš™οΈ What this workflow does Connects a regular WhatsApp number to a custom webhook Adds the bot to any group chat (it stays silent unless mentioned) Indexes documents from Google Drive into Pinecone Responds with intelligent, context-aware answers from your custom knowledge base Auto-updates its knowledge every minute as the document changes --- πŸ› οΈ Setup Step 1: Connect Google Drive Set up your Google Drive credentials in n8n Step 2: Configure Pinecone Create an index in Pinecone Dimension: 1536 Select this index in both Pinecone nodes Click Test Workflow to ingest your document into Pinecone Step 3: Get Access to the WhatsApp Webhook Fill out this form to request access You’ll receive a WhatsApp confirmation for linking Step 4: Test WhatsApp Integration βœ… One-on-one test: Send a message from another number πŸ‘₯ Group test: Add the bot to a group; it will only respond when tagged --- 🧩 How to customize this workflow Modify the system prompt inside the AI agent node to control tone and behavior Update the connected Google Doc to match your specific domain (e.g. FAQs, SOPs, product manuals) Adjust the Pinecone sync frequency if you want updates more or less often --- πŸ“š Use cases Customer Support: Instant, intelligent replies in WhatsApp without live agents Team Knowledge Bot: Tag the bot for quick access to SOPs and internal docs Community Groups: Automate common questions while keeping noise low Personal AI Assistant: A WhatsApp chatbot trained on your notes and files --- πŸ“ Sticky Note Suggestion πŸ’¬ What this template does: > Enables an AI bot in your WhatsApp group that answers questions based on a Google Doc you provide. It uses a custom webhook, Google Drive, and Pinecone. πŸ”§ Requirements: > Google Drive account > Pinecone account with an index (dimension 1536) > Access to the custom WhatsApp webhook (see setup steps)

Cecilia MukimaBy Cecilia Mukima
1606

Create an AI Telegram bot using Google Drive, Qdrant, and OpenAI GPT-4.1

How it works This workflow creates an intelligent Telegram bot with a knowledge base powered by Qdrant vector database. The bot automatically processes documents uploaded to Google Drive, stores them as embeddings, and uses this knowledge to answer questions in Telegram. It consists of two independent flows: document processing (Google Drive β†’ Qdrant) and chat interaction (Telegram β†’ AI Agent β†’ Telegram). Step-by-step Document Processing Flow: New File Trigger: The workflow starts when the New File Trigger node detects a new file created in the specified Google Drive folder (polling every 15 minutes). Download File: The Download File (Google Drive) node downloads the detected file from Google Drive. Text Splitting: The Split Text into Chunks node splits the document text into chunks of 3000 characters with 300 character overlap for optimal embedding. Load Document Data: The Load Document Data node processes the binary file data and prepares it for vectorization. OpenAI Embeddings: The OpenAI Embeddings node generates vector embeddings for each text chunk. Insert into Qdrant: The Insert into Qdrant node stores the embeddings in the Qdrant vector database collection. Move to Processed Folder: After successful processing, the Move to Processed Folder (Google Drive) node moves the file to a "Qdrant Ready" folder to keep files organized. Telegram Chat Flow: Telegram Message Trigger: The Telegram Message Trigger node receives new messages from the Telegram bot. Filter Authorized User: The Filter Authorized User node checks if the message is from an authorized chat ID (26899549) to restrict bot access. AI Agent Processing: The AI Agent receives the user's message text and processes it using the fine-tuned GPT-4.1 model with access to the Qdrant knowledge base tool. Qdrant Knowledge Base: The Qdrant Knowledge Base node retrieves relevant information from the vector database to provide context for the AI agent's responses. Conversation Memory: The Conversation Memory node maintains conversation history per chat ID, allowing the bot to remember context. Send Response to Telegram: The Send Response to Telegram node sends the AI-generated response back to the user in Telegram. Set up steps Estimated set up time: 15 minutes Google Drive Setup: Add your Google Drive OAuth2 credentials to the New File Trigger, Download File, and Move to Processed Folder nodes. Create two folders in your Google Drive: one for incoming files and one for processed files. Copy the folder IDs from the URLs and update them in the New File Trigger (folderToWatch) and Move to Processed Folder (folderId) nodes. Qdrant Setup: Add your Qdrant API credentials to the Insert into Qdrant and Qdrant Knowledge Base nodes. Create a collection in your Qdrant instance (e.g., "Test-youtube-adept-ecom"). Update the collection name in both Qdrant nodes. OpenAI Setup: Add your OpenAI API credentials to the OpenAI Chat Model and OpenAI Embeddings nodes. (Optional) Replace the fine-tuned model ID in OpenAI Chat Model with your own model or use a standard model like gpt-4-turbo. Telegram Setup: Create a Telegram bot via @BotFather and obtain the bot token. Add your Telegram bot credentials to the Telegram Message Trigger and Send Response to Telegram nodes. Update the authorized chat ID in the Filter Authorized User node (replace 26899549 with your Telegram user ID). Customize System Prompt (Optional): Modify the system message in the AI Agent node to customize your bot's personality and behavior. The current prompt is configured for an n8n automation expert creating social media content. Activate the Workflow: Toggle "Active" in the top-right to enable both the Google Drive trigger and Telegram trigger. Upload a document to your Google Drive folder to test the document processing flow. Send a message to your Telegram bot to test the chat interaction flow.

KonstantinBy Konstantin
167