Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Email Automation

Email Automation

Classify invoice reminder replies with Claude, Gmail and Google Sheets

Reads new Gmail replies to invoice reminders, strips quoted text, and uses Claude to label each as paid, promise to pay, dispute, question or unrelated, then logs the result to Sheets.

What it does

## Classify replies to invoice reminders with Claude, Gmail and Google Sheets Turns each reply to your payment reminders into a clear next step. ### Who's it for Small businesses, freelancers and bookkeepers who chase unpaid invoices by email. ### 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 the promised payment date (one week ahead if the customer gives none) and a one-line reason. 4. Each reply is logged to Google Sheets 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). The workflow never sends email, so a tricky reply can at worst get a wrong label. It doesn't check your invoices either: *Payment made* means the customer says they paid. ### Setup - [ ] Credentials: connect Gmail, Google Sheets and your AI model (the Claude Haiku 5.5 node). - [ ] Gmail labels: create six labels in Gmail: Payment made, Promise to pay, Dispute, Question, Unrelated and Needs review. Open each Label node and pick the label with the same name. - [ ] Sheet: paste a blank Google Sheet's URL, copied from the address bar, into Your settings. The header row is written on the first run. - [ ] Search: edit the search in Watch for invoice replies to match your reminder subjects. ### Requirements Gmail and Google Sheets connected via Google OAuth (self-hosted n8n needs a Google Cloud app: guide), and an API key for Claude or another chat model. ### Customization tips - Another model: swap the Claude Haiku 5.5 node for any chat model node (OpenAI, Gemini, Mistral, Ollama). - Other classes: edit Classify reply, Reply class format and Route by class, then add a matching label.

The steps

  1. Watch for invoice replies
  2. Your settings
  3. Clean reply
  4. Classify reply
  5. Claude Haiku 5.5
  6. Reply class format
  7. Prepare log row
  8. Log to sheet
  9. Route by class
  10. Label: Payment made
  11. Label: Promise to pay
  12. Label: Dispute
  13. Label: Question
  14. Label: Unrelated

16 steps in total.

Similar automations