# Improve Gmail AI replies with OpenAI and Tracira human feedback

> Quick Overview This workflow drafts Gmail reply emails using OpenAI guided by Tracira-stored instructions, routes drafts to Tracira for human approval or correction, and then sends the approved or rewritten reply via Gmail while using reviewer feedback to improve future drafts. How it works 1. Triggers every minute when a new Gmail message arrives and ignores messages labeled as SENT. 2. Extracts key fields from the email (sender, subject, plain text/HTML body, thread ID, message ID) for consistent prompting and tracking. 3. Fetches the current reply instructions from Tracira and sends the email content to OpenAI to generate a draft reply. 4. Logs the draft reply to Tracira with the original email, metadata, and instruction version so a reviewer can approve, rewrite, or send it back with comments. 5. Triggers on Tracira review events, filters to the configured Tracira project and task, and replies in Gmail with either the approved AI draft or the reviewer’s rewritten text. 6. If the re

- **Domain**: `n8n-workflow-17542.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/17542
- Page (HTML): https://agenstry.com/agents/n8n-workflow-17542.n8n.io
- Documentation: https://n8n.io/workflows/17542
