# Classify invoice reminder replies with Claude Haiku, Gmail and Google Sheets

> Quick overview This workflow monitors Gmail for replies to invoice reminders, uses Claude Haiku to classify each reply, logs the result to Google Sheets, and applies a matching Gmail label so you can quickly triage each one as payment made, promise to pay, dispute, question, unrelated, or needs review. How it works 1. Watch for invoice replies picks up new replies (default search: "invoice" in the subject, not sent by you). 2. Clean reply strips quoted history and signatures. 3. An AI model sorts the reply into Payment made, Promise to pay, Dispute, Question, Unrelated or Needs review, with any promised payment date (one week ahead if the customer gives none) and a one-line reason. 4. Each reply is logged to Google Sheets, including a direct link back to the Gmail thread, and labelled in Gmail. Needs review is for replies a person should read: vague, mixed or sarcastic ones, or if the model fails (the error is logged). Setup 1. Credentials: connect Gmail, Google Sheets and your AI mode

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