{"id":98,"date":"2026-10-17T14:15:44","date_gmt":"2026-10-17T14:15:44","guid":{"rendered":"http:\/\/plugin-docs.com\/?post_type=doc&#038;p=98"},"modified":"2026-10-17T17:28:02","modified_gmt":"2026-10-17T17:28:02","slug":"search-woocommerce-products-with-ai","status":"publish","type":"doc","link":"https:\/\/dragwyb.com\/docs\/search-woocommerce-products-with-ai\/","title":{"rendered":"Search WooCommerce Products with AI"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Use Dragwyb Click to Chat to help visitors discover published WooCommerce products through natural-language questions in the AI Assistant. When WooCommerce is active, the plugin can add live catalog context to product-related conversations, including product names, links, prices, availability, ratings, and descriptions. You can also enable the dedicated <strong>WooCommerce Product Search<\/strong> AI tool for tool-based product lookups.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Before you begin<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install and activate <strong>WooCommerce<\/strong> and confirm that your store has published products.<\/li>\n<li>Activate and configure the Dragwyb Click to Chat AI Assistant.<\/li>\n<li>Use a test product that has a clear name, description, price, and product page.<\/li>\n<li>If you want the assistant to use the dedicated product-search tool, check that the AI Business Tools setting and the WooCommerce Product Search tool are enabled.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How AI product search works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The plugin has two related product-discovery paths. First, when WooCommerce is active, the chat controller checks whether a visitor&#8217;s message appears to concern products, buying, prices, stock, recommendations, or the store catalog. For a matching message, it searches the published catalog and adds a small set of product details to the AI prompt. If the text search finds no products, the source can fall back to popular products when available.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Second, the AI Business Tools feature registers a <strong>Search Products<\/strong> tool that the model can call when the tool is enabled. This tool searches the same published WooCommerce catalog and returns matching product information. The two paths are related, but enabling the tool is not the same as activating WooCommerce itself.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Enable the WooCommerce Product Search tool<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In WordPress admin, open <strong>Click to Chat \u2192 AI Assistant<\/strong>.<\/li>\n<li>Choose <strong>Chatbot Settings<\/strong> and open the <strong>Advance<\/strong> tab.<\/li>\n<li>Find <strong>AI Business Tools &amp; Workflow Automation<\/strong> and enable it if your setup requires tool-based product lookup.<\/li>\n<li>In the available tool list, find <strong>WooCommerce Product Search<\/strong> and make sure its checkbox is selected. This option appears when WooCommerce is detected as active.<\/li>\n<li>Save the AI Assistant settings and wait for the save confirmation.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The source defaults enable AI business tools and include <code>search_products<\/code> in the enabled-tool list, but saved settings can differ. Check the controls in your installation rather than assuming the defaults are still in effect.<\/p>\n\n\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Screenshot to add:<\/strong> Replace the empty image above with a real screenshot of <strong>Click to Chat \u2192 AI Assistant \u2192 Chatbot Settings \u2192 Advance \u2192 AI Business Tools &amp; Workflow Automation<\/strong>. Show the WooCommerce Product Search checkbox, and hide API keys, private store details, and customer information. This is a placeholder, not a captured screenshot.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Test a product question<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open a front-end page where the AI Assistant is available.<\/li>\n<li>Ask a specific question that matches a published product, such as \u201cDo you have a blue hoodie?\u201d or \u201cShow me products under my budget.\u201d Use a product and price range that actually exist in your store.<\/li>\n<li>Review the assistant&#8217;s answer and any product result cards or links it provides.<\/li>\n<li>Open a product link and confirm that it points to the correct WooCommerce product page.<\/li>\n<li>Compare the displayed price, description, rating, and stock information with the product&#8217;s current details in WooCommerce.<\/li>\n<li>Try a query that should not match any product and check how the assistant responds. The source can fall back to popular products for some product-related prompts, so do not assume every returned item is an exact text match.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">What product information can be returned?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The product formatter can supply the following information when it is available from WooCommerce:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Product identity:<\/strong> product ID, title, product URL, and product type.<\/li>\n<li><strong>Images:<\/strong> the product image or WooCommerce placeholder image.<\/li>\n<li><strong>Pricing:<\/strong> current, regular, and sale prices, formatted price, currency symbol, and sale status.<\/li>\n<li><strong>Availability:<\/strong> stock status, in-stock flag, and stock quantity where WooCommerce provides it.<\/li>\n<li><strong>Reviews:<\/strong> average rating and rating count.<\/li>\n<li><strong>Description:<\/strong> short description, or a shortened version of the full description when the short description is empty.<\/li>\n<li><strong>Cart link:<\/strong> for simple products that are in stock, the formatter can provide an add-to-cart URL; other product types link to their product page.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The information available in the assistant&#8217;s response depends on the product data and the active conversation path. It is not a guarantee that every field will appear in every answer. The search method returns published products and limits each query to a maximum of 10 items; the usual chat context and tool defaults request a smaller set.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshoot missing or unexpected results<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>No products appear:<\/strong> confirm WooCommerce is active and the products are published, then test a distinctive word from a product title.<\/li>\n<li><strong>The assistant gives a general answer:<\/strong> ask a more specific product question and check whether the AI Assistant is responding normally.<\/li>\n<li><strong>The product-search tool is unavailable:<\/strong> open the Advance tab and check <strong>AI Business Tools &amp; Workflow Automation<\/strong> and the <strong>WooCommerce Product Search<\/strong> checkbox.<\/li>\n<li><strong>A result is not an exact match:<\/strong> the context builder can fall back to popular products when the initial search returns nothing. Compare the answer with the actual catalog before relying on it.<\/li>\n<li><strong>Price or stock appears incorrect:<\/strong> check the current WooCommerce product record and test again. Do not treat a previously generated conversation response as a live inventory guarantee.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Related WooCommerce guides<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"\/docs\/dragwyb-click-to-chat\/woocommerce-assistant\/\">WooCommerce Shopping and Orders<\/a> \u2014 overview of the store-related assistant features.<\/li>\n<li><a href=\"\/docs\/dragwyb-click-to-chat\/configure-ai-product-recommendations\/\">Configure AI Product Recommendations<\/a> \u2014 understand recommendations for featured, on-sale, or popular products.<\/li>\n<li><a href=\"\/docs\/dragwyb-click-to-chat\/woocommerce-add-to-cart\/\">Configure One-Click Add to Cart<\/a> \u2014 review the related cart workflow.<\/li>\n<li><a href=\"\/docs\/dragwyb-click-to-chat\/woocommerce-order-tracking\/\">Configure Secure WooCommerce Order Tracking<\/a> \u2014 configure order lookup with account-access protections.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Configure AI-powered WooCommerce product discovery in Dragwyb Click to Chat, enable the product-search tool, test catalog questions, and troubleshoot missing or unexpected results.<\/p>\n","protected":false},"author":0,"featured_media":0,"parent":97,"menu_order":0,"template":"","class_list":["post-98","doc","type-doc","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/types\/doc"}],"version-history":[{"count":1,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/98\/revisions"}],"predecessor-version":[{"id":360,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/98\/revisions\/360"}],"up":[{"embeddable":true,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/97"}],"wp:attachment":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/media?parent=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}