n8n automation

AI email assistant on Telegram: answer emails with a voice note

An n8n workflow reads your inbox, filters out spam and sends the emails that matter to Telegram. You record a voice note with your answer, AI turns it into a finished email, and one button sends, revises or discards it.

IMAP · OpenAI · Telegram Bot API · SMTP

In short

An AI email assistant on Telegram is an n8n workflow that watches your inbox and lets you answer emails without opening your mail app. An OpenAI model classifies every new message, spam is dropped, and the emails that matter arrive in Telegram in a readable form. You reply with a voice note or text, AI turns it into a well-structured answer using what it knows about your business, and the finished draft comes back to you with buttons: send, revise, discard. It’s built for business owners, salespeople and specialists who spend much of the day away from their desk but can’t leave customer emails until the evening.

Workflow

This is the workflow in n8n

A simplified, interactive version of our workflow. Drag the nodes and run it to watch the data flow.

Drag the nodes · click “Run”

Execution log

    Email assistant on Telegram: New email → AI classifies and filters spam → Telegram alert → voice note → transcription → AI drafts the reply → approval → sent via SMTP

    Screenshot from the build

    The full workflow in our n8n

    A real, unedited screenshot from the n8n editor. The interactive version above is simplified; here you can see every node, branch and error path.

    Full size
    n8n workflow: AI email assistant on Telegram
    Workflow in n8n. Built by Bartłomiej Chwajoł.

    Sound familiar?

    What this solves

    Important emails get buried under spam and everything else.

    The model classifies every new message before you see it. Spam is dropped, and the email arrives in Telegram with sender, subject and body. You can add more categories, newsletters for example.

    Typing a proper email reply on your phone is a pain.

    You record a voice note, just as you’d brief an assistant. The workflow transcribes it, and AI writes a correct, polite email using the original message for context and your business information.

    You worry the AI might send something without you knowing.

    Nothing goes out until you tap “send”. The draft comes back to Telegram with buttons, and before sending the workflow checks that the draft still exists and belongs to the right email.

    How it works

    Step by step

    1. 01

      A new email arrives

      An Email Trigger (IMAP) picks up the new message, and code extracts the sender, subject and body.

    2. 02

      Classification and spam filter

      An OpenAI model classifies the message, the result is parsed, and an IF node only lets through what isn’t spam.

    3. 03

      Telegram notification

      The email is stored and a Telegram message with its content arrives. The workflow records which Telegram message belongs to which email.

    4. 04

      Your reply by voice or text

      A Telegram webhook receives your response, and a Switch works out whether it’s a voice note, text or a button tap.

    5. 05

      Transcription and draft

      The voice note is downloaded and transcribed by OpenAI. The prompt combines the transcript, the original email and your company knowledge base, and the model writes a draft reply.

    6. 06

      Draft with buttons

      The draft comes back to Telegram with three buttons: send, revise and discard.

    7. 07

      Send or revise

      “Send” loads the draft, checks it exists and sends the email over SMTP, and the Telegram message changes to “sent”. “Revise” asks what to change, and “discard” closes it without sending.

    Implementation details

    This assistant doesn’t answer for you; it shortens the path from “I need to reply to that” to a sent email. You decide what to say, and AI takes care of the form: the greeting, the order of points, the tone and the sign-off. It all happens in Telegram, which is on your phone anyway.

    Business context in every reply. We attach a knowledge base to the prompt: your services, opening hours, standard answers, rules on deadlines and complaints. So a quick “tell them we can do next week and ask for the address” becomes a complete email with the right details. The prompt also tells the model not to add anything that isn’t in the knowledge base or in what you said.

    A human approves every send. The draft always comes back to Telegram with buttons. Sending only starts once you tap “send”, and the workflow first checks that the draft exists and is linked to the right email. After sending, the Telegram message changes to “sent”, so you can see at a glance what’s done. “Revise” lets you add a note by voice or text, and “discard” closes the matter.

    Access and data. We set the bot to respond only to your Telegram account, or to named people on your team. The mailbox connects over IMAP and SMTP, with credentials kept in n8n’s encrypted store, which you can run on your own server. Email content is sent to the AI model, so during setup we agree which mailboxes and types of message the assistant handles and which stay out of it.

    Errors under control. If transcription or sending fails, you get a message about it in the same chat, and the email waits for another attempt instead of slipping through the cracks.

    If you want the assistant to make more decisions on its own, such as booking meetings or checking orders, read how an AI agent differs from a chatbot and see how our AI agent implementation works. For more inbox ideas, browse our AI automation examples for business.

    01

    Integrations

    • n8n
    • IMAP
    • SMTP
    • OpenAI
    • Telegram Bot API
    02

    What you need

    • A mailbox with IMAP and SMTP access
    • A Telegram bot (we create it via BotFather) and your Telegram account
    • An OpenAI API key for classification, transcription and drafts
    • A company knowledge base: services, policies, standard answers, signature
    • An n8n instance reachable over HTTPS so Telegram can call the webhook
    03

    How we tailor it

    • Several mailboxes and several people, each with their own chat with the bot
    • More categories, such as quotes, complaints and invoices, each with its own path
    • A draft as soon as the email arrives, without waiting for a voice note
    • A knowledge base in Notion, Google Docs or a vector store
    • Slack or WhatsApp instead of Telegram

    FAQ

    Frequently asked questions

    Will the AI send an email without my say-so?

    No. Every draft comes back to you in Telegram and only goes out when you tap “send”. Before sending, the workflow also checks that the draft exists and is matched to the right email.

    Do I have to speak perfectly to get a good draft?

    No. The voice note can be loose, with repetition and half-finished thoughts. Transcription turns it into text, and the model tidies the content and sets the tone. If something’s off, you tap “revise” and say what to change.

    Which emails does the assistant skip?

    In the basic version it filters out spam. We agree the categories during setup: you can also skip newsletters and system notifications, or route invoices, say, to a separate workflow.

    Do my emails get sent to OpenAI?

    The content of the email and your voice note is processed through the model’s API to produce the classification, transcript and draft. You can run n8n on your own server, and we choose the model provider and which mailboxes are covered to suit your data requirements. For sensitive data we also look at a locally hosted model.

    Does it work for a team?

    Yes. Each person can have their own chat with the bot and their own mailbox, or share a mailbox split by category. The bot only responds to accounts we allow.

    Get a quote

    Want this in your business? Tell us what it should do.

    Describe your process and the tools you use. We reply within one business day with an implementation plan.

    What do you need?

    Goal, deadline, links to inspiration — the more specifics, the more accurate the quote.

    Other builds

    More n8n automations

    1. 01 AI songs for YouTube OpenRouter · fal.ai · YouTube Data API · Telegram An n8n workflow takes an idea from the queue, writes the lyrics, generates a song with vocals, cover art and a video, then sends you a preview on Telegram. Nothing reaches YouTube until you approve it.
    2. 02 Allegro listing optimisation with AI Allegro REST API · OpenAI · Google Sheets · Gmail Every hour, an n8n workflow takes the next offers from a sheet, pulls their data and category parameters from the Allegro API, and AI writes a new title and description. Changes reach Allegro only after validation, and every offer is backed up first.
    3. 03 AI-personalised email & SMS n8n · OpenAI / OpenRouter · Google Sheets · SMS gateway An n8n workflow pulls contacts from a Google Sheet, writes each person their own message, sends the email and, for mobile numbers, an SMS too. The sheet shows you straight away what went out and what was delivered.
    4. 04 Multichannel product listing WooCommerce REST API · Allegro API · Erli API · OpenAI You enter the product data once, and an n8n workflow picks the category on each platform, writes the copy, prepares the images and creates the product in WooCommerce plus offers on Allegro and Erli. At the end you get one record with the result from every channel.
    5. 05 AI WooCommerce product translation WooCommerce · WordPress REST API · OpenAI · Google Sheets An n8n workflow takes untranslated products from a queue, and AI translates their titles, descriptions, attributes and SEO meta into the languages you choose. Each result is checked for completeness and length before it reaches your store.
    6. 06 AI SEO landing pages for WordPress Google Search Console · OpenRouter · WordPress REST API · Google Sheets An n8n workflow takes a keyword from a sheet, analyses the search results, plans the structure and writes a landing page with links to your existing pages. The finished page lands in WordPress as a draft for you to approve.