Procurement Spend Analysis: How to Do It with AI
Learn how to run a procurement spend analysis with AI: clean vendor data, categorize spend, find savings, and check the results. Includes prompts.
For Managers and Procurement

What is procurement spend analysis?
Procurement spend analysis is the process of collecting what your company pays suppliers, cleaning that data, sorting it into categories, and looking for patterns that point to savings, risk, or waste. The output answers questions like: how much do we spend with each supplier, in which categories, who buys outside contracts, and where are we paying different prices for the same thing? AI helps most with the slowest part: cleaning messy supplier names and categorizing thousands of transaction lines.
TL;DR
- A spend analysis is only as good as its data, so most of the work is cleaning and categorizing, not charting.
- AI is strong at grouping supplier name variations and assigning categories from short text descriptions, which used to take days of manual lookup.
- Give AI the unique list of suppliers and descriptions, not the whole ledger, then apply its answers back to the full data with a spreadsheet lookup.
- Do the arithmetic in your spreadsheet or BI tool, not in a chat window. AI is unreliable at summing large columns.
- Always spot-check a sample and review low-confidence rows by hand before you show results to anyone.
- Check your company's data policy before pasting supplier or pricing data into any AI tool.
What do you need before you start?
Pick the question first. "Analyze our spend" is too broad to finish. Better framings:
- Where could we consolidate suppliers in the next 12 months?
- How much spend is going outside contract (often called maverick or off-contract spend)?
- What does our tail spend look like (the long list of small suppliers that add up)?
- Are we paying different prices to different suppliers, or different prices to the same supplier, for the same item?
Then gather the data. Most analyses draw from several of these:
| Source | What it tells you | Common problem |
|---|---|---|
| Accounts payable (AP) invoices | What you actually paid and to whom | Supplier names typed differently over the years |
| Purchase orders (POs) | What was ordered, quantities, agreed prices | Not all spend has a PO |
| Corporate card and expense data | Small, scattered purchases | Vague descriptions, merchant names instead of supplier names |
| Contract list | What should be bought from whom | Often out of date or in PDFs |
| Supplier master file | Official supplier records | Duplicates and inactive records |
Aim for 12 months of data, ideally more if your spend is seasonal. Pull the fields you need: supplier name, supplier ID if there is one, invoice or PO date, amount, currency, description or line item text, business unit or cost center, GL account, and PO number if present.
How do you do a procurement spend analysis with AI?
Here are seven steps. Steps 3 to 5 are where AI saves the most time.
1. Write down the question and the output
Decide what the final deliverable is: a one-page summary, a list of ten consolidation targets, a savings hypothesis by category. This stops you from cleaning data you will never use.
2. Combine and standardize the raw data
Put all sources into one table in a spreadsheet or database. Standardize dates, convert currencies to one reporting currency (using a stated rate and date, and write it down), and remove obvious non-spend such as internal transfers, tax payments, and payroll if they sneak in. Keep an original row ID so you can trace anything back to its source.
AI can help write the formulas or the cleanup steps if you describe your columns. It should not do the combining by reading rows in a chat.
3. Normalize supplier names
This is the classic mess. "IBM", "I.B.M. Corp", "International Business Machines" and "IBM UK Ltd" are one parent company in four forms. Until you group them, your top-supplier list is wrong.
Export the unique supplier names with their total spend (a pivot table does this). Sort by spend, descending. Then paste batches of names into AI with this prompt:
You are helping clean procurement data. Below is a list of supplier names
exactly as they appear in our payables system, one per line, with an ID number.
Task: group names that refer to the same company. For each group, give:
- group_id
- standard_name (the clearest, most official version of the name)
- member IDs
- confidence (high, medium, low)
- a one-line reason for any medium or low confidence
Rules:
- Only group names when you are reasonably sure they are the same legal
entity or the same parent company. If unsure, keep them separate and
mark confidence low.
- Do not invent companies. If a name is unrecognizable, label it "unknown".
- Do not merge different companies that share a word (for example two
unrelated "Global Services" companies).
- Output as a table.
Names:
[paste ID, name]
What to check: low and medium confidence rows (review all of them), any group that merges something surprising, and the top 50 suppliers by spend regardless of confidence. A wrong merge among your biggest suppliers distorts everything downstream.
Parent versus subsidiary is a judgment call. Decide up front whether you roll subsidiaries up to a parent, and tell the AI which you want.
4. Define your category scheme, then categorize
You need a taxonomy: a list of categories to sort spend into. Options:
- Your own category list. Usually 20 to 60 categories your category managers recognize (IT software, marketing agencies, facilities, logistics, professional services, and so on). Best for internal use.
- A standard scheme such as UNSPSC. A widely used classification with several levels of detail. Useful if you need to compare across systems or with suppliers, but heavy for a first pass.
- Your GL account codes. Easy, but often too coarse or inconsistently used.
Start with a two-level list: a broad category and a subcategory. Write it in a column, with a one-line definition for each, because definitions are what keep AI from drifting.
Then categorize at the supplier level first, since many suppliers belong to one category. Paste the normalized supplier list plus a sample description or two:
You are categorizing company spend for procurement analysis.
Here is our category list, with definitions:
[paste category, subcategory, definition]
For each supplier below, I give you the standard name, total annual spend,
and up to 3 sample invoice descriptions. Assign:
- category and subcategory (use ONLY the ones in my list)
- confidence (high, medium, low)
- needs_line_level_review (yes/no): yes if this supplier probably sells
across several categories (for example a large distributor or an
office-supply retailer)
If you cannot tell from the information given, use "Unclassified" rather
than guessing. Output as a table with one row per supplier.
Suppliers:
[paste]
Suppliers that sell many types of things (distributors, big-box retailers, consulting firms) need line-level categorization using the invoice or PO descriptions. Run those lines through a similar prompt, with the description text as the main input and the category list unchanged.
5. Apply the results back to the full dataset
Take the AI's mapping table (supplier to standard name and category) and attach it to your full transaction data with a lookup function (XLOOKUP, VLOOKUP, or a join in your BI tool). This is the step that keeps AI away from your totals. The model decided which category a supplier belongs to. Your spreadsheet adds up the money.
If you fed AI only a few thousand unique suppliers instead of hundreds of thousands of invoice lines, this also keeps cost and privacy exposure down.
6. Validate before you analyze
Do these checks every time:
- Totals reconcile. Total spend after cleaning should match the source system totals, minus the exclusions you wrote down.
- Unclassified share. Find what percent of spend sits in "Unclassified" or "unknown". Work it down for the largest items first.
- Random sample. Pull around 50 random rows, weighted toward larger amounts, and have someone who knows the business check the category by eye. Track how many are wrong. If the error rate is high in one category, fix the definition and rerun that slice.
- Category owner review. Send each category manager their list of top suppliers. People spot errors in their own area in seconds.
7. Analyze and turn it into decisions
Now the charts are worth making. The most useful cuts:
| Analysis | How to do it | What it can reveal |
|---|---|---|
| Spend by category and supplier (Pareto) | Rank suppliers by spend and see how few account for most of it | Where negotiation effort pays off |
| Tail spend | Count suppliers per category below a spend threshold you choose | Fragmentation, consolidation candidates |
| Supplier overlap | Find categories with many suppliers | Duplicate vendors doing the same job |
| Price variance | Compare unit prices for the same item across suppliers or over time | Pricing leakage, missed discounts |
| Off-contract spend | Compare spend with suppliers against your contract list | Buying outside agreed terms |
| PO coverage | Spend with a PO versus without | Control gaps |
| Duplicate payments | Same supplier, amount and date or invoice number | Recoverable errors |
| Payment terms | Terms by supplier | Cash flow improvement |
| Trend by month or quarter | Spend over time per category | Growth, seasonality, surprises |
AI is useful here as an analyst's assistant. Give it a summary table (not raw data), and ask for hypotheses:
Below is a summary table of our annual spend by category and supplier
count, with the top 5 suppliers in each category and their share of that
category's spend.
1. Identify the five categories that look most fragmented and explain why.
2. For each, suggest two questions a category manager should investigate
before deciding on consolidation (for example, differences in
specification, geography, or contract end dates).
3. List any numbers in the table that look odd or inconsistent.
Do not calculate new totals. Use only the numbers I gave you, and say
"not in the data" if something cannot be answered from the table.
[paste table]
Treat the answers as a list of things to investigate, not findings. "Fragmented" can mean waste, or it can mean five suppliers in five countries for good reasons.
Where should you not trust AI in spend analysis?
- Math. Language models can get sums, percentages and averages wrong, especially across long lists. Use spreadsheet formulas or a BI tool for every number you present.
- Confident guesses. AI will often assign a category to a vague supplier name like "ABC Solutions" because it must output something. Give it an explicit "Unclassified" option and treat low-confidence rows as questions for a human.
- Unknown or local suppliers. For small regional companies the model may know nothing, and may sound sure anyway. Look at the invoice text or the supplier's website.
- Legal and ownership facts. Do not rely on AI to tell you which companies are subsidiaries of which parent, or whether a supplier is a related party. Verify in a company database or with the supplier.
- Savings numbers. Any dollar figure for "potential savings" should come from your own price data and negotiation experience, not from a model's general sense of what is typical.
- Confidential data. Supplier names, prices and contract terms are commercially sensitive. Use only an AI tool your company has approved, and ask your IT or security team if you are unsure. Strip anything you do not need (for example, bank details and personal data) before pasting.
What mistakes break a spend analysis?
- Skipping the question. You get a lovely dashboard that supports no decision.
- Mixing spend and commitments. Invoices paid, POs issued and contract values are different numbers. Label which one each chart uses.
- Changing the category list midway. If you edit categories after categorizing, rerun the mapping. Otherwise the same supplier gets two treatments.
- Ignoring currency and tax. Compare spend in one currency and decide whether tax is in or out. Be consistent.
- Treating one run as final. The first pass is typically good but not clean. Plan a second pass focused on the biggest unclassified items.
- No audit trail. Keep the mapping table, the prompts and the model used, with the date. When someone asks why a supplier sits in a category, you need an answer.
How often should you repeat it?
A one-time analysis goes stale quickly. New suppliers appear, people buy off-contract again, and prices shift. Many teams refresh quarterly, or monthly for the largest categories. The good news is that the mapping table you built is reusable: next time, only new suppliers and new descriptions need AI categorization, and everything else is a lookup.
Can you build your own spend analysis tool instead of repeating this in spreadsheets?
If you refresh this analysis regularly, a small internal app can replace the spreadsheet routine. With Remy, you describe in plain English what you want: a place to upload the monthly AP export, a supplier mapping table that remembers past decisions, a review queue for low-confidence categories, and a dashboard showing category spend, tail spend and off-contract purchases. Remy builds it as a full-stack app with a database and sign-in with role-based access, so category managers can review only their own area. Check your company's policies on software and data first.
Frequently Asked Questions
What is the difference between spend analysis and spend visibility?
Spend visibility means being able to see what the company spends and where. Spend analysis goes further: it cleans and categorizes the data, then looks for savings, risk and control problems. Visibility is the starting point and analysis is the work you do with it.
Can ChatGPT or another chatbot do a spend analysis?
It can do the language-heavy parts well: grouping supplier names, assigning categories, and drafting hypotheses from a summary table. It should not be your calculator or your source of truth. Do the totals in a spreadsheet or BI tool, and review the AI's categorization before you rely on it.
How accurate is AI at categorizing spend?
It depends on how clear your supplier names and descriptions are, and how well your categories are defined. Clear, well-known suppliers tend to go well. Vague names and mixed-goods suppliers do not. Measure it yourself by checking a random sample, and fix the weak categories before you scale up.
How much data do I need?
Twelve months of invoice or PO data is a common starting point, because it covers seasonal patterns. More history helps with trends. Start with the largest business unit or the biggest spend categories if the full dataset is too messy, and expand once the process works.
What is tail spend, and why does it matter?
Tail spend is the large number of small suppliers that together make up a modest share of total spend but consume a lot of effort. It matters because it often hides duplicate suppliers, off-contract buying and unmanaged risk. The usual response is consolidating to preferred suppliers or moving small purchases to a catalog.
Useful for
How we source, write, and correct our articles. Editorial standards
Related articles

Compare UPS vs FedEx Rates and Write Shipping Docs with AI

Three-Way Match: How to Do It, Step by Step

Vendor Evaluation Template: A Software Scorecard You Can Copy
