Loading video player...
This project is an end-to-end AI support automation workflow designed to streamline customer communication and evaluate AI response quality in real time. It combines Gmail, AI agents, vector search and automated evaluation into a single intelligent pipeline. The workflow uses two separate triggers, each with a unique purpose. The Gmail trigger handles real-time incoming emails, while the dataset trigger fetches predefined evaluation data from Google Sheets to test and measure AI performance. When an email is received through Gmail, the system extracts the subject and body and sends them to an AI support agent. The agent uses a Supabase vector database to retrieve relevant policy and FAQ information, enabling context-aware and accurate responses instead of generic replies. After retrieving the required knowledge, the AI dynamically generates a structured response including both the email subject and body. The reply is then automatically sent back to the customer through Gmail, creating a fully automated support experience. For evaluation, the dataset trigger retrieves test cases and expected answers from Google Sheets. These inputs are passed through the same AI support agent, and the generated response is compared with the expected output using another AI evaluation agent. The evaluation layer analyzes semantic similarity, factual accuracy and response quality, then assigns an accuracy score. This allows continuous monitoring and improvement of the AI systemβs performance over time. By combining live email automation with automated response evaluation, this workflow reduces manual effort, improves consistency and creates a scalable AI-powered customer support system. πΉ Tech Stack: This system integrates multiple AI and automation tools to build an intelligent support pipeline. π½) n8n β Workflow automation and orchestration π½) Gmail β Email receiving and response delivery π½) OpenRouter (GPT & Gemini Models) β AI response generation and evaluation π½) Supabase Vector Store β RAG-based knowledge retrieval π½) OpenAI Embeddings β Semantic search and vector embeddings π½) Google Sheets β Evaluation dataset storage and tracking π½) JavaScript Expressions β Dynamic data handling and automation logic πΉ Key Features: π½) Real-time AI email support automation π½) RAG-based contextual response generation π½) Automated Gmail reply system π½) Separate triggers for live support and evaluation π½) AI-powered response quality scoring π½) Semantic similarity and factual accuracy evaluation π½) Google Sheets integration for test datasets π½) Reduces manual support workload π½) Scalable and intelligent customer support workflow