ProjectsSoftware & AI

Supplier Catalogue Automation

Turns a furniture supplier's price list, swatch card and website into a retailer's six import sheets, web-ready photos and swatch images, with an assistant the team can ask and a Drive workspace that re-prices itself.

Result
85–90% automated · 197 tests
Context
Technical assessment for a London furniture retailer’s e-commerce team · solo build · source on GitHub
Year
2026
Area
Software & AI
Code
Source on GitHub ↗

01The problem

Listing one supplier product means finding it in a 373-page price list, typing a price for every size and fabric, chasing swatch images the supplier never publishes, and cropping photos by hand. One bed is 2,340 price rows, so a single catalogue update runs into days and a wrong cell is invisible.

02What I did

Built a Python pipeline that reads the supplier's own files and produces everything the website needs. A 373-page PDF price list is read from the position of each word on the page, so the 70 prices printed for one bed become 2,340 rows across 5 sizes and 356 colours, taken from the supplier's public finishes catalogue. A modular sofa is priced from its spreadsheet by adding up the modules in each layout, and mirrored layouts are checked to cost the same. Photos are taken from the supplier's site at full resolution and re-saved with the supplier's own JPEG settings, so zooming shows the same detail as the original; each one is measured against its source and the figure goes in the report. Where a supplier publishes no swatches, the tool reuses the images the retailer already hosts, matched on colour code, and lists the ones still missing instead of guessing. Descriptions are written by NVIDIA Nemotron from the supplier's own text and checked before use, and prices never come from the model. Nothing missing is ever invented: every gap becomes a line in a report. Around the pipeline sits a Google Drive workspace, where price lists live in a folder per supplier and products are rows in a sheet: a new catalogue is picked up by its file name, each run compares every price with the last and writes only the rows that changed, and results are saved back to Drive by date. A React page on FastAPI lets anyone ask the assistant a question or start a re-run; it answers only from the run results, and every figure in an answer must appear in the data it looked up, or the answer is replaced. A re-run is only ever proposed: nothing runs until someone presses Confirm.

03Reading a price list that was drawn, not typed

The supplier's price list is a 373-page PDF of tables, and a table is only a picture of one: there are no cells to read, just words at coordinates. So the parser works the way a person's eye does. It finds the product by its title, then uses the row of "EUR" labels to work out where the price columns are and the labels down the left to work out which band of rows belongs to which option. European numbers ("4.121" means 4,121), sizes like "ø140x73,5h" and pages holding two products are all handled. With no product-specific code it reads 426 of the list's 543 products.

That gets the 70 prices printed for one bed. The 2,340 rows come from joining them to the colours: each price column covers a group of fabrics or leathers, and the groups are filled from the supplier's own public finishes catalogue, 356 covers across 13 material groups. Every row is a real printed price, never an interpolation, and a second pass with its own separate code re-read all 2,340 from the PDF to prove it.

04Images that survive the zoom

Furniture is bought by looking closely, so a re-saved photo that looks fine at thumbnail size and soft at 400% is a real defect. The rule became: every pixel on the website is a pixel from the supplier, at its original resolution. Nothing is resampled. Room shots are cropped square and cut-outs are trimmed and padded with white, with crops aligned to JPEG's own 8-pixel block grid so the re-save barely touches the data. Each file is written back with the source's own quantisation tables, colour profile and full colour detail.

Then it is measured: each image is compared with its source and the figure recorded. All of them land between 56 and 65 dB, where 40 dB is already the point at which a difference can't be seen. Anything below that is flagged rather than published, and the untouched originals are kept next to the processed ones.

05The parts a person still has to do

The useful question in automation is not how much it does, but where it stops. This one stops in public. A run writes a report listing every source it used, file, page and URL, and every judgement it refused to make: the combinations the supplier doesn't price, the swatch images that don't exist yet, two sizes that are indistinguishable without a measurement that is drawn rather than printed, and a category code that was inferred.

The honesty extends to the AI step. Descriptions are written from the supplier's own text and rejected if they are too long, mention a price or aren't valid JSON, and the supplier's text is used instead. The one case worth remembering: an early run described a bed as "sculptural", a word no supplier document contains. It was caught by reading, which is why the copy is still marked for a human read on every run.

06From a script to something a team can use

A command-line tool only helps the person who has the files. So the price lists moved into a shared Drive folder, one per supplier, and the products became rows in a sheet. A new catalogue is picked up by its file name, so next year's list needs no change anywhere. Each run copies down only what changed, prices every product, compares every price with the previous run and writes a file of just the rows that moved, then saves the results back to Drive under the date, replacing files that changed and leaving the rest alone.

On top sits a page where anyone can ask: what does this size cost in that leather, what still needs checking, what changed. The assistant answers only from the run results, and a guard rejects any answer containing a figure that isn't in the data it looked up. Asking it to re-price something produces a proposal, not a run; nothing happens until a person presses Confirm.

07The outcome

Three products run end to end: 2,340, 768 and 560 price rows, 16 photos and 632 swatch images, all six sheets filled. Checked against the supplier documents by a second, independent pass, every price matches the printed page cell by cell. Rebuilding a product the retailer had already listed by hand matched its sizes and its live price, and turned up 41 colours still on sale that the supplier no longer makes. 197 tests run on every push.

08Tools & skills

  • Python
  • PDF Data Extraction
  • Image Processing
  • Web Scraping & APIs
  • LLM Integration
  • LLM Output Validation
  • Product Data Management
  • Google Drive API
  • Google Sheets API
  • FastAPI
  • React
  • TypeScript
  • Authentication
  • Workflow Automation
  • Testing & Verification
  • CI/CD (GitHub Actions)
  • Git
Prateek Sahni

Thanks for reading. Want to talk?

Hiring?

I'm open to new roles across engineering, software and AI. I'm happy to walk you through this project in more detail, or send my CV.

Book a 30-minute call Request my CV

Need something like this built?

Tell me what you're working on in a few lines. No brief or deck needed, and you'll get an honest answer on whether I'm the right person for it.

Tell me about itMessage me on LinkedIn