🎫 βœ‰οΈ Automated email sorting & drafting for customer support - with AI πŸ€–

⚑ 245 views · 🎫 Ticket Management & Triage

Description

πŸ€– Automated Email Sorting & FAQ Reply Assistant (n8n + Gemini AI)

πŸ” Overview

This n8n workflow automates email triage and FAQ responses using Google Sheets and Gemini AI. It’s designed to:

Perfect for startups or teams seeking to reduce support workload while ensuring consistent, helpful responses.


βš™οΈ Pre-conditions / Requirements

Before using this workflow, make sure you have:


🧠 How It Works

  1. Trigger

    • Scheduled workflow run (e.g., every 15 minutes)
  2. Fetch Emails

    • Grabs Gmail messages under a specific label like FAQ-Waiting
  3. Process & Clean

    • Loops through each email
    • Cleans content (removes signatures/HTML)
    • Sends it to Gemini AI
  4. AI Reply Drafting

    • AI matches email intent against your FAQ from Google Sheets
    • Generates a friendly, accurate draft reply, grounded only in your predefined Q&A
  5. Update Gmail

    • Removes FAQ-Waiting label
    • Adds FAQ-Draft label
    • Saves draft reply in Gmail for manual review and sending
  6. Fallback Routing

    • If email doesn’t match FAQ criteria, it follows a FALSE path
    • You can implement further logic here (e.g., route to Billing, escalate to a human agent, log as feedback)

πŸ› οΈ Setup Instructions

  1. Connect Gmail + Google Sheets + Gemini AI

    • Set up credentials in n8n for Gmail, Google Sheets, and Gemini AI
  2. Prepare Labels in Gmail

    • Create: FAQ-Waiting (input folder), FAQ-Draft (drafts ready to send)
    • Optionally, create other labels (e.g., Billing, Tech Support)
  3. Build your FAQ Sheet

    • Create a new Google Sheet with:
      • Column A: Question
      • Column B: Answer
    • Add rows with typical user questions and the matching replies
  4. Configure AI Agent

    • In the AI agent node, edit the prompt to fit your tone of voice (friendly, professional, concise, etc.)
    • Ensure the AI is instructed to only use answers from the sheet, and not hallucinate
  5. Adjust Schedule

    • Modify the trigger interval to match your needs (e.g., every X minutes)

🧩 Customization Tips


βœ… Use Cases


πŸ”— Nodes Used

Gmail, Markdown, Schedule Trigger, AI Agent, Google Gemini Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup