Skip to main content

Transform email responses with GPT-4O Mini and Telegram human-in-the-loop

Workflow preview

Workflow preview
100%
Transform email responses with GPT-4O Mini and Telegram human-in-the-loop preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Description This workflow automates your email communication by listening for incoming emails and notifying you via Telegram. It then prompts you to provide a quick response, which it transforms in...

Best for

  • Ticket Management automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.emailreadimap, n8n-nodes-base.merge, n8n-nodes-base.set, n8n-nodes-base.emailsend, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.code, n8n-nodes-base.telegram, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Arkhip.

Original n8n.io source

1.1 Workflow description

Title
Transform email responses with GPT-4O Mini and Telegram human-in-the-loop
Workflow name
Transform email responses with GPT-4O Mini and Telegram human-in-the-loop

Description

This workflow automates your email communication by listening for incoming emails and notifying you via Telegram. It then prompts you to provide a quick response, which it transforms into a polished, professional message inspired by Chick-fil-A’s renowned customer support style—super friendly, thoughtful, and smooth. This ensures your replies always sound top-notch, even if you’re not naturally great at writing customer messages.

I use this exact flow for my own business to handle customer interactions with ease and exceptional care.


Step-by-Step Setup Instructions

1. Email Connection

  • Connect your email inbox (e.g., Gmail, Outlook) to the workflow to monitor incoming emails.
  • Set the trigger to listen for new messages or specific labels/folders as needed.

2. Telegram Connection

  • Connect your Telegram account using a Telegram Bot token.
  • Configure the bot to send notifications when a new email arrives and to receive your reply input directly in Telegram.

3. OpenAI Connection

  • Connect your OpenAI account by adding your API key.
  • Use OpenAI to rephrase your raw responses into highly polished, friendly customer support messages.

Workflow Description

  • The system continuously monitors your email inbox.
  • When a new email arrives, you receive an instant Telegram notification with the email summary.
  • You reply quickly on Telegram with your initial thoughts or answers.
  • The reply is sent to OpenAI, which “translates” it into a Chick-fil-A style, ultra-courteous response.
  • The final message is either emailed back to the customer or saved for you to review and send manually.

Target Audience and Problem Solved

This workflow is perfect for:

  • Small business owners who handle customer support alone.
  • Entrepreneurs who want to maintain a high level of professionalism in their responses but struggle with wording.
  • Teams looking to streamline email replies with fast, human-like, and warm communication.

Problem solved: It removes the stress of crafting perfectly polite and engaging customer support emails from scratch, saving time and boosting customer satisfaction.


Customization Guidance

  • Adapting tone and style: Change the OpenAI prompt to match your brand voice, whether more formal, casual, or playful.
  • Different business contexts: Adjust email filters or Telegram notifications to prioritize specific types of inquiries.
  • Response automation: Add extra steps to automatically send replies or integrate with CRM tools.
  • Multilingual support: Incorporate language detection and translation if your business serves customers in multiple languages.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Email Received (IMAP)

Type / Role
n8n-nodes-base.emailReadImap - emailReadImap
Config choices
Version 2

Block 2 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 3 - Extract Text

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Send Chick-fil-A Style Reply

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 5 - Merge1

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 6 - Chick-Fil-A Translator

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 7 - Extract Email

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Ask for Response

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 9 - If Respond

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - 🚀 SETUP GUIDE - START HERE

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - 📧 EMAIL SETUP

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - 💬 TELEGRAM SETUP

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - 🤖 OPENAI SETUP

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - 🔄 WORKFLOW FLOW

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - ⚙️ FINAL CONFIGURATION

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Transform email responses with GPT-4O Mini and Telegram human-in-the-loop
Complexity advanced
Nodes 18
Categories Ticket Management, Multimodal AI
Author Arkhip
Published 06 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5722/5722.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Transform email responses with GPT-4O Mini and Telegram human-in-the-loop do?

Description This workflow automates your email communication by listening for incoming emails and notifying you via Telegram. It then prompts you to provide a quick response, which it transforms in...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, Multimodal AI use case.