Generate Gmail reply drafts with GPT-4o, pgvector, and PostgreSQL
Email Automation ā AI Draft Generator n8n Workflow Template --- š Description This workflow is the core of a three-part email automation system. It monitors your Gmail inbox in real time, classifies every inbound cus...
Template notes
Email Automation ā AI Draft Generator n8n Workflow Template
---
š Description
This workflow is the core of a three-part email automation system. It monitors your Gmail inbox in real time, classifies every inbound customer email with AI, retrieves contextually relevant data from your Knowledge Base and transaction records, and generates a personalised, ready-to-send draft reply ā deposited directly into Gmail Drafts for one-click human review and send.
No more opening each email, reading the context, checking the transaction status, and writing a reply from scratch. The workflow does all of that automatically. Your support team only reviews and sends.
The draft quality comes from three sources working together: a Knowledge Base built from your own historical support emails, real correction examples showing how your team has responded to similar situations in the past, and live transaction data pulled for the specific customer who wrote in. The result is a draft that reflects your team's actual tone, references accurate order details, and follows the correct resolution path based on the customer's transaction status.
This is the main production workflow. It depends on two companion workflows that must be set up first:
Workflow 1 ā KB Builder: Historical Emails (free) seeds the Knowledge Base from your existing Gmail inbox. Run it once before activating this workflow.