Voice-to-email response system with Telegram, OpenAI Whisper & Gmail
Ready for 3.0What this workflow does
This AI workflow has 17 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Telegram, OpenAI and Gmail.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- In the Inbox? (If): checks a condition and branches into true / false
- Is Type Audio Message + Reply? (If): checks a condition and branches into true / false
- Does Email Need a Response? (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Get Audio File (Telegram): work with file
- It needs to be an audio message + a reply! (Telegram): uses Telegram
- Needs a response? (If): checks a condition and branches into true / false
- OpenAI: transcribe (audio)
- Set Chat ID (Edit Fields (Set)): sets 1 field: chat_id
- Write Polished Reply (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Text Email (Telegram): uses Telegram
…plus 2 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other Telegram + OpenAI templates (807) · Other Gmail + Telegram templates (361)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (New Email Received).
Nodes used (10)
- Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Telegram
n8n-nodes-base.telegram - OpenAI
@n8n/n8n-nodes-langchain.openAi - Gmail Trigger
n8n-nodes-base.gmailTrigger - If
n8n-nodes-base.if - Telegram Trigger
n8n-nodes-base.telegramTrigger - Gmail
n8n-nodes-base.gmail - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Edit Fields (Set)
n8n-nodes-base.set
From the author
This workflow gives you the ability to reply to a long email with a voice note, rather than having to type everything out. ChatGPT will format your audio response and create an email draft for you. How it works When a new email arrives in your inbox, the…