Skip to main content
Post

Build a WooCommerce Spare Parts Finder by Model Number

Quickchat published a step-by-step tutorial for building a WooCommerce spare parts finder with a Quickchat AI Agent. A shopper gives their model number, and the assistant returns a compatible, in-stock product link.

The setup starts in WooCommerce. You create a global "Compatible model" product attribute, assign its terms to each part, and publish the products. The tutorial uses four fictional printer-tray products for this. Then you check the Store API directly with a filtered query on that attribute and stock status. The assistant searches this merchant-maintained data and doesn't guess from product titles. The sample dust cover has "PX-100" in its name but no compatibility record, so it shouldn't come back for a PX-100 search. A grey tray that's out of stock is another deliberate test.

In Quickchat, you add a read-only API Action that takes one required parameter, the confirmed model's term slug, and sends it to the store's products endpoint. The Agent asks for the model first. It looks up matching parts, checks availability again, and only then gives a link. The tutorial finishes with tests for cases where it should decline to recommend anything.

There's a downloadable starter kit with the sample products, both Action recipes, the Main Prompt, and test questions. These are setup files to edit, not an automatic Agent import. The store's Store API has to be reachable over public HTTPS, so a password wall or localhost won't work. AI replies and Simulation Testing use Quickchat credits.

Loading replies