Work / Open source
n8n workflow examples
Four workflows you can read, import and run. Built for a made-up coffee roaster, tested, and published with the tests.
The problem
Almost all my work is private. A client's ERP is not something I can put on GitHub. So I built four workflows for a company that does not exist, Brasa Norte Coffee, the way I would build them for one that does.
What I built
A WhatsApp assistant that answers from the catalog in Spanish or English, saves order requests as leads and hands over to a human when the customer asks or when it does not know.
A money watcher that sends one alert a day per unanswered lead, stuck deal or late invoice, and never the same alert twice.
An invoice check that reads a supplier's PDF, turns it into data and compares it with the purchase order in plain code: prices within 2%, quantities, totals, duplicates.
An order workflow that reserves stock and works out what has to be roasted, including the weight lost in roasting. All or nothing: an order is never half reserved.
The rule in all four: the model handles language, code handles money and stock. Every workflow has an error path and a check for duplicates. The nodes that send mail or messages are there, switched off.
How it fits together
- Triggerwebhook, daily schedule
- Rules in codeduplicates, tolerances, all-or-nothing stock
- Modellanguage only, structured output
- Outcomeapproved or review queue, one status row per run, error workflow
What came out
| Workflows | 4 | measured |
|---|---|---|
| Test files with real responses | 4 | measured, run 6 Nov 2026 |
| Test cases for the invoice check | 10 | measured |
| Licence | MIT | measured |
Each test file ends with a list of what I did not test.