n8n

How to Automate Email to Telegram Content Review?

Turn every new email into a short lived web preview and send it to Telegram for fast review. Great for quick approvals, content checks, and staying on top of important inbox activity without forwarding threads.

When an unread email arrives over IMAP, the flow builds an HTML snapshot and saves it as a private item in GitHub using the Gist API. A Telegram message posts the sender, context, and a button that opens the preview. After a three hour wait, the system deletes the GitHub item and removes the Telegram message. You get instant access when it matters and no long term storage when it does not. The message text supports simple formatting and the button title uses the HTML file name for clarity.

You will need IMAP access to your mailbox, a GitHub account with API access, and a Telegram bot and chat ID. Expect faster reviews and less noise in your inbox, since the link expires on its own. Teams can use this for campaign approvals, client updates, or ops alerts that need a quick look and then disappear. Setup is straightforward in n8n with built in credential screens for each service.

What are the key features?

  • IMAP new email capture using unread filters for fresh events
  • Create a private HTML snapshot in GitHub via the Gist API
  • Send a Telegram message with HTML formatting and an inline button
  • Wait three hours before cleanup to keep previews temporary
  • Delete the GitHub item to remove the HTML after the review window
  • Delete the Telegram message to avoid stale links in chat

What are the benefits?

  • Reduce manual forwarding and copy paste from 10 minutes to under 1 minute per email
  • Automate 100 percent of review link sharing for new emails
  • Limit data exposure by auto deleting previews after 3 hours
  • Connect IMAP, GitHub, and Telegram in one simple flow
  • Handle more inbound messages without adding team workload

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 IMAP, GitHub and Telegram. See the Tools Required section above for links to create accounts with these services.
  3. Enable IMAP on your mailbox and note the server, port, username, password, and security settings. For some providers you may need an app password.
  4. Open the Email Trigger node. In the Credential to connect with dropdown, click Create new credential and enter your IMAP server details. Keep the unread filter active so only new emails trigger.
  5. Open the GitHub request node for creating the HTML item. In the Credential to connect with dropdown, click Create new credential and follow the GitHub API steps. Make sure the token has the gist scope.
  6. Open the Telegram send node. In the Credential to connect with dropdown, click Create new credential and paste your bot token from BotFather. Enter your chat ID in the chatId field.
  7. Send a test email to the connected inbox. Check that a new private item appears in your GitHub account under Gists and that the description shows date, from, and to.
  8. Verify that a Telegram message arrives with the sender details and a button that opens the preview link.
  9. Wait three hours or change the Wait node to a shorter test value. Confirm the GitHub item is deleted and the Telegram message is removed.
  10. If the email node fails to connect, confirm the IMAP port and TLS settings with your provider and ensure the account allows IMAP and app passwords if required.
  11. If the GitHub request fails, confirm the token is valid and includes the gist permission and that the Accept header remains set to application/vnd.github+json.
  12. If the Telegram message does not send, confirm the bot is added to the chat and that the chatId points to the correct user or group.
  13. Adjust the Wait node duration to match your review window and activate the workflow when ready.

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.

GitHub

Sign up

Free tier: $0 / mo

Telegram

Sign up

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

Credits:
Automations-Project

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.