Learned Rules
When you correct what the AI read on an invoice and validate it, Finpilo learns from your corrections. Each correction is offered to you as a rule, from the first invoice on. Say yes, and the next invoices arrive with that field already filled.
How a rule grows
Your first correction is a rule right away, for one invoice. From one invoice Finpilo cannot tell which of its values is the reason, so the card's When is empty and you write the condition yourself, for example Supplier is "Acme". An empty When means every invoice of this entity and document type.
From the second invoice on, Finpilo fills When with what the corrected invoices have in common, the fewest conditions that tell them apart from invoices with another value. You can still change it before you say yes.
For example, you set Cost Centre CC-5 on an invoice from Acme: Finpilo offers a card: "You set Cost Centre to CC-5 on 1 document. Should Finpilo fill it in on every document where Document type is Invoice from now on?" Under Details, When is empty. You write Supplier is "Acme" and click Yes, use this rule. Or you wait: on the second Acme invoice with CC-5, the card says "on 2 invoices from Acme", its When already holds Supplier is "Acme", and the yes reads Yes, for Acme. Acme then gets CC-5, and every other supplier keeps what it had. If you change your mind and set CC-6 on Acme from now on, Finpilo offers that, and invoices already in Finpilo stay as they are.
If two corrections disagree on invoices nothing tells apart, each waits as its own card until a further invoice decides it.
Answer a rule
- Correct the invoice and click Validate, or another move that sends your corrections to the AI.
- Open the invoice's Suggestions tab. When the entity's Learned Rules is Ask on the Suggestions tab and right after sending feedback, a window opens on its own once Finpilo has learned from your corrections: A Rule from Your Corrections, or 2 Rules from Your Corrections when there are more.
- Each rule is its own card. It names the field it fills and says in two sentences what you did and what Finpilo would do from now on, for example "You set Tax Amount to 0 on 2 documents from Acme. Should Finpilo fill it in on every document where Document type is Invoice and Supplier is Acme from now on?" The entity's list names the rule in the rule's own words.
- Click Details to see more. Under When, set which invoices the rule is for. Add conditions and group them with and / or, as in any rule. For a rule from one invoice it starts empty, and its Details are open from the start; from the second invoice on it holds what the invoices have in common.
- Also under Details, the invoice's own lines show what You entered next to what the Rule gives. If they match, the rule does what you did. When there are more than five lines, click Show All to see every one.
- Click Yes, use this rule (or Yes, for Acme, when the invoices share one value) to keep the rule, or No to decline it.
Closing the window answers nothing. The rules wait on the invoice's Suggestions tab.
Some rules need one more answer first:
- Two ways fit equally, for example the supplier's name and its VAT number, or two formulas that both give your values. Each choice shows its condition. When a formula over the invoices' own values gives what you set on each of them, the card offers the formula and not the fixed value. Pick the one that matches how you work under Details, then click Yes.
- The rule starts from a value no field holds yet, for example the amount printed on each line. Choose the field that holds it under Starts from. Until you do, the yes stays off.
- A rule that cannot be kept says why, for example when it reads a value that no field of this document type is linked to.
When you correct what a kept rule filled
If you correct a value a kept rule filled, the card changes that rule. It does not add a new one. A yes gives invoices like the ones you corrected their own step, in the place of the step that filled them. That step keeps filling every other invoice.
A rule over the lines works the same way. The table has one line rule, and a yes adds a part for the lines you corrected. The part that took them before no longer does. A line rule's card has its own When for which invoices, beside the choice of which lines.
When a workflow filled the value
If a workflow someone built set the value you corrected, Finpilo never changes that workflow. Its card names the workflow and, under Details, shows for each invoice what the workflow set (Workflow set) and what You entered. Click Open workflow to change it there. Ignore dismisses the card.
When the AI put a printed value in the wrong field
If the AI read a printed line value into the wrong field and you move it to the right one, the card says what you moved, for example from Total Excl. Tax to Total Including Tax. Under Details it shows the two sentences Finpilo adds to what the AI is told about those fields, for the invoices the card names. A yes adds them to the document type. From the next invoice the AI reads the value into the right field. Nothing is calculated and nothing you entered is changed. On Apply this card always waits for you.
What a rule changes
A kept rule fills its field on every invoice of the same document type and entity that is read from then on. It also runs when an invoice is read again with Re-extract. Invoices already in Finpilo are not changed. A kept rule runs After AI Reading, so editing an invoice never runs it.
A kept rule is a step in the field's Calculation, under Workspace Settings › Fields. You see it there and can change or remove it like any other step. A kept rule over the lines is a part of the table's workflow Learned line rules, on the Workflows tab of Workspace Settings.
No declines the rule, and Finpilo does not ask about it again. If you set the same value on invoices the rule does not cover, those make a rule of their own. A different value never brings a declined rule back. A declined rule from one invoice comes back as a new rule when the next invoice is corrected the same way.
Where rules wait
- On the invoice: the Suggestions tab shows the rules the invoice's corrections taught, with a count.
- On the entity: Entity Management › an entity › Suggestions lists every rule still waiting. Click one to open its invoice on the Suggestions tab, where you answer it. The answered ones are listed below them.
- Answered: on the invoice's Suggestions tab and the entity's, below the open rules, each answered rule stays listed with who answered it and when. Finpilo, automatic means the Apply choice kept it.
Choose how an entity uses learned rules
On an entity's General tab, Learned Rules has four choices:
- Ask on the Suggestions tab (the default): each rule waits on the Suggestions tab until someone answers it.
- Ask on the Suggestions tab and right after sending feedback: the rules your corrections taught also open in a window right after you send them.
- Apply: Finpilo keeps each rule on its own, within minutes, once two invoices have taught it. A rule from one invoice waits for your When. A rule that needs your choice (two rules that fit, or a field to name) still waits for you. So does a card about a workflow.
- Off: Finpilo offers nothing and keeps nothing. The Suggestions tabs are hidden.
Click Save in the bar at the bottom to keep the choice.
Answering rules and changing Learned Rules needs the right to edit fields (the Admin or Owner role by default). Anyone who can see the invoice can see its rules.
Your AI assistant can list the rules waiting and answer them for you, with the condition for which invoices.