
One-line summary: An n8n workflow that reads incoming emails, sorts them into invoices, support requests, sales leads and spam, pulls the key fields out of each invoice, and sends anything it is unsure about to a person.
This is a demo built by Zyktech Soluções. It runs on 10 fictional emails from made-up companies. It is not a client project, and the results are not client results.
The problem
A shared inbox mixes supplier invoices, customer questions, new enquiries and junk. Someone has to read each message, copy invoice details into a spreadsheet, open a ticket, pass the lead on, and delete the rest. It is repetitive, easy to get wrong, and it pulls attention from real work.
What it does
For every email that arrives, the workflow does this.
Classifies it as invoice, support request, sales lead, or spam/other, with a confidence score and a one-line summary.
Extracts invoice fields: vendor, amount, currency, due date and invoice number. It handles US-style and Brazilian-style numbers and dates (for example 1,240.50 and R$ 3.890,00).
Routes it: invoices go to an invoices table, support requests to a ticket list, leads to a CRM-style list, and spam to an archive log.
Sends doubtful items to a human review queue. That means low confidence, an unclear category, or an invoice with a missing field. Nothing is guessed.
Builds a Slack-style summary with counts, invoice totals per currency and the items that need a person. In this demo the Slack post is switched off, so nothing is sent anywhere.
Demo run (10 fictional emails)
3 invoices (USD, BRL, EUR), all fields extracted
2 support tickets (one marked high priority)
2 leads (one in English, one in Portuguese)
2 spam/newsletter emails archived
1 ambiguous email (a billing question mixed with a sales hint) sent to human review
How it works
Webhook receives a batch of emails (a Gmail or IMAP trigger in a real build).
Split turns the batch into one item per email.
AI step. If an API key is set, an OpenAI-compatible chat model returns structured JSON. If no key is set, a built-in rules-based classifier runs instead, so the demo works offline.
Validation gate checks the category, the invoice fields and the confidence (threshold 0.75).
Switch routes each item. CSV writers save the five tables, and a summary node builds the Slack-style message.
How it was tested. The full workflow ran end to end in n8n on the rules-based classifier. The AI-model path was checked against a local stand-in endpoint, including a deliberately broken reply that correctly landed in the review queue. It has not been run against a live language model, and the confidence numbers in the demo come from the rules engine, not from a model.
Stack
n8n (webhook, Switch, Code, Convert to File and Read/Write File nodes), an OpenAI-compatible LLM API (Azure OpenAI, OpenAI or Amazon Bedrock via a gateway), JavaScript, CSV. In a client build: Google Sheets, a helpdesk, a CRM and Slack.
What a client gets in a 5-day sprint
This demo backs the AI Workflow Automation Sprint (n8n or Make). One workflow, built for your tools.
Day 1. A short call to pick the one process, map the steps and agree what counts as done.
Days 2-4. The workflow built and tested on your real examples, with your accounts connected (inbox, Sheets, helpdesk, CRM or Slack).
Day 5. A handover with the exported workflow, a short walkthrough video, and a one-page runbook covering how it works, how to switch it off, and what to do when it asks for human review.
You own the workflow and the accounts from the start. If the process turns out to need more than one workflow, we say so up front and quote it separately.
About Zyktech Soluções
Zyktech Soluções builds practical AI and automation for businesses. Microsoft Azure AI Essentials certified.
Demo built by Zyktech Soluções. Fictional companies and emails, no client data.
0 likes · 0 views · Dec 4, 2026