π¬ 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
-
Gmail Trigger
The workflow listens for new incoming Gmail messages. -
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.
-
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.
-
Reply to Gmail
The drafted email is automatically sent back to the customer.
π‘ Value
- β Save Time β No more manual triaging and drafting of replies.
- β Consistency β Every answer is based on your own FAQ/policies.
- β Customer Satisfaction β Fast, friendly, and accurate responses 24/7.
- β Scalable β Handle higher email volume without scaling headcount.
π Credentials Needed
To use this workflow, connect the following accounts:
- Gmail OAuth2 β for receiving and sending emails.
- OpenRouter API β for text classification and AI-generated replies.
- OpenAI API β for embeddings (to connect FAQs with AI).
- Pinecone API β for storing and retrieving knowledge base content.
π 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:
- Detect itβs a support-related email.
- Retrieve order policy information from the knowledge base.
- Generate a friendly response explaining order tracking steps.
- Automatically reply to the customer in Gmail.
β‘οΈ Setup Instructions
- Import this workflow into your n8n instance.
- Connect your Gmail, OpenRouter, OpenAI, and Pinecone credentials.
- Populate your Pinecone knowledge base with FAQs and policies.
- 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