# Triage shared inbox emails with OpenAI and human-in-the-loop approval

> Quick overview This workflow monitors a shared IMAP inbox, uses OpenAI to classify each incoming email and draft a short reply, then emails the draft to an approver for one-click approval before sending the response back to the original sender. How it works 1. Triggers when a new email arrives in a shared inbox via IMAP and marks the message as read. 2. Prepares the email details (sender, subject, message text) and loads configuration like company name and approval addresses. 3. Uses OpenAI to classify the email into categories such as quote request, appointment, complaint, invoice question, general, or spam. 4. Stops processing for spam messages so no reply is drafted or sent. 5. Uses OpenAI to draft a short reply in the sender’s language based on the classified case and the original message. 6. Emails the draft to an approver using an editable decision form. By default it waits four hours, then sends a reminder/escalation and waits another twenty hours (24 hours total) before logging

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