Turn incoming emails into fast, accurate replies powered by your own documents. The flow spots general company info requests, searches a private knowledge base built from Google Drive files, writes a short answer, reviews the message, and sends it back to the sender. It suits small support teams that want quick answers without manual copy and paste.
Here is how it works. New emails arrive over IMAP and get converted to clean text. The message is summarized by a language model and classified to check if it is an info request. If it matches, the reply engine uses a Qdrant vector database as a tool to pull facts from your documents. A short reply is drafted, reviewed for tone and structure, formatted as HTML, and sent by SMTP with the original subject line. A separate setup path builds the knowledge base by pulling files from a Google Drive folder, splitting text, creating embeddings with OpenAI, and storing them in Qdrant. Collection create and refresh calls run through HTTP requests.
To run it, you need Google Drive access, a live Qdrant endpoint, and API keys for OpenAI and OpenRouter. You also need IMAP and SMTP credentials for your support inbox. Expect faster first replies, more consistent answers, and fewer tickets that wait for manual triage. It works well for company info emails, partnership requests, and press questions.