Automate Email to Web Preview and Telegram Alerts
detail.loadingPreview
This workflow automatically converts incoming emails into private HTML web pages and sends a Telegram notification with a link to the preview. The generated web pages are automatically cleaned up after 3 hours.
About This Workflow
This n8n workflow offers a seamless way to manage incoming emails by transforming them into accessible HTML web pages. Upon receiving a new email via IMAP, the workflow captures its content, saves it as a public GitHub Gist for temporary hosting, and then sends a Telegram message. This message includes a unique link to the generated HTML page, allowing for easy preview of the email's content. To maintain privacy and manage resources, the system is designed to automatically delete the GitHub Gist and its associated Telegram message after a 3-hour window, ensuring a clean and efficient process.
Key Features
- Email to HTML Conversion: Automatically transforms email content into viewable HTML web pages.
- Instant Telegram Notifications: Receive immediate alerts on Telegram with a direct link to email previews.
- Temporary Hosting: Utilizes GitHub Gists for efficient, temporary hosting of email HTML.
- Automatic Cleanup: Cleans up generated web pages and notifications after a set period (3 hours).
- Customizable Email Triggers: Configurable to monitor specific email accounts and conditions.
How To Use
- Configure Email Trigger (IMAP): Set up your IMAP server details to connect to your email account. Ensure it's configured to fetch UNSEEN emails.
- Set up GitHub API Credentials: Navigate to
Credentialsin n8n, add a newGitHub APIcredential, and provide your personal access token. - Configure GitHub Gist Node: Ensure the
Github Gistnode uses the newly created GitHub API credential. The node will automatically use the provided parameters to create a private gist with the email's HTML content. - Configure Telegram Node: Add your Telegram Bot Token and Chat ID to the
Telegramnode. - Set Wait Duration: Adjust the
Waitnode's 'amount' parameter to define how long the email preview link should remain active (currently set to 3 hours). - Review and Deploy: Connect the nodes as shown in the workflow and activate it to start receiving automated email previews via Telegram.
Apps Used
Workflow JSON
{
"id": "38f2d6e8-e659-41e7-893c-3a2682e300fe",
"name": "Automate Email to Web Preview and Telegram Alerts",
"nodes": 24,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 38f2d6e8-e659...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.