Invoices that check and file themselves
An invoice dropped into a folder is read, checked against five rules, and either filed by itself or sent to a person with the reason written out.
What's in the project
1. Open n8n and get a Claude key
Two accounts ready before you build. n8n runs the workflow: a chain of steps that runs by itself, where each step is a box called a node. An API key is a password that lets n8n use Claude for you. About 15 minutes.
2. Five documents and three folders
A small set of invoices you can drop in again and again, each one broken in a different way, plus the folders that will sort them. Without a bad invoice on purpose, there is nothing to prove.
3. n8n wakes when a file lands
A workflow that starts by itself when something is dropped into
Inbox, and hands the next node the file itself rather than a link to it. The node that starts a workflow is called a trigger.4. Claude reads the page
The page becomes fields. The important field is the last one: a number that says how sure the reading is, which is what separates a clean scan from a photograph taken in a car.
5. The five rules that decide
One node that says clean or not clean, and writes the reason in words a person can read. The duplicate rule is what makes it read the sheet first.
6. Clean files itself, the rest gets looked at
Two endings, both of them visible without opening n8n: a row and a file in
Filed, or a Slack message and a file inNeeds a look.7. Run all five and read the outcomes
Five documents, five different endings, and a Slack channel that explains itself. This is the evidence that the exception path works, which is the part a business cares about.
Tools you'll use
n8n
Claude API
Google Drive
Google Sheets
Slack