Summarize Emails with n8n, OpenRouter AI & Line Messenger

This workflow automates reading emails via IMAP, summarizes them using OpenRouter AI, highlighting important action items and deadlines, and sends concise summaries to Line Messenger. It solves the problem of email overload by delivering only critical insights directly to your messaging app.
emailReadImap
httpRequest
stickyNote
Workflow Identifier: 2279
NODES in Use: EmailReadIMAP, HttpRequest, StickyNote

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow helps to quickly read emails and make short summaries that find urgent tasks and deadlines.
It takes emails from an IMAP email inbox, uses OpenRouter AI to make smart summaries, then sends these summaries to a Line Messenger app.
This saves almost two hours daily by reducing time spent reading long emails and lowers the chance to miss important actions.


Who should use this workflow

This is good for people who get many emails and find it hard to notice urgent work inside long messages.
Anyone who uses Line Messenger and wants fast alerts about important emails can use this.


Tools and services used

  • IMAP Email server: Receives emails (like Gmail or Outlook).
  • OpenRouter AI API: Summarizes the email content using llama-3.1-70b-instruct model.
  • Line Messaging API: Sends summarized messages to the Line app.
  • n8n automation workflow: Connects steps and runs them automatically.

How this workflow works (Input → Process → Output)

Inputs

  • Incoming emails from your IMAP account.

Processing Steps

  • First, the EmailReadIMAP node fetches the new emails.
  • Next, the emails are sent to the HTTP Request node calling OpenRouter AI with instructions to summarize urgent tasks and deadlines.
  • The AI returns a short, clear summary with bold highlights for deadlines and urgency marks.
  • Then, another HTTP Request node sends this summary to the Line Messaging API using the correct header authentication.

Output

  • The user gets a short message in Line Messenger showing urgent actions and deadlines from the email.

Beginner step-by-step: How to use this workflow in n8n

Step 1: Import the workflow

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor.
  3. Click Import from File and select the downloaded workflow.

Step 2: Add your credentials

  1. Add your IMAP email account credentials in n8n, like Gmail or Outlook settings.
  2. Enter your OpenRouter AI API key for the HTTP Request node that sends the email text for summarizing.
  3. Put your Line Messaging API Channel Access Token into the other HTTP Request node that sends messages to Line.

Step 3: Adjust settings if needed

  1. Check if any IDs, email folders, or channel values in the workflow need changing for your accounts.

Step 4: Test the workflow

  1. Run the workflow once with test emails to make sure summaries are created and messages reach the Line app.

Step 5: Activate for production

  1. After confirming correct operation, activate the workflow to run automatically in your n8n environment.
  2. Set polling intervals or triggers based on your email volume to keep it working smoothly.

If self hosting n8n, see self-host n8n for setup ideas.


Customization ideas

  • Change the AI model name in the OpenRouter node to try different summary styles.
  • Edit the prompt for more focus like tone, sentiment, or special formatting.
  • Switch Line API URL and tokens to use another messaging app like Telegram.
  • Add email filters to summarize only emails from certain senders or with keywords.

When errors happen (Troubleshooting)

  • IMAP node fails to connect: Check email username & password and enable IMAP access.
  • OpenRouter AI returns 401 error: Confirm API key is correct and has “Bearer ” prefix.
  • Line messages do not arrive: Use HTTP Request with header auth, not old Line node; verify channel token in Line Console.

Summary of results

✓ Saves time by shortening long emails to priority tasks and deadlines.
✓ Sends easy-to-read summaries to a mobile app for fast access.
✓ Cuts manual work and lowers chances of missing important emails.
✓ Works with common email systems and Line Messenger.


Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free