{"product_id":"gmail-gpt-4o-mini-auto-reply-drafts-n8n-w-telegram","title":"Gmail + GPT-4o-mini Auto Reply Drafts (n8n) w\/ Telegram","description":"\u003ch3\u003eDraft knowledge-grounded Gmail replies automatically—then notify your team on Telegram (with an escalation option)\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow rebuilds your Google Docs knowledge base into an in-memory vector store and, when new unread Gmail messages arrive, uses \u003cstrong\u003eOpenAI GPT-4o-mini\u003c\/strong\u003e to draft a reply grounded in your documentation—saving it as a \u003cstrong\u003eGmail draft\u003c\/strong\u003e and sending a preview via \u003cstrong\u003eTelegram\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds a knowledge base:\u003c\/strong\u003e On manual test or a daily \u003cstrong\u003e6:00 schedule\u003c\/strong\u003e, it downloads a specified Google Docs file from \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e, splits it into chunks, embeds the content, and stores it in an \u003cstrong\u003ein-memory vector store\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMonitors Gmail:\u003c\/strong\u003e Every minute, it polls \u003cstrong\u003eGmail\u003c\/strong\u003e for new \u003cem\u003eunread\u003c\/em\u003e customer emails.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFilters automation noise:\u003c\/strong\u003e It excludes messages where the sender\/subject contains \u003cstrong\u003e“no-reply”\u003c\/strong\u003e, \u003cstrong\u003e“noreply”\u003c\/strong\u003e, or \u003cstrong\u003e“unsubscribe”\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDrafts a reply with knowledge retrieval:\u003c\/strong\u003e Using \u003cstrong\u003eGPT-4o-mini\u003c\/strong\u003e with a vector-search tool, it looks up relevant passages and generates a \u003cstrong\u003eplain-text reply\u003c\/strong\u003e—or outputs an \u003cstrong\u003e[ESCALATE]\u003c\/strong\u003e line when the knowledge base doesn’t cover the question.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaves as a Gmail draft:\u003c\/strong\u003e The generated text is added as a draft reply in the original email thread.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNotifies + logs status:\u003c\/strong\u003e It sends a \u003cstrong\u003eTelegram\u003c\/strong\u003e message with a preview of the draft and appends a status row (e.g., draft ready vs. needs human) to a \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e support log.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS support teams drafting consistent replies based on internal documentation\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers setting up an n8n “email-to-draft” agent with safe escalation (\u003cstrong\u003e[ESCALATE]\u003c\/strong\u003e)\u003c\/li\u003e\n  \u003cli\u003eFounders validating faster response workflows without fully sending automated emails\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations\/nodes:\u003c\/strong\u003e Gmail, filter, Telegram, Sticky Note, Google Drive, and a Gmail trigger\/polling loop\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAI:\u003c\/strong\u003e \u003cstrong\u003eOpenAI GPT-4o-mini\u003c\/strong\u003e for drafting and OpenAI embeddings for knowledge base indexing\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogging:\u003c\/strong\u003e Google Sheets “Support Log” sheet\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45824203423923,"sku":"N8N-18164","price":63.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/CoLrjFiqye0232c3DueMX_Rc5BKso2.png?v=1786612378","url":"https:\/\/buyflowscripts.com\/products\/gmail-gpt-4o-mini-auto-reply-drafts-n8n-w-telegram","provider":"N8N Commerce","version":"1.0","type":"link"}