We recently put together an automation for our own accounts payable workflow. The mechanics are not complicated, but the underlying pattern is one we keep coming back to across very different problem areas.
The problem
Vendors send invoices as PDF attachments by email. Someone has to open each one, pull out the relevant data, match it to the right vendor in the accounting system, and create a journal entry.
It is not difficult work, but it is time-consuming and easy to fall behind on. The kind of task that quietly absorbs hours every week without anyone noticing where the time went.
How it works
We use n8n, a workflow automation tool, to monitor an inbox for incoming emails. When a PDF attachment arrives, n8n sends it to Google Gemini, which reads the document and extracts the accounting data into a structured format.
The system then matches the vendor information against our vendor list in ERPNext and creates the journal entry automatically. Once that is done, our bookkeeper gets a notification to review and approve the transaction.
The whole thing runs without anyone touching it until the final review step.
Where else this pattern applies
The underlying logic is the same across a lot of workflows: something arrives, AI extracts or processes the relevant information, that information gets pushed into the right system, and a person is notified to review.
Lead intake is a good example. Someone books a meeting, provides their details, and rather than just logging that in a CRM, the system does a quick background summary using something like Perplexity and sends it to you before the call. From there you can layer in follow-up sequences, CRM updates, and outreach testing without any of it requiring manual input.
- 01 —TriggerSomething arrives. An email, a form submission, a calendar booking, a webhook from another system.
- 02 —ExtractAI reads unstructured input and returns structured data. PDFs, images, free-text fields, transcripts.
- 03 —SyncThe structured output is pushed into the system of record. ERP, CRM, ticketing, billing.
- 04 —ReviewA human is notified to confirm or correct before anything irreversible happens.
The tools
n8n for workflow orchestration, Google Gemini for document extraction, ERPNext as the accounting system.
n8n is self-hostable, which matters if you are processing documents with sensitive financial or client data. Keeping the orchestration layer on infrastructure you control means the only thing leaving your environment is the specific call to the model, on terms you have already vetted.
Have a workflow that should be automated?
Jinka builds AI-driven automations that quietly remove the repetitive work from your team's day.

