Mordi Atlan · AI Automation

Erplain · Invoicing

Can you automate invoicing in Erplain from delivery notes?

Yes. An agent can poll the mailbox, read each Excel delivery note, and create the matching invoice in Erplain as a draft. What stays human: the review, the finalisation and the send. That boundary is what makes automation acceptable in accounting.

The concrete problem

In a small business that delivers before invoicing, the back office receives delivery notes by email, usually as Excel files. Someone opens them one by one, finds the customer in Erplain, checks their price level, retypes every line, and creates the invoice. It is slow, repetitive, and it is exactly where quantity errors creep in.

Erplain automates its internal cycle very well — quote to purchase order to invoice. What it does not do is reach into a mailbox and turn a delivery note into an invoice. That gap is what a custom agent fills.

How the agent works

  • It polls the back-office mailbox, read-only
  • It analyses each delivery note and sorts it: ready, blocked, or already invoiced
  • It creates invoice drafts in Erplain, in a queue
  • It recognises notes already invoiced by hand, and creates nothing for those
  • It stops cleanly on request, after the note in progress

Allow up to one minute per delivery note: the agent drives Erplain's interface the way a person would, line by line, checking as it goes. It is not instant — and that is not the point. The point is that nobody has to do it: the agent runs on its own while you do something else.

The agent's interface: one day's delivery notes, each with customer, line count, weight and a status. One note is marked blocked, with the reason: a line delivered without a weighed quantity.
The agent running — fictitious data. Note 6710 is blocked: one line was delivered without a weighed quantity. The agent does not guess — it flags and moves on.
From delivery note to invoice draft The agent polls the mailbox, analyses the delivery note and creates a draft in Erplain. A boundary marks where it stops: review, finalisation and sending stay human. THE AGENT — IT PREPARES YOU — YOU DECIDE Mailbox read-only The agent reads, checks, sorts Draft in Erplain Review, finalise, send never automatic
Chaque carré est un bon de livraison. Celui qui vire à l’orange est bloqué : une donnée manque, l’agent le signale au lieu de la deviner. La ligne verticale est la limite : l’agent ne la franchit jamais seul.
19 seconds, running for real — fictitious data. The agent polls the mailbox, flags note 6710 as incomplete, then creates the 15 drafts one by one in Erplain.

The five guard rails that make it safe

An invoicing agent without explicit limits is an accounting risk, not a time saving. These are the constraints I always impose:

Price levelChecked for every customer before creation — never inferred or guessed.
No duplicatesTwo checks: a local register of processed notes, plus a search inside Erplain.
Quantities re-readEvery quantity is read back after entry and compared to the source note.
Drafts onlyNever finalised, never sent to the customer. Approval stays human.
Clean stopStopping never leaves a half-finished draft inside Erplain.
The principle: the agent does the typing, the human keeps the decision. One invoice sent to a customer by mistake costs more than every hour it saved.

Does this apply to you?

This approach fits if you are in this situation:

  • You use Erplain and you invoice from delivery notes
  • The notes arrive by email in a reasonably consistent format (Excel, structured PDF)
  • The volume justifies it: from a few dozen notes a month upwards
  • You accept that final approval stays human — that one is non-negotiable on my side

If one of these doesn't match, tell me anyway: sometimes the honest answer is "don't automate this".

Tell me about your case

My name is Mordi Atlan. I build agents in Python that automate repetitive work for small businesses. This particular agent runs in production today.

Describe your case

or write to me directly at atlanm335@gmail.com

Reply within 48 h. First conversation free, and I'll tell you straight if it can be automated or not.