Skip to main content

Summarize and answer Re:amaze support emails with Gemini and SOP knowledge base

Workflow preview

Workflow preview
100%
Summarize and answer Re:amaze support emails with Gemini and SOP knowledge base preview
Open on n8n.io

1. Workflow Overview

This template demonstrates an AI powered email automation system for Re:amaze, summarizing and responding to customer inquiries using a structured knowledge base to ensure accurate and consistent r...

Best for

  • Ticket Management automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.googlegemini, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.splitout

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Summarize and answer Re:amaze support emails with Gemini and SOP knowledge base
Workflow name
Summarize and answer Re:amaze support emails with Gemini and SOP knowledge base

This template demonstrates an AI-powered email automation system for Re:amaze, summarizing and responding to customer inquiries using a structured knowledge base to ensure accurate and consistent replies.

🔹 Ideal for:

  • Customer support teams handling high volumes of email queries (e.g., e-commerce, SaaS)
  • Businesses looking to automate SOP-based responses with AI while integrating actions like order lookup or issue logging

What this workflow does

  • Fetches incoming customer emails from Re:amaze
  • Filters only customer messages (ignores agent replies)
  • Classifies email intent (e.g. security, pricing, setup etc.)
  • Matches the request against a structured SOP knowledge base
  • Generates a response using AI based strictly on SOP
  • Sends reply back to the customer automatically

Key Features:

  • Prevents duplicate replies using deduplication logic
  • Ensures responses follow SOP (reduces hallucination)
  • Scalable for high-volume email handling

Requirements

  • Re:amaze API access (for fetching & replying to conversations)
  • AI model (e.g., OpenAI / Gemini configured in n8n)
  • SOP knowledge base (Google Sheets or Code tool)

How to set up

  1. Add your Re:amaze API credentials in HTTP nodes

To get the API Key, you have to login to the Re:amaze plateform(https://www.reamaze.com/)

Here is the API documentation -https://www.reamaze.com/api/get_messages

  1. Configure your AI model credentials
  2. Connect your SOP knowledge base (Google Sheets or internal tool)
  3. Test the workflow using sample customer emails

🚀 This template can be extended to support multi-channel support (chat, tickets, etc.)

Need Help?

ask in the Forum!

Happy Hacking!

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 - Email Category Classifier

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1.1

Block 2 - LLM Response Generator

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

Block 3 - Structured Response

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

Block 4 - Sticky Note7

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

Block 5 - Sticky Note6

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

Block 6 - AI Support Agent

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

Block 7 - Manual Trigger (Test Workflow)

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

Block 8 - Fetch Conversations from Re:amaze API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 9 - Split Conversations into Individual Messages

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

Block 10 - Sort Messages by Latest First

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

Block 11 - Remove Duplicate Conversations (Prevent Double Reply)

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

Block 12 - Filter Only Customer Emails

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

Block 13 - 📚 Knowledge Base

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

Block 14 - Prepare Final Response

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Send Reply to Customer (Re:amaze API)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 16 - Sticky Note

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

Block 17 - Sticky Note2

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

Block 18 - Sticky Note1

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

3. Summary Table

Workflow Summarize and answer Re:amaze support emails with Gemini and SOP knowledge base
Complexity advanced
Nodes 18
Categories Ticket Management, AI RAG
Author Divyanshu Gupta
Published 18 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14168/14168.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 Summarize and answer Re:amaze support emails with Gemini and SOP knowledge base do?

This template demonstrates an AI powered email automation system for Re:amaze, summarizing and responding to customer inquiries using a structured knowledge base to ensure accurate and consistent r...

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 Ticket Management, AI RAG use case.