⚡ Send a voice note on Telegram to generate a professional email with ChatGPT

1,591 views · ⚡ Personal Productivity

Description

Telegram Voice Message → Automatic Email

baptistefortn8nautomationtelegramaudio.png

Imagine: What if you could turn a simple Telegram voice message into a professional email—without typing, copying, pasting, or even opening Gmail?

This workflow does it all for you: just record a voice note, and it will transcribe, format, and write a clean HTML email, then send it to the right person—all by itself.

Prerequisites

🧩 Detailed Flow Architecture

1. Telegram Trigger

workflown8ntelegramvoicebaptistefort.png

Node: Telegram Trigger
This node listens to all Message events received by the specified bot (e.g., “BOT OFFICIEL BAPTISTE”).
Whenever a user sends a voice message, the trigger fires automatically.

> ⚠️ Only one Telegram trigger per bot is possible (API limitation).

Key parameter:

2. Wait

Node: Wait
Used to buffer or smooth out calls to avoid collisions if you receive several voice messages in a row.

3. Retrieve the Audio File

workflowbaptistefortemailtelegramaudio.png

Node: Get a file

4. Automatic Transcription (Whisper)

baptistefortn8ntranscriptiontelegramvoice.png

Node: Transcribe a recording

5. Optional Wait (Wait1)

Node: Wait1
Same purpose as step 2: useful if you want to buffer or add a delay to absorb processing time.

6. Structured Email Generation (GPT-4 + Output Parser)

Node: AI Agent
This is the core of the flow:

⚠️ You must always return your answer in the following strict JSON format, with no extra text: ```

```json
{
  "email": "adresse@gmail.com",
  "subject": "Objet de l’email",
  "body": "<p>Contenu HTML de l’email</p>"
}
```

Everything is strictly validated and formatted with the Structured Output Parser node.

7. Automatic Email Sending (Gmail)

Node: Send a message

If you want to automate manual tasks, visit our French Agence automatisation 0vni.

🔗 Nodes Used

Telegram, Telegram Trigger, Gmail, AI Agent, OpenAI Chat Model, Structured Output Parser

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup