Stress-test your n8n AI workflows on a small local model: run each case three times, compare raw and guarded versions, and let code make the decisions
A builder ran six of their n8n business workflows (lead scoring, invoice extraction, FAQ bot, review replies, inbox triage) 192 times on a 1.8B local model. JSON never broke, but the content often did: 7 fake hot leads, wrong totals and confident made-up answers.
Evidence: The source shows its work: steps, screenshots, code or data you can inspect.
The business problem
Solo founders want to run AI workflows cheaply on a small self-hosted model, but a workflow that returns valid-looking output can still be wrong in ways nobody notices until a customer or a spreadsheet is affected.
What was tried
1. Self-host n8n and point each workflow's LLM node at a small model in Ollama through its OpenAI-compatible endpoint, with a low temperature and JSON output mode. 2. Call each workflow through its webhook from a small Python script that saves every raw response, running every test case three times. 3. Where possible run a raw version and a guarded version side by side: the guarded one adds a Code node after the LLM that checks the output before anything acts on it. 4. Check results by hand against the truth and count each failure type per workflow. 5. Fix by moving decisions into code: have the model extract facts (budget, decision maker, timeline) and compute the lead score in code; check every extracted value appears in the source text; add domain rules such as date order and date windows; have the FAQ bot cite which knowledge-base line it used and escalate in code when it cites none; treat a missing escalate flag as needing a human. 6. Use the small model as a draft generator, not an auto-poster, where checks keep failing (review replies here).
What was reported (mixed)
All 192 responses were valid JSON. The lead qualifier gave most leads a score of 85, and 7 of 18 raw runs would have alerted Slack about a lead that was not hot, including a backlink spammer; the guard caught the score and tier contradiction every time but could not fix the ranking. The invoice extractor misread a DD/MM date as February in 3 of 3 runs and invented a total; the guard missed the date swap. The FAQ bot confidently said there was no annual plan, which the knowledge base never said. Review reply checks sent 22 of 24 drafts to the owner. The prompt-injection hardened inbox triage resisted 18 of 18 attack runs because code, not the model, chose the action, but sorted normal email correctly in only 12 of 18 runs.
Limitations
Tests use the author's own test documents and cases, on one very small model (Qwen 1.8B) on a shared CPU machine; larger models will behave differently. Counts are small (three runs per case). Only two of the six workflows are free to inspect; the author sells a paid pack of the others, so treat as vendor. The post says it was written with AI assistance, with the workflows built and tested by the author.
What you need
Self-hosted n8n, Ollama with a small model, and a set of test inputs with known correct answers.
The free lead qualifier and review reply workflows are at github.com/arkintof/n8n-ai-agent-workflows; change the base URL and model name in the Config node to use a local model.
Sources
- DEV Community (crzy_undefinedundefined) ↗ Vendor case study, published November 3, 2026
Source published: November 3, 2026. Last reviewed here: November 5, 2026. Spot a mistake? Tell us.
Tools in this workflow
- n8n: Workflow automation running each AI workflowTry n8n
- Ollama: Serves the small local modelTry Ollama
Get new workflows like this by email
A short selection of the most useful new workflows, including the ones that did not work. Free, and you can unsubscribe at any time.
Related workflows
Design a support email agent that sends only safe answers, drafts the rest, keeps a human copy of every email, and gets tested with hostile mail before it can send
A solo app founder built a support agent that answers known how-to questions and drafts everything else for him. The rules came first: a fixed escalation list checked outside the model, a copy of every email to him, and a hostile-email test that exposed a false pass.
Run a daily Grok Bot monitor on X for leads and complaints, then find it surfaced 46 false alarms and watched a dead handle
A solo n8n workflow seller had Grok Bot search X every evening for 14 days for help requests, template talk and brand mentions. It logged 47 posts, none of them real leads, and the brand search was still watching a renamed handle.
Run a solo API business's marketing legwork with a Claude manager agent: inbox drafts every four hours, one gift-first email per lead, docs from real questions and a morning report
A software engineer selling travel data APIs on RapidAPI set up a Claude manager agent with worker agents for inboxes, lead finding, docs and daily numbers, keeping pricing and spending decisions himself. He reports 61 paying customers and a first month over $1,000 in October.
Replace a support agent's list of 'never' rules with positive rules that name a data source and an exact fallback, then measure on 400 real messages
A solo operator found his support agent refusing simple return questions because of 23 prohibitions in its prompt. He rewrote them as nine rules, each with a data source and a fallback, and cut wrongful refusals from 14.2 to 1.2 percent on a test set.