Communication

Reply to Telegram messages with AI and send results via Gmail

24 nodes 278 132 Automatic trigger
Download

Workflow Description

An automation that receives Telegram messages and processes them using OpenAI to generate intelligent responses, then automatically sends the output via Gmail. Combines real-time messaging with reliable email delivery for seamless communication workflows.

How it works

  1. 1.Receive incoming message from Telegram trigger
  2. 2.Process text through LLM chain and OpenAI analysis
  3. 3.Apply conditional logic to control workflow execution
  4. 4.Send generated result to Gmail automatically

Use cases

  • Auto-respond to customer inquiries on Telegram with email documentation
  • Handle incoming requests, generate intelligent summaries, and email them to your team
  • Build integrated support system connecting instant messaging with formal email communication

Requirements

  • Active Telegram account with configured bot
  • Valid OpenAI API key with appropriate permissions
  • Gmail account with send authorization enabled

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Output Parser OpenAI Telegram Gmail LLM Chain

Details

Trigger Automatic trigger
Nodes 24
Apps 5
Views 278
Downloads 132

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (24)

/

Structured Output Parser

Output Parser Structured

#1

OpenAI Chat Model

OpenAI

#2

Text Email

Set

#3

OpenAI

OpenAI

#4

New Email Received

Gmail

#5

In the Inbox?

If

#6

Needs a response?

If

#7

Telegram Bot Message Received

Set

#8

It needs to be an audio message + a reply!

Set

#9

Get Audio File

Set

#10

Create Email Draft

Gmail

#11

Direct to Draft

Set

#12

Sticky Note4

Sticky Note

#13

Sticky Note

Sticky Note

#14

Does Email Need a Response?

LLM Chain

#15

Sticky Note1

Sticky Note

#16

Is Type Audio Message + Reply?

If

#17

Sticky Note5

Sticky Note

#18

Sticky Note6

Sticky Note

#19

OpenAI Chat Model1

OpenAI

#20

Write Polished Reply

LLM Chain

#21

Sticky Note7

Sticky Note

#22

Set Chat ID

Set

#23

Sticky Note2

Sticky Note

#24