Triage support emails with EmailConnect, Notion KB, and OpenRouter
Ready for 3.0What this workflow does
This AI workflow has 21 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Notion and OpenRouter Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Check if spam (If): checks a condition and branches into true / false
- Get All KB Questions (Notion): get many (database page)
- Format KB data (Code): runs custom JavaScript code
- Find Best Match (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; memory: Simple Memory
- Get answer (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Send escalation to human (Send Email): sends an email over SMTP
- Draft escalation (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; memory: Simple Memory; output parser: Structured Output Parser
- Draft answer (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; memory: Simple Memory; output parser: Structured Output Parser
- Inform need for escalation to sender (Send Email): sends an email over SMTP
…plus 1 more step. See the full node list below.
Services it uses
Other Notion + OpenRouter templates (14)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Notion
n8n-nodes-base.notion - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Send Email
n8n-nodes-base.emailSend
From the author
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…