Matching ingredients
Once the AI has extracted data from an invoice, the next step is ingredient matching - linking each line item on the invoice to an ingredient in your Brikly system. This is how invoice prices flow through to your recipes and dish costings.
Automatic ingredient matching
Brikly compares every extracted line item against your existing ingredient list. It looks at, in this order:
- Previous matches - whether you have matched this description from this supplier before.
- Product code - a code this supplier already sells you under one of your ingredients wins, whatever the name says.
- Product name similarity - how closely the invoice description matches an ingredient's name, another name it is known by, or the name a supplier sells it under.
- Supplier history - once the invoice's supplier is confirmed, a match on the name alone is only made to an ingredient that supplier already sells you, so a new supplier never quietly takes on another supplier's ingredient.
When one ingredient clearly stands out, Brikly links the line item to it automatically and records the invoice's price straight away. Only the ingredients in your active list are candidates: an archived ingredient, one merged into another, or a sample ingredient is never matched automatically. If the line belongs to an archived ingredient, restore it first.
If you run more than one site
An ingredient set up for one site is never matched automatically to an invoice that belongs to a different site, so one site's delivery does not change the price of an ingredient only another site uses. Ingredients shared across all your sites are matched for every site as usual, and an invoice with no site yet, or one marked Shared across sites, is matched against all your ingredients.
A line left unmatched for this reason waits for you like any other. You can still match it to the other site's ingredient yourself, and with automatic adding switched on Brikly adds it as an ingredient for the invoice's own site. The same applies to consumables. See Which site an invoice belongs to for how an invoice gets its site.
When the product code differs
If a line's product code differs from the code you buy the ingredient its name resembles under from this supplier, Brikly does not match it. Suppliers often sell close variants under separate codes, and filing one under the other would mix their prices. The line is left for you with a Different product code badge, and the ingredient is offered as a one-click choice under Similar name, different product code: pick it if it is the same item, or create the line as a new one. Automatic adding leaves the line alone too, even when the tidied name is the same.
When two items match equally well
If two or more of your ingredients match a line equally well (on the name, on a description you have matched to different items before, or on a product code you buy under two items), Brikly does not pick one for you. The line is left with a Several possible matches badge, and under Which item is this? each item is shown as a one-click choice. Brikly will not add the line automatically either: pick one of the items, or create a new one yourself.
Where the line waits because you have matched that description to different items before, Brikly learns from what you keep choosing. Pick the same item on three invoices in a row from that supplier and Brikly stops asking: the next invoice matches that item on its own. Two lines on one invoice count once, and only matches you make yourself count. If you later pick the other item for that description, the line waits for your choice again until one item has been picked three invoices running.
Brikly keeps asking, however often you pick the same item, in three cases:
- Supermarket suppliers - a short receipt description such as "MILK" can be a different product from one week to the next.
- Different pack sizes - the two items were matched at different sizes, for example a 1 kg bag and a 350 g retail bag sold under one description. Lines that print the size are still matched to the right item on their own.
- Site-specific items - either item is set up for one site rather than shared across all your sites. An invoice for a site only looks at that site's items and the shared ones, so where it can see just one of the two it matches that one without asking.
The same applies to consumables.
If the two items are really the same product, archive or merge the duplicate. Its lines then match the item you kept straight away.
Confidence levels
A matched line shows the item it is matched to, with a confidence badge beside it. The same badge appears beside each suggestion when you match a line yourself:
| Badge | Colour | Score |
|---|---|---|
| High | Green | 85% and above |
| Medium | Amber | 50% to 84% |
| Low | Red | Below 50% |
The badge shows the score too, for example High 92%.
There is nothing to accept on a line Brikly matched by itself: it is matched, and its price recorded, as soon as the invoice is read. The badge tells you which matches are worth a second look. Lines Brikly could not match wait for you, marked Needs review or with a badge saying why.
Reviewing auto-matched items
Each matched line shows the invoice description, then the item it is matched to (click the name to see the item's details without leaving the invoice). If the match is right, there is nothing to do. If it is wrong:
- Undo - removes the match, and the Match cleared message says what was tidied up. Undo also takes back what the match taught: if you matched the line by hand, that choice is forgotten; if Brikly matched it automatically, the rule that did it loses one vote, and a rule used only once is removed. Where more than one rule could have matched the line, Brikly leaves them all as they are. To choose a different ingredient, undo the match and then match the line again.
What unmatching does to the price
Unmatching a line, matching it to a different item, or changing its description, brand or product code takes back the price that line recorded. Its price point comes off the item, and where the line set the supplier's current price, that price goes back to what it was before this invoice. If the line created that supplier entry, the price goes back to the newest invoice price still on file for the same pack, where there is one. However many times the line changed the price, it goes back to the price before the first change.
A newer price that still stands is left alone: a later invoice at the current price, another matched line at that price, or a price you typed since. Another line's price is never removed. The confirmation says when a supplier price was put back.
The size you confirmed on the line is kept, and so is a price you corrected on it, read the same way. Matching the line again records its price straight away, without asking for the size again.
Matched line items also carry an Adds to stock toggle, on by default. Switch it off for a purchase that should not enter your stock levels - a case of the soft drinks you sell, bought for the staff fridge - while keeping its price history and accounting treatment. Skipped lines never touch stock either way. See How estimates work in the StockBrik docs.
Manually matching unmatched items
When no automatic match is found, the line item stays unmatched. To match it yourself:
- Click Match on the line to open Match to existing ingredient.
- Brikly's Suggested matches are at the top, each with its confidence badge, a Learned badge where you have matched this description before, and the reason it was suggested. Click Match beside one to use it.
- Otherwise, type part of the ingredient's name, category or brand in the search box, select the ingredient, and click Match ingredient.
Match stays greyed out until the line has its quantity, sizes and unit, the supplier is confirmed, and any size suggestion on the line has been picked. Hover over it to see which one is missing.
Suggestions show each item under the name you gave it in your library, not the supplier's wording, so a renamed item is easy to spot. The same goes for the one-click choices on a line.
If this supplier has not sold you that ingredient before, the match is not finished yet: Brikly asks you to check the supplier's pack first, and the line shows Waiting for you to check this new supplier until you do. See New supplier verification.
Use the supplier's description as a clue. For example, if the invoice says "Beef Fillet 28 Day Aged 2.5kg", search for "beef fillet" in your ingredients.
The ingredient search always lists your current ingredients: one you added a moment ago is there, and one you have archived is not. Should an archived item be chosen anyway (for example from a page left open since before it was archived), nothing is matched and Brikly shows Not matched with the reason: "That ingredient has been archived, so it cannot hold your invoice prices. Pick another one, or restore it from the Ingredients page first." A consumable gets the same answer, pointing you to the Consumables page.
The sample ingredients and consumables from guided setup are never offered for matching, and Brikly never matches an invoice line to one by itself. Should one be chosen anyway, nothing is matched and Brikly says why: "That's a sample item, so it can't hold your invoice prices. Pick one of your own items, or clear the sample data from the Recipes page." See Clearing the sample.
New product, or one you already buy?
If you match a line to an ingredient that the supplier already sells you under a different product code, Brikly asks before recording it. The card on the line tells you which ingredient you matched it to and lists what that supplier already sells you as that ingredient, so you can choose:
- Same as existing - it is one of the products listed (for example the code was misread on the scan, or the supplier changed it). The price is recorded against that product, and any other line bought under the new entry, on this invoice or another, moves with it. A line whose size differs asks you to confirm its size first. If you typed a price for the new entry, recorded its ingredients list or declared its allergens, or it is more than 30 days old, Brikly asks you to review it on the ingredient page instead. Brikly also merges nothing, and names the invoice, if a line it would move is on a finished invoice and would be left waiting for its price there, or if a line's price updates are switched off, since its recorded price would be dropped. Keep the product separate, or check that line first. If someone is changing one of those lines at the same moment, try again in a moment.
- New product - it is a different pack or size of the same ingredient. Check the pack details Brikly read from the invoice and click Record new product. The new product starts with no allergens declared, and recipes combine the allergens of every product you buy, so until it's declared they show allergens as not fully known. When another product of the ingredient is declared, the line asks whether it's the same (see how).
Choosing Same as existing asks which product it is; pick it and click Attach to product. Each product is listed with its code beside its name. If the supplier sells one of them under this line's name at a similar price, the card opens on Same as existing with that product picked and says "Same name and a similar price as this line"; check the code before you attach it. When the product you pick has a different code from the line, the card asks Why is the code different?: Misread or crossed out keeps the product's code, and Example Foods changed it moves the product to the new code so the next invoice finds it (see When the new code is a misread). When its pack size differs from the line's, the card asks Why is the size different?: Misread on the invoice keeps the product's size, and Example Foods changed the pack size gives the product the invoice's size and price from now on, keeping your earlier prices as they were. If the ingredient has been archived, or is a sample item, neither choice is recorded: Brikly shows Not matched and says why, so you can restore the ingredient or pick one of your own.
When the new product is sold by the item, Brikly suggests how much one item weighs (or holds), taken from the other products that supplier sells you as that ingredient, or failing that from the ingredient itself. It fills the size in only when those products agree, and says where it came from, for example "Same as Large Eggs x180 (55g)". Change it if this one is a different size. If they disagree, nothing is filled in and each size is offered as a button to pick. A size read from the invoice always comes first.
If the ingredient is costed by weight or volume and the new product is sold by the item, Brikly asks roughly how many grams (or millilitres) one item is, so recipes using the ingredient keep an accurate cost. Sizes you already have are offered as buttons to pick, but never filled in for you, because this answer sets the cost per gram.
If the match itself was wrong - say you matched Micro Coriander to Coriander - use Wrong ingredient? at the bottom of the card. Match a different item clears the match and opens the ingredient search, and Make it its own item clears it and opens Create. A match waiting on this card has taught Brikly nothing yet, so the wrong one is not repeated on the next invoice. While the card is waiting for your answer, the line's usual Match and Create buttons are hidden so there is one clear next step.
When a product code was misread
When a line's product code looks like a scan misread of a code you already stock from that supplier, Brikly matches it to that product and says so on the line, for example "Code read as S47200, matched to the SKU you stock as 547200." If it really is a different product, click Undo on the note: the line is kept as its own product. Undoing the match on the line, or matching it to something else, removes the note.
Creating new ingredients from line items
If an invoice contains a product you have not added to Brikly yet, you can create a new ingredient directly from the invoice:
- Click Create on the unmatched line item to open Create new ingredient, with the invoice beside the form.
- Brikly pre-fills the name, unit, and price from the extracted data. If it looks like something you already track, a Potential match found card asks first: Match to existing or Create new.
- Review and adjust the details as needed (e.g. assign a category, set a preferred unit).
- Save the new ingredient - it is automatically matched to the line item.
This keeps your ingredient list growing naturally as you process invoices, without needing to maintain it separately.
If the invoice's supplier has been archived, Brikly names it and asks you to restore it from Suppliers or change the invoice's supplier first, for example "The supplier on this invoice, Example Foods, is archived. Restore it from Suppliers or change the invoice's supplier, then try again." A supplier merged into another cannot be restored: change the invoice's supplier instead. The same applies to creating a consumable from a line.
How manual matches improve future accuracy
Every match you make - whether choosing a suggestion or searching for the ingredient yourself - teaches Brikly's learning engine. The next time the same supplier sends an invoice with the same product description, the system will remember your choice and match it automatically. A match that is waiting on a new supplier check, or on your answer to New product or Same as existing, teaches nothing until you finish it.
Over the first few invoices from a supplier, you may need to match items by hand. After that, the system takes over. This progression is covered in detail in The learning system.
Matches are supplier-specific. If two different suppliers both sell "Semi-Skimmed Milk" but you track them as separate ingredients (e.g. different pack sizes), Brikly remembers the correct match for each supplier independently.
Matching consumables
Not every line item on an invoice is a food ingredient. Items you use up but do not cook with, like packaging, cleaning products, and disposables, can be matched to consumables instead. Reusable kit is handled differently again, see Equipment lines below.
How consumable matching works
When a line item is identified as a consumable, you will see two options:
- Match consumable - search your existing consumable library for a match.
- Create consumable - create a new consumable directly from the line item data.
Both buttons stay greyed out until the supplier has been confirmed for the invoice.
Matching to an existing consumable
- Click Match consumable on the unmatched line item.
- Match to existing consumable opens, with the search box filled in from the line's description and your matching consumables listed below it.
- Suggested matches appear above the list, each with the same High, Medium or Low confidence badge as ingredient suggestions, and a Learned badge where Brikly has matched this wording before. Click Match beside one to use it.
- Otherwise, change the search, select the correct consumable and click Match consumable.
Unmatching a consumable line, re-matching it to a different consumable, or changing its description, brand or product code releases the old consumable first. The price point this line recorded against that consumable is removed, and where the line set its supplier price, that price is put back to what it was before this line priced it, so correcting a mis-match does not leave a price behind on the wrong item. A newer price that still stands is left alone. After a re-match, the confirmation names the consumable it was put back on. The change is listed under Supplier history on that consumable as Price put back (line unmatched), or Price put back (line matched elsewhere) after a re-match.
When the product code does not match
Suppliers often sell close siblings under separate codes: paper straws in two diameters, the same cup in two colours, a napkin in white and in kraft. Where a consumable line's description looks like a consumable you already buy from that supplier, but the product code on the line differs from the code saved against that supplier, Brikly leaves the line for you instead of matching it. It is held for review with a Different product code badge rather than the generic one, so you can see why it stopped. The same check runs when you switch a line to Consumable yourself with the three-way switch described under Correcting the classification, so a line whose code disagrees is left for review with that badge straight away rather than matched to the lookalike.
This is worth the extra step because a consumable keeps one record per supplier. Matching the line onto the lookalike would overwrite that record's pack details and cost rather than adding a second one, so a case price could land on a single-pack record with nothing on the page looking wrong. Use Match consumable if it really is the same item, or Create consumable if it is a different product.
Consumable lines carry no one-click suggestion chips, so matching is always through those two buttons.
Creating a new consumable from a line item
If the consumable does not exist in your library:
- Click Create consumable on the unmatched line item.
- Brikly pre-fills the name from the invoice line description.
- Set the base unit - a list of ways to count the item (each, unit, pack, roll, box, bag, bottle, sheet, pair), defaulting to "each".
- Select a category if you want one (you can create a new category inline by typing a name that does not exist yet).
- Enter How many items does this price buy?: the total number of individual items the invoice price pays for. Brikly suggests it from the line and shows the Cost per item as you change it. There is one count, so for a case of four packs of 50, enter 200.
- Click Create consumable - the consumable is created and automatically matched to the line item.
This supplier becomes the preferred supplier for the new consumable.
The same learning system applies to consumable matches. After you match "8OZ T/A CUP x1000" to your "8oz takeaway cup" once, Brikly remembers and matches it automatically on future invoices. Where the match first needs the new supplier checked, Brikly learns it when you verify the supplier, not when you choose the consumable, as it does for ingredients.
Equipment lines
Some non-food lines are not consumables either. A pair of scissors, a set of tongs, a mop bucket, a pan, a chopping board: you buy them once and keep them, so they are never used up and never belong in a recipe. Brikly classifies these as Equipment.
An equipment line is set aside for you while the invoice is processed, and shows an Equipment (not stock) label. There is nothing to match, so no match or create buttons appear on it. The line stays on the invoice and goes across to your accounting platform with everything else, so it still needs an account code, but it never records a price, never joins your ingredient or consumable library, and never touches stock.
This is what makes a mixed order painless. A catering-supplies delivery with a case of cloths, a box of gloves, and one mop bucket needs no special handling: the cloths and gloves match as consumables, the mop bucket is set aside on its own line, and the invoice submits as normal.
Correcting the classification
Every line that is not yet matched or set aside carries a three-way switch: Ingredient, Consumable, Equipment. Use it whenever the AI has read a line wrongly.
- Switch a line to Equipment and Brikly sets it aside for you. If the line is holding a match that is still waiting on a supplier check or on your New product or Same as existing answer, use Skip on the row to finish setting it aside. Skip lets go of the ingredient or consumable it was waiting on, so nothing is priced or learned from it.
- Switch an unmatched line to Ingredient or Consumable and Brikly tries to match it straight away, against your active items only.
- To bring a set-aside line back, click Enable on it, then set the switch to Ingredient or Consumable and match or create it as usual.
A matched line has no switch. Use Undo to remove the match first, then switch it.
Refills are consumables, not equipment. Mop heads, cloths, gloves, bin liners, and disposable cutlery are all used up and reordered, so they belong in your consumable library where their cost can flow into a recipe.
Skipping a line
Skip sets a line aside: it stays on the invoice total and on the bill sent to your accounting platform, but it is not matched or costed. Brikly can remember a skip for next time:
- A product line (an ingredient or consumable) is remembered for that supplier only. The message says so, for example "Brikly will set aside 'Semi Skimmed Milk 2L' from Example Foods automatically from now on."
- A delivery or other charge is remembered for every supplier.
- An Equipment line teaches nothing, because its type already sets it aside. The message reads Skipped on this invoice only.
- Skip all remaining (above the line items) sets the lines aside on this invoice only. To teach Brikly to set a line aside next time, skip it on its own.
Enable on a skipped line, removing the line, or deleting its invoice makes Brikly forget what that skip taught, unless the same line is still skipped on another invoice. If the invoice was ready to submit, it waits again until the enabled line is matched or skipped. A completed invoice stays completed.
Remove is different: it takes the line off the invoice altogether, so it no longer counts towards the invoice total or the bill. You can restore it from the Removed section at the bottom of the invoice. If you only want the line kept out of matching, use Skip instead.
Best practices
- Process invoices promptly - the sooner you match items, the sooner the system learns.
- Be consistent - always match to the same ingredient for the same product. Inconsistent matching slows down the learning process.
- Glance at the auto-matches - a quick look catches the occasional mismatch. Prices are recorded as lines match, so undo a wrong match promptly: Undo takes its price back off the item.