Summarize Emails Using n8n, Openrouter AI & LINE

Struggling with overflowing emails? This n8n workflow automatically reads your emails, summarizes them with AI via Openrouter, and sends concise updates to LINE messenger—saving you hours and highlighting urgent action items.
emailReadImap
httpRequest
stickyNote
Workflow Identifier: 1811
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 reads emails automatically from your inbox using IMAP and summarizes them using an AI model from Openrouter AI.
It finds urgent emails and deadlines, makes important dates bold, and sends the summary to LINE messenger.
The goal is to save time daily by showing only key info and reminders on LINE.


Who should use this workflow

The workflow helps busy people with many emails who want quick summaries and alerts on urgent tasks.
It suits project managers or anyone who checks emails on mobile often and needs to avoid missing deadlines.


Tools and services used

  • IMAP Email: To automatically read emails from inboxes like Gmail.
  • Openrouter AI API: Applies the “meta-llama/llama-3.1-70b-instruct” model for email summarization.
  • LINE Messaging API: Sends summarized messages to LINE messenger app.
  • n8n automation platform: Manages workflow nodes and connections.


Inputs, processing, and outputs

Inputs

  • Email data: sender, subject, full email content via IMAP node.
  • API keys: Access tokens for Openrouter AI and LINE Messaging API.

Processing steps

  • First, the IMAP email node reads new emails without marking them read.
  • Next, an HTTP Request node sends email content to Openrouter AI for summarization using a specific prompt.
  • The prompt instructs the AI to highlight urgent deadlines with bold text and emojis and keep unimportant mails very short.
  • Then, a second HTTP Request node sends the AI summary text to LINE messenger using the LINE API and user ID.

Outputs

  • A message sent to LINE messenger app with a clear, short summary of each email.
  • Deadlines in bold with urgency emoji for quick attention.


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

1. Import the workflow

  1. Click the Download button on this page to get the workflow file.
  2. Open the n8n editor where you want to run automation.
  3. Use the “Import from File” option in n8n to load the workflow.

2. Configure credentials and IDs

  1. Add your IMAP email account credentials inside the IMAP Email node.
  2. Enter your Openrouter.ai API key in the HTTP Request node that summarizes emails.
  3. Update the LINE user ID and put your LINE channel access token in the second HTTP Request node to send messages.
  4. Check and change email folders if needed.

3. Test the workflow

  1. Run the workflow once manually in n8n.
  2. Check if emails are read, summaries are created, and LINE messages arrive.

4. Activate workflow for production

  1. Switch the workflow toggle in n8n to active.
  2. Set a schedule trigger if automatic polling is needed.
  3. Make sure the environment where n8n runs has internet access for API and email server calls.
  4. If self hosting n8n, see self-host n8n resources for setup help.


Customization ideas

  • Change AI model: Edit model name in the Openrouter AI node to something like “gpt-4o” for different summarizations.
  • Adjust summary prompts: Update the text in HTTP Request node’s JSON body to make summaries longer, shorter, or more detailed.
  • Filter emails before summarization: Insert a Function node to let only important senders or keywords pass.
  • Send summaries to multiple LINE users: Add more user IDs or split messages by groups.


Possible issues and how to fix

401 Unauthorized on AI or LINE API nodes

Check API keys include “Bearer ” prefix in Authorization header.
Verify the keys are correct and active.

IMAP node reads no emails

Make sure IMAP is enabled in your email settings.
Check credentials and test connection manually.

Summaries are too short or irrelevant

Improve the AI prompt instructions.
Make it clearer what info should be summarized or highlighted.


Summary of benefits

✓ Saves 90 minutes daily by automating email reading and summaries.
✓ Shows urgent deadlines clearly with bold and emoji marks.
✓ Sends useful reminders directly to LINE messenger for easy mobile access.
✓ Reduces risk of missing tasks or deadlines.
✓ Easy to customize for different AI models or messaging recipients.


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