Skip to main content

Triage support emails with EmailConnect, Notion KB, and OpenRouter

Workflow preview

Workflow preview
100%
Triage support emails with EmailConnect, Notion KB, and OpenRouter preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow receives inbound support emails via an EmailConnect webhook, filters likely spam, matches the message against a Notion Q&A knowledge base using an OpenRouter chat model...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.if, n8n-nodes-base.noop, n8n-nodes-base.notion, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenrouter

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Xander Groesbeek.

Original n8n.io source

1.1 Workflow description

Title
Triage support emails with EmailConnect, Notion KB, and OpenRouter
Workflow name
Triage support emails with EmailConnect, Notion KB, and OpenRouter

Quick Overview

This workflow receives inbound support emails via an EmailConnect webhook, filters likely spam, matches the message against a Notion Q&A knowledge base using an OpenRouter chat model, and then either drafts and sends a grounded reply or escalates the request to a human by email.

How it works

  1. Receives an inbound email payload via an EmailConnect webhook.
  2. Drops the message if the provided spam score exists and is greater than 10.
  3. Loads all Q&A entries from a Notion database and formats them into a comparison list alongside the sender and message text.
  4. Uses an OpenRouter chat model (with per-sender memory) to select the closest knowledge base question ID or return NO_MATCH when confidence is below 85%.
  5. Validates the returned ID against the Notion data and routes the request to either the answer path or the escalation path.
  6. If a match is found, uses an OpenRouter chat model (with per-sender memory) to draft a structured reply grounded in the matched Notion answer and sends it to the customer via SMTP.
  7. If no match is found, uses an OpenRouter chat model (with per-sender memory) to draft a structured acknowledgement, emails your team the original request via SMTP, and sends the acknowledgement to the customer via SMTP.

Setup

  1. Configure your EmailConnect alias to POST to the workflow webhook URL for the “When Email Received” trigger.
  2. Add Notion API credentials and replace YOUR_NOTION_DATABASE_ID with your Notion database ID, ensuring the database exposes question, answer, and help_url properties.
  3. Add an OpenRouter credential for the three OpenRouter chat model nodes.
  4. Add an SMTP credential and update the from address, escalation recipient ([email protected]), and optional BCC settings in the email send steps.
  5. Adjust the spam-score cutoff (currently > 10) and the match confidence threshold in the matching prompt (currently 85%) to fit your inbox quality.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - When Email Received

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 6 - Check if spam

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 7 - Stop processing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 8 - Get All KB Questions

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2

Block 9 - Format KB data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Find Best Match

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 11 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 12 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 13 - Draft escalation

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 14 - OpenRouter Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 15 - Simple Memory1

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 16 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 17 - Draft answer

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 18 - OpenRouter Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 19 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 20 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 21 - Simple Memory3

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 22 - Get answer

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 23 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Send escalation to human

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Triage support emails with EmailConnect, Notion KB, and OpenRouter
Complexity advanced
Nodes 26
Categories Support Chatbot, AI RAG
Author Xander Groesbeek
Published 10 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16235/16235.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Triage support emails with EmailConnect, Notion KB, and OpenRouter do?

Quick Overview This workflow receives inbound support emails via an EmailConnect webhook, filters likely spam, matches the message against a Notion Q&A knowledge base using an OpenRouter chat model...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI RAG use case.