My Device Configuration
laptop
Acer
Laptop/desktop Brand
Processor
AMD Ryzen 5 7520U
Processor
Processor
8GB GB
RAM
Processor
Radeon Graphics
Graphics card
Processor
500GB GB
Storage
Internet Speed
100mbps
Internet Speed (Mbps)

InboxPilot — AI Email Copilot with Human-in-the-Loop Approval

InboxPilot is a Human-in-the-Loop AI email automation system that transforms incoming emails into context-aware reply drafts while keeping humans in control. Built with n8n, Gmail, Google Sheets, Slack, and Gemini 3.1 Flash, it retrieves CRM context, maintains conversation memory, and generates personalized responses. Users can approve, edit, or reject drafts directly through Slack before they are sent. Every decision is logged, with timeout handling and a dedicated error-workflow integration for operational reliability.

1. AI-powered email drafting: Generates personalized replies using incoming email content and CRM records.

2. CRM context enrichment: Looks up sender information in Google Sheets using their email address.

3. Conversation memory: Maintains thread-specific context across email interactions.

4. Slack approval workflow: Review AI drafts and approve, edit, or reject them without leaving Slack.

5. Human-controlled sending: Emails are only sent after an explicit approval or edited-reply decision.

6. Automated audit logging: Records approved, edited, rejected, and expired drafts in Google Sheets.

7. Timeout management: Parks unanswered approval requests after 24 hours and sends a Slack reminder.

8. Error handling: Designed to connect with a global n8n error workflow for failure logging and alerts.

 

15 Nov 2026

Keywords
n8n
AI Email Automation
Human-in-the-Loop
Slack Integration
Workflow Automation
Gemini
AI Usage

I used Google Gemini 3.1 Flash to build an AI-powered email drafting agent that understands incoming emails and generates personalized, context-aware replies. The AI receives the sender's details, email content, and relevant CRM information retrieved from Google Sheets. Window Buffer Memory helps maintain conversation context across email threads. The workflow is orchestrated using n8n, connecting Gmail, Google Sheets, and Slack. AI handles email understanding and draft generation, while critical decisions remain human-controlled. Through Slack, I can review each draft, approve it, edit it before sending, or reject it entirely. The system also logs every decision and handles unanswered approval requests through timeout notifications. The goal was to combine AI-driven productivity with human oversight, ensuring that no AI-generated email is sent without explicit approval.

AI Tool Stack
n8n Gemini Gmail Api Slack Api Docker Window Buffer Memory