The capture pipeline behind our AI agents for ERP
Our AI agents for ERP never write straight into the database. They work through a fixed list of safe actions, such as "create a draft bill" or "propose a payment match", with the permissions of the user they act for, and every step is logged. Each document goes through the same pipeline:
- Intake: from an email inbox, an upload, a phone photo or a scanner folder.
- Classify with a small, inexpensive model: supplier bill, receipt, cheque, bank statement, commercial invoice, packing list, bill of lading or customs declaration.
- Extract with a stronger model into a fixed set of fields, each with a confidence score.
- Match without AI wherever possible: supplier by tax number, purchase order by number and amount, shipment by B/L or container number.
- Validate without AI: lines add up, the tax maths is right, it is not a duplicate, the period is open.
- Propose a draft with low-confidence fields highlighted and the source document side by side.
- Approve or correct in one click. Every correction becomes a rule the agent follows next time.

The trust ladder
Trust is earned per document type and per supplier. A new type starts as drafts only. After a run of clean approvals with no edits, it can move to posting by itself, and it drops back to drafts after any correction. The owner sets a ceiling, for example never auto-post above a set amount, so the riskiest entries always see a human.
The agents we are building
- Capture: reads documents into draft bills, expenses and cheques.
- Bank matching: imports statements and matches lines to vouchers, cheques and invoices, leaving only the exceptions.
- Collections: lists overdue customers each morning and drafts polite reminders in Arabic for a person to send.
- Shipment: files shipping documents on the right shipment and updates arrival dates, as in our Shipment Tracking system.
- Month-end: runs the closing checklist and proposes the period lock.
- Migration: maps an old system's export, loads it into a staging copy and proves the trial balance matches before go-live.
Asking the books a question
Owners rarely want a report; they want an answer. Our read-only assistant answers questions over live data in Arabic or English, such as "which customers are more than 60 days overdue?", using the permissions of the person asking, so it can never show someone what they are not allowed to see. The same idea powers a review agent that checks the books each night for red flags, described in our post on audit trails and red flags.
Keeping AI costs under control
Every AI call goes through one gateway with a monthly cap per company. We use the cheapest model that passes our tests for each task, cache fixed instructions, and run overnight jobs in batches. The company sees its remaining AI credit in the system, so there are no surprise bills.
How we measure whether it works
Two numbers: the share of documents approved with no edits, and the minutes saved per document. Both appear on the owner dashboard. If an agent does not earn its keep, it stays in draft mode. More on the wider platform in AI assistants for ERP in Arabic and on our ERP and CRM page.
Questions about AI agents for ERP
Does the AI post entries by itself?
Not at first. It prepares drafts for approval. Only after a run of clean approvals on a document type can it post by itself, within a limit the owner sets.
Can it read Arabic documents?
Yes. Classification and extraction work on Arabic and English documents, and low-confidence fields are highlighted for a person to check.
What stops it from seeing data it should not?
It acts with the permissions of the user it works for, through a fixed list of safe actions, and every step is logged.
How are AI costs controlled?
All calls pass through one gateway with a monthly cap per company, the cheapest suitable model per task, and visible credit in the system.