Reply to Telegram messages with AI and send results via Gmail
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.Receive incoming message from Telegram trigger
- 2.Process text through LLM chain and OpenAI analysis
- 3.Apply conditional logic to control workflow execution
- 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
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (24)
Structured Output Parser
Output Parser Structured
OpenAI Chat Model
OpenAI
Text Email
Set
OpenAI
OpenAI
New Email Received
Gmail
In the Inbox?
If
Needs a response?
If
Telegram Bot Message Received
Set
It needs to be an audio message + a reply!
Set
Get Audio File
Set
Create Email Draft
Gmail
Direct to Draft
Set
Sticky Note4
Sticky Note
Sticky Note
Sticky Note
Does Email Need a Response?
LLM Chain
Sticky Note1
Sticky Note
Is Type Audio Message + Reply?
If
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note
OpenAI Chat Model1
OpenAI
Write Polished Reply
LLM Chain
Sticky Note7
Sticky Note
Set Chat ID
Set
Sticky Note2
Sticky Note