n8n

How to Automate Gmail Reply Drafting via Telegram?

Turn new Gmail messages into fast reply drafts using a quick voice note on Telegram. Great for customer support and busy teams that need to clear the inbox while on the move. You speak the response, and a clean draft appears in Gmail.

Here is how it works. A Gmail trigger checks for new messages in the Inbox every minute. An AI check decides if the message needs a reply and ignores newsletters and no reply senders. If a reply is needed, the email details go to Telegram. When you answer by replying with a voice note, the bot fetches the audio, sends it to OpenAI for transcription, and then uses your words plus the original email to write a polished response. A draft is created in the same thread, and a link is sent back to you in Telegram.

You will need a Gmail account, a Telegram bot, and an OpenAI API key. Add your Telegram chat ID in the workflow so messages reach you. Expect faster replies, less typing, and fewer missed emails. Use it for support tickets, sales questions, and vendor follow ups where quick, accurate replies matter.

What are the key features?

  • Gmail new email trigger that watches the Inbox every minute
  • IF filter that ignores Sent items and only processes incoming mail
  • AI classification with a structured output parser to decide if a reply is needed
  • Telegram message with sender, subject, and IDs for quick context
  • Reply validation that requires an audio message in direct reply to the bot
  • Audio file fetch from Telegram and transcription using OpenAI Whisper
  • AI written reply that uses your transcript and the original email for context
  • Gmail draft creation in the same thread and Telegram link back to the draft

What are the benefits?

  • Reduce reply prep from 10 minutes to 2 minutes by speaking instead of typing
  • Automate about 70 percent of repetitive email drafting with AI
  • Cut errors from replying to newsletters or no reply senders by using an AI filter
  • Handle up to three times more inbound messages without extra staff
  • Connect Gmail, Telegram, and OpenAI in one simple flow

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Gmail, Telegram and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. Connect Gmail: In the n8n credentials manager or by double clicking the Gmail Trigger and Create Email Draft nodes, choose Create new credential for Gmail, sign in with Google, and grant access to read and create drafts.
  4. Create and connect your Telegram bot: In Telegram, open BotFather and create a bot to get a bot token. In n8n, open the Telegram Trigger and Telegram Send Message nodes, choose Create new credential, and paste the bot token. Start a chat with your bot so it can message you.
  5. Set your Telegram chat ID: Send any message to your bot, then check the Telegram Trigger node execution data to find your chat ID. Open the Set Chat ID node and paste the chat ID value.
  6. Add OpenAI: Get an API key from your OpenAI account. In n8n, open the OpenAI nodes, choose Create new credential, and paste the API key. Keep the default base URL unless you use a custom endpoint.
  7. Review filters: Open the In the Inbox IF node to confirm it only processes Inbox emails. The Needs a response AI step already ignores newsletters and no reply senders.
  8. Test Gmail to Telegram: Send a new email to your Gmail Inbox. Within a minute you should receive a Telegram message with sender, subject, email, and IDs.
  9. Test the voice reply: Reply to that Telegram message with a voice note. If you send a non reply or text, the bot will tell you what to fix. A few seconds later, check Gmail for a new draft in the same thread.
  10. Validate the draft: Open the draft and confirm the subject, recipient, and body are correct. If nothing appears, confirm your OpenAI key is active and your Gmail credential has draft permission.
  11. Troubleshoot: If Telegram messages do not arrive, confirm the bot token and chat ID. If transcription fails, check OpenAI quota. If the draft has wrong recipient, ensure the original Telegram message shows the email address correctly.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Gmail

Sign up

No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.