Smarter Search for Products & Posts
** Smarter Search for Products & Posts ** enhances the standard search in WordPress and WooCommerce by using AI, powered by the Groq API. Natural language queries are parsed into structured JSON filters (category, name, price, SKU), producing more relevant search results for products and content. If AI processing fails or times out, the plugin automatically falls back to the built‑in WooCommerce/WordPress search.
Features * Extracts product name, category, min_price, and max_price from natural language queries. * SKU-aware: * Exact SKU → direct redirect to product page. * Partial SKU → product search with SKU filter. * Mixed results template: display products + posts/pages together. * Customizable form styling: adjustable input width/height, aligned margins. * Multisite compatible with network activation. * Graceful fallback: if the AI API fails, plugin reverts to standard search.
External Service Disclosure
This plugin connects to the Groq API. The plugin sends only the user’s search query text to Groq in order to compute structured search parameters. No personal or identifying user data is sent.
The Groq API Terms of Service and Privacy Policy apply to data transmitted through this plugin.
You must provide your own Groq API key, available free at https://console.groq.com/keys.
Configuration
- Go to Settings → Smarter Search for WooCommerce and WordPress Posts.
- Enter your Groq API Key (available at https://console.groq.com/keys).
- Choose your preferred LLM model and temperature.
-
(Optional) Update the system prompt to customize JSON extraction. Example:
json {"category":"hiking-boots","name":"waterproof","min_price":50,"max_price":200} -
Customize search input dimensions and styling options.
- Use the shortcode
[crashguru_search]to display the search form anywhere on your site.
Usage
Basic Search Examples: * “red shoes under $100” → Finds red shoes with max price $100 * “SKU12345” → Direct redirect to product with that exact SKU * “wireless headphones” → AI extracts relevant product attributes * “hiking gear in outdoor category” → Searches outdoor category for hiking-related products
Shortcode Usage: [crashguru_search placeholder=”Your Placeholder Text”]
