# Generate Lookio RAG-backed Gmail drafts from incoming emails with GPT-4.1

> This n8n template automatically generates knowledge-backed draft email replies when a new message arrives in a connected Gmail account. The workflow extracts a clean question from the incoming email using an LLM, queries a Lookio assistant (your RAG knowledge base) for verified context, then writes a subject and body draft with an AI writer and saves it as a Gmail draft so a human agent can review and send. Watch the full tutorial here: https://www.youtube.com/watch?v=VLz3pCXDGd4&t=1s Who is this for? Customer support teams: Produce fast, fact-based draft replies for support tickets referencing internal docs. Sales teams: Auto-generate informed responses to product or pricing questions using your product docs. Ops & onboarding teams: Create consistent, accurate answers to frequent procedural questions. No-code automators: Quickly add RAG-backed email automation without building your own retrieval stack. What it does / What problem does this solve? Saves time: Reduces manual drafting by

- **Domain**: `n8n-workflow-12440.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/12440
- Page (HTML): https://agenstry.com/agents/n8n-workflow-12440.n8n.io
- Documentation: https://n8n.io/workflows/12440
