Skip to main content

The learning system

AI-Enhanced Feature

The learning system is powered by Brikly's AI engine. It analyses your matching decisions and builds supplier-specific patterns to automate future invoice processing.

Brikly learns from a supplier whether or not you confirm anything. The first invoice from a supplier it has never seen is read, matched where Brikly recognises the product, and drafted as a new ingredient where it does not, and what it read is stored as a pattern either way.

So confirming does not switch the learning on. What it changes is how correct the learning is. When you confirm a line, Brikly stores the pack size, unit size and unit of measure that you confirmed against that supplier's wording for the product. When nobody confirms it, Brikly stores the AI's own raw reading of those same three fields. If that reading was wrong, the wrong version is what Brikly reuses on later invoices from that supplier.

Confirming is also the only thing that strengthens a pattern. Automatic matching reuses a pattern without reinforcing it, so a product nobody has ever confirmed stays on the first rung of the ladder below however many invoices arrive.

The four stages of learning​

The stages are keyed on confirmations, not on how many invoices you have uploaded. A confirmation is you settling a line yourself: matching it to one of your ingredients, correcting a match Brikly got wrong, or creating the ingredient from the line.

Patterns are held per supplier and per product description, so a supplier you buy forty different products from goes through these stages forty times over, one product at a time.

1. First confirmation​

Brikly stores a pattern: the supplier's wording, the ingredient you matched it to, and the pack size, unit size and unit of measure you confirmed. The pattern starts at 0.85 confidence and is in use from the very next invoice.

  • Your measurements win at the match. Brikly stores the pack size, unit size and unit of measure as they stood when you matched the line or created the ingredient from it, and puts those stored values in place of what the AI reads on later invoices, so a description the AI keeps misreading stops moving your costs around. It keeps the invoice's own reading where the line already says how it was billed, or carries a product code that supplier has not sold you that item under before, and it only swaps in a remembered pack count when the invoice price fits the pack you saved.
  • The supplier may still need confirming, or a new supplier record creating.
  • VAT is read from each invoice as it arrives: whether a line's price includes VAT is worked out for that line and checked against the invoice's totals, so there is nothing to set up for the supplier. If a line comes out wrong, correct it in the line's Edit form (Line total includes VAT and the VAT rate).
  • Products you have not confirmed yet are still matched or drafted from the AI's own reading, and they stay on the AI's reading until you match or correct one yourself.

2. Second confirmation​

Confirming the same product again takes its pattern to 0.90 confidence.

  • The line usually arrives matched, and a correct automatic match needs nothing from you. Looking it over is not a confirmation and leaves the pattern where it is. The pattern moves up when you settle one of the product's lines yourself, by matching it or correcting it.
  • It is still worth the check. This is the cheapest moment to catch a pack size that was wrong the first time.
tip

Early confirmations carry the most weight. Correcting a pack size on the second invoice, with Remember these measurements for future invoices ticked, keeps the wrong figure off the invoices sitting behind it: the correction is applied to that supplier's other invoices waiting to be reviewed whose price fits that pack, and lines on them that Brikly matched automatically on the old figure are flagged for a look. Without the tick, the corrected pack stays on that one invoice. A line whose price points to a different pack (a case rather than a single) is left as it is, and so is a line you matched yourself, a line whose size was already confirmed, and a line that already has its own size question open. Correcting it on the twentieth invoice means nineteen were costed on the wrong reading before you got there.

3. Third confirmation​

A third confirmation takes the pattern to 0.95 confidence.

  • Matching for that product is effectively settled.
  • Price changes on it are flagged against the price they replace, as they are at every stage.

4. Fourth confirmation and beyond​

From the fourth confirmation the pattern sits at 0.99 confidence, which is the ceiling.

  • Near-zero input for the products you have confirmed.
  • New products from the supplier still come to you, because they have no pattern yet.
  • Price updates go straight onto your costs, as they do at every stage, and only a significant move asks for a look.

Confidence progression​

ConfirmationsConfidenceWhat it asks of you
10.85Match the line, or create the ingredient from it, and set the pack size
20.90Check the match Brikly made, and correct it if it is wrong
30.95Nothing, unless the match or the pack size is wrong: then correct it
4 or more0.99Nothing, unless the product or the price has changed

A product Brikly matched on its own, that nobody has confirmed, stays at the first rung indefinitely. Automatic matches do not count as confirmations. That is why the first one or two invoices from a new supplier are worth going through by hand: everything you confirm there is what Brikly repeats on the rest.

Undoing a match takes a confirmation back: a match you made by hand is forgotten, and a rule that matched a line automatically loses one vote (a rule used only once is removed). Where more than one rule could have matched the line, Brikly leaves them all as they are. A match waiting on a new supplier check, or on your New product or Same as existing answer, teaches nothing until you finish it.

If two or more of your ingredients match a line equally well, Brikly does not pick one: the line waits for you with each item as a one-click choice, and nothing is added automatically. Where that is because you have matched the description to different items before, picking the same item on three invoices in a row from that supplier settles it, and Brikly matches that item from then on. See When two items match equally well.

How confidence builds​

Brikly learns a few different things from what you do on an invoice:

  • Description to ingredient - "CHICKEN BREAST 2KG" from Supplier A maps to your "Chicken Breast" ingredient, with the pack size, unit size and unit of measure you confirmed.
  • The supplier's name - when you confirm the supplier on an invoice, the name printed on it is remembered against that supplier. See Supplier matching.
  • How a product is billed - when you answer How was this line priced? and leave its remember box ticked, Brikly trusts that supplier's billing basis for the product. See Which unit did the supplier bill?.
  • Lines to set aside - a line you skip is set aside on that supplier's next invoices, and a skipped delivery or other charge on every supplier's. See Skipping a line.

Each confirmed match strengthens the first of these. What Brikly holds against a description is the pack size, unit size and unit of measure as they stood when the line was matched or the ingredient was created from it. A correction you make afterwards with Remember these measurements for future invoices ticked is applied to that supplier's other invoices waiting to be reviewed whose price fits that pack, and it flags the lines Brikly had matched automatically on the old figure, but the stored pattern itself keeps the earlier reading, so a description you have had to correct is worth a glance on the supplier's next invoice. Patterns are held per description, so when a supplier changes the wording they use for a product, confirming the new wording teaches it.

Managing patterns​

You do not need to manage the learning system directly - it works in the background. However, there are a few things you can do to keep it running smoothly:

  • Be consistent with matching - always match the same product description to the same ingredient. If you match "Semi Skimmed Milk 2L" to "Semi-Skimmed Milk" one day and "Milk (Semi-Skimmed)" the next, the system cannot build a reliable pattern.
  • Correct mistakes promptly - if you notice a wrong auto-match, fix it straight away. The system learns from corrections just as it learns from confirmations.
  • Merge duplicate ingredients - if the same product exists under two names in your ingredient list, merge them so the system has a single, clear target.

Deleting an invoice, reading it again with Re-extract, or changing it between an invoice and a credit note takes back only what that invoice's own matches taught Brikly. Lessons other invoices taught stay.

caution

Brikly never matches an invoice line to an archived ingredient, so the lines an archived ingredient would have taken wait for you instead. If you are replacing an ingredient with another, merge it into the replacement rather than archiving it: the merge moves what Brikly learned for it onto the ingredient you keep.

Resetting learning for a supplier​

In rare cases you may want to reset the learned patterns for a supplier - for example, if a supplier has completely changed their product range or invoice format. Contact support if you need to do this, and they can clear the matching history for a specific supplier.

The bigger picture​

The learning system is central to Brikly's promise: the lines you have already confirmed do the typing on the invoices that follow. The more of a supplier's products you have confirmed, the less of the next invoice from that supplier needs anything from you, and the more of what is left is the part that genuinely needs a person - a new product, or a price that has moved.

The practical consequence is worth acting on. When you take on a new supplier, or you have a backlog to bring in, put one or two of that supplier's invoices through and settle them yourself - match what Brikly could not, correct what it got wrong and check the pack sizes - before you upload the rest. You will do less work in total, and the numbers behind it will be right.