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
Automate email summaries with n8n and AI

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

Learn how to Build this Workflow with AI:

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

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.


Automate email summaries with n8n and AI

Visit through Desktop to Interact with the Workflow.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.