Skip to main content

Email notifications to Telegram using temporary HTML URL hosting via GitHub Gist

Workflow preview

Workflow preview
100%
Email notifications to Telegram using temporary HTML URL hosting via GitHub Gist preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow automates the process of notifying users about new emails via Telegram and temporarily hosting the email content on a secret HTML page. It is ideal for users who need immediate notifi...

Best for

  • Personal Productivity automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.emailreadimap, n8n-nodes-base.telegram, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, n8n-nodes-base.wait

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Nskha.

Original n8n.io source

1.1 Workflow description

Title
Email notifications to Telegram using temporary HTML URL hosting via GitHub Gist
Workflow name
Email notifications to Telegram using temporary HTML URL hosting via GitHub Gist

Overview

This workflow automates the process of notifying users about new emails via Telegram and temporarily hosting the email content on a secret HTML page. It is ideal for users who need immediate notifications and a secure, temporary web view of their email content.

Use Cases

  • Immediate notification of new emails in Telegram with the ability to preview the email content in a secure, temporary HTML format.
  • Automation for users who need to keep track of their emails without constantly checking their email client.
  • Useful for teams or individuals who require instant updates on critical emails and prefer a quick preview through a web interface.

My Personal Use Case: Secure Subscription Sharing

From time to time, I find myself wanting to share my paid subscriptions with friends, but giving out OTP codes manually or sharing my email isn't a good idea due to security concerns. I attempted to use the IMAP node to integrate with Telegram secret channel for this purpose but encountered numerous problems, such as difficulties in scraping content from emails. Additionally, the Telegram API sometimes rejects certain special characters found within email contents. After facing these challenges, I discovered that rendering emails as HTML pages and sharing them directly is the most effective solution. This approach bypasses the issues with character limitations and content scraping, providing a seamless way to share subscription benefits securely.

Services/APIs Used

Service/API Node Type Description
IMAP Email Server Email Trigger (IMAP) Triggers the workflow on receiving a new email.
Telegram API Telegram Sends notifications and manages messages in Telegram.
GitHub Gist API HTTP Request (Github Gist) Temporarily hosts email content on GitHub Gist.
GitHub Gist API (Deletion) HTTP Request (Github Gist ‌) Deletes the temporary GitHub Gist after a specified time.
Wait Wait Delays the workflow for a specified period.

Configuration Steps

  1. Email Trigger (IMAP): Configure your IMAP email credentials to enable the workflow to check for new emails.
  2. Telegram Nodes: Insert your Telegram bot's API credentials and your chat ID in both Telegram nodes to send and delete messages.
  3. Github Gist Nodes: Provide your GitHub API credentials to create and delete Gists. Ensure the GitHub token has the necessary permissions to create and delete Gists.
  4. Wait Node: Adjust the wait time according to your preference for how long the email content should be accessible via the HTML page.

Screenshot

Additional Notes

  • Ensure all credentials are securely stored and have the minimum necessary permissions for the workflow to function.
  • Test the workflow with non-sensitive emails to ensure it operates as expected before using it with critical email accounts.
  • Consider the privacy and security implications of temporarily hosting email content on GitHub Gist.

For any questions or issues, refer to the respective API documentation for each service used or consult the n8n community for support.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Email Trigger (IMAP)

Type / Role
n8n-nodes-base.emailReadImap - emailReadImap
Config choices
Version 2

Block 2 - Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.1

Block 3 - Github Gist

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 4 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1

Block 6 - Telegram ‌

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.1

Block 7 - Github Gist ‌

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

3. Summary Table

Workflow Email notifications to Telegram using temporary HTML URL hosting via GitHub Gist
Complexity intermediate
Nodes 7
Categories Personal Productivity
Author Nskha
Published 03 Feb 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2080/2080.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Email notifications to Telegram using temporary HTML URL hosting via GitHub Gist do?

This workflow automates the process of notifying users about new emails via Telegram and temporarily hosting the email content on a secret HTML page. It is ideal for users who need immediate notifi...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity use case.