πŸ’¬ AI-powered Gmail customer support with OpenRouter & Pinecone knowledge base

⚑ 236 views Β· πŸ’¬ Support Chatbots

Description

This workflow automates customer email support by combining Gmail, AI classification, and a knowledge base to provide instant, accurate, and friendly responses. It’s designed for businesses that want to improve customer satisfaction while reducing manual workload.


πŸš€ How it Works

  1. Gmail Trigger
    The workflow listens for new incoming Gmail messages.

  2. Text Classification
    Each email is classified using AI as either Customer Support or Other.

    • If it’s Other, the workflow stops.
    • If it’s Customer Support, the email continues to the AI agent.
  3. AI Agent with Knowledge Base
    The AI agent:

    • Reads the customer’s message.
    • Searches the Pinecone Knowledge Base for FAQs and policies.
    • Generates a helpful, polite, and detailed reply using an OpenRouter model.
    • Signs off as Mrs. Helpful from Tech Haven Solutions.
  4. Reply to Gmail
    The drafted email is automatically sent back to the customer.


πŸ’‘ Value


πŸ”‘ Credentials Needed

To use this workflow, connect the following accounts:


πŸ›  Example Use Case

A customer writes:

> β€œHi, I placed an order last week but haven’t received a shipping confirmation yet. Can you check the status?”

The workflow will:

  1. Detect it’s a support-related email.
  2. Retrieve order policy information from the knowledge base.
  3. Generate a friendly response explaining order tracking steps.
  4. Automatically reply to the customer in Gmail.

⚑️ Setup Instructions

  1. Import this workflow into your n8n instance.
  2. Connect your Gmail, OpenRouter, OpenAI, and Pinecone credentials.
  3. Populate your Pinecone knowledge base with FAQs and policies.
  4. Activate the workflow.

From now on, all support-related emails will be automatically answered by your AI-powered support agent.


πŸ”— Nodes Used

Gmail, Gmail Trigger, AI Agent, Embeddings OpenAI, Pinecone Vector Store, Text Classifier

πŸ“₯ Import

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

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