Multi Generative AI agents for customer support email automation built with Golang, Google-GenAi and Customgraph solution
# Mailflow
#### 🚀 **Customer Support Email Automation with AI Agents and RAG (in Go lang)**
-----
Note: Last stable code version is available at branch 0.9: [Click Here](https://github.com/zaynkorai/mailflow/tree/0.9)
## **Introduction**
This AI-powered solution, built with a Go-driven workflow, uses multiple AI agents to efficiently manage, categorize, and respond to customer emails. It also leverages Retrieval-Augmented Generation (RAG) technology to provide accurate answers to any business or product questions, ensuring your customers always get the precise information they need.
-----
<img width="1138" alt="working output" src="https://github.com/user-attachments/assets/9ba471f2-0c63-4adf-9643-2950c303d435" />
## Features
### Email Inbox Management with AI Agents
* **Continuously monitors** the agency's Gmail inbox
* **Categorizes emails** into '**customer complaint**,' '**product inquiry**,' '**customer feedback**,' or '**unrelated**'
* **Automatically handles irrelevant emails** to maintain efficiency
### AI Response Generation
* **Quickly drafts emails** for customer complaints and feedback using a customizable workflow
* **Utilizes RAG techniques** to answer product/service-related questions accurately
* **Creates personalized email content** tailored to each customer's needs
### **Quality Assurance with AI**
* **Automatically checks** email quality, formatting, and relevance
* **Ensures every response** meets high standards before reaching the client
-----
## **How It Works**
1. **Email Monitoring**: The system constantly checks for new emails in the agency's Gmail inbox using the Gmail API.
2. **Email Categorization**: AI agents sort each email into predefined categories.
3. **Response Generation**:
* **For complaints or feedback**: The system quickly drafts a tailored email response.
* **For service/product questions**: The system uses RAG to retrieve accurate information from agency documents and generates Google's AI-powered research notebook that ingests your documents and becomes an expert on your content. Generates audio overviews, study guides, FAQs, and interactive discussions from uploaded sources.
Google DeepMind's experimental AI agent that can navigate websites, fill forms, and complete multi-step browser tasks autonomously. Uses Gemini's multimodal understanding to interact with web interfaces.
Google DeepMind's universal AI assistant prototype that can see, hear, and respond in real-time through your device camera and microphone. Demonstrates the future of multimodal AI interaction.
Google Cloud's enterprise platform for building, deploying, and managing AI agents powered by Gemini. Supports multi-agent orchestration, tool integration, and enterprise governance.
Gemini's agentic research capability that autonomously browses the web, synthesizes information from dozens of sources, and produces comprehensive research reports on any topic.
Interactive coding and content creation agent that generates, previews, and iterates on code, documents, and interactive applications in a side panel. Supports HTML/CSS/JS, Python, and more.