This workflow automates the management of incoming emails using AI. It connects to your IMAP inbox, summarizes email content, generatesprofessional replies based on your company’s knowledge base (via Qdrant),and requests human approval or edits before sending a response.By combining retrieval-augmented generation (RAG) and classification,it reduces manual email handling while maintaining quality control.
Features:
- IMAP email trigger: Automatically fetches incoming emails.
- Markdown & summarization: Converts and condenses emails for better AI understanding.
- Retrieval-augmented generation (RAG): Leverages the Qdrant vector database to provide context-aware answers.
- AI-based draft generation: Creates concise, professional replies using OpenAI or DeepSeek.
- Human-in-the-loop approval: Sends draft to Gmail for approval or feedback.
- Smart classification: Detects whether feedback approves or requests revisions.
- Automated sending: Sends the approved email back to the original sender.
- Integrated with Google Drive: Can load documents and enrich the knowledge base dynamically.
- Modular setup: Includes steps for setting up/refreshing Qdrant collections and vectorizing documents.