WorkflowOtherOpen

n8n summarize emails with AI and send to LINE

This n8n workflow reads your email over IMAP, summarizes each message with an AI model from OpenRouter and sends the summary to a messenger. It is for people who want short digests of their inbox in a chat app, using a free model.

What it does

It reads emails through IMAP, posts the content to OpenRouter for a summary, and sends the summarized text to the messenger through an HTTP request.

How to use it

Find your mail server's IMAP settings, create a free OpenRouter account, and use header auth with the name Authorization and the value Bearer followed by a space and your API key.

Requirements and limits

The author advises against the official Line node, calling it outdated.

More in Other and the n8n workflow library.

Full text

Front matter
name: Summarize emails with A.I. then send to messenger
description: Triggered manually or by an app event. Connects Email, HTTP request. ## Summarize emails with A.I. You can find out more about the [use case]({{ $env.WEBHOOK_URL }} Find your email server's IMAP Settings. - Link for [gmail]({{ $env.WEBHOOK_URL }} For the A.I. you can use Openrouter.ai. - Set up a free account - The A.I. model selected is FREE to use. ## Credentials - Use header auth - Username: Authorization - Password: Bearer {insert your API key}. - The password is "Bearer" space plus your API key. Don't use the official Line node. It's outdated. ## Credentia
category: Automation
kind: Workflow
software: Email|HTTP request

Summarize emails with A.I. then send to messenger

Triggered manually or by an app event. Connects Email, HTTP request. ## Summarize emails with A.I. You can find out more about the [use case]({{ $env.WEBHOOK_URL }} Find your email server's IMAP Settings.

  • Link for [gmail]({{ $env.WEBHOOK_URL }} For the A.I. you can use Openrouter.ai.
  • Set up a free account
  • The A.I. model selected is FREE to use.

Credentials

  • Use header auth
  • Username: Authorization
  • Password: Bearer {insert your API key}.
  • The password is "Bearer" space plus your API key. Don't use the official Line node. It's outdated.

Credentia

Steps

  • Manual Trigger (manualTrigger)
  • Read emails (IMAP) (emailReadImap)
  • Send email to A.I. to summarize (httpRequest)
  • Send summarized content to messenger (httpRequest)
  • Sticky Note (stickyNote)
  • Sticky Note1 (stickyNote)
  • Sticky Note2 (stickyNote)
  • Sticky Note3 (stickyNote)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source and license

Source: https://github.com/Zie619/n8n-workflows/blob/main/Http/1615_HTTP_Emailreadimap_Send_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.