
內容簡介
** Smarter Search for Products & Posts ** 是一款使用 Groq API 提供的人工智慧技術,來增強 WordPress 和 WooCommerce 的標準搜尋功能。透過將自然語言查詢解析成結構化的 JSON 篩選器(類別、名稱、價格、SKU),使產品和內容的搜索結果更加相關。
1. 這個外掛如何提升了 WordPress 和 WooCommerce 的標準搜索功能?
- 透過使用人工智慧技術,並以 Groq API 為動力來改進搜尋結果的相關性。
- 將自然語言查詢轉換成結構化的 JSON 篩選器,包括類別、名稱、價格、SKU,從而產生更精確的搜索結果。
2. 如果人工智慧處理失敗或超時,這個外掛會有什麼應對措施?
- 外掛將自動回退到內建的 WooCommerce/WordPress 標準搜索功能。
3. 這個外掛具備哪些特點和功能?
- 提取商品名稱、類別、最低價格和最高價格的能力。
- 對 SKU 意識性的處理:完整的 SKU 將直接重定向到產品頁面,部分的 SKU 將進行帶有 SKU 篩選器的產品搜索。
- 混合結果模板可以一起顯示產品和文章/頁面。
- 可自定義表單樣式,包括可調整的輸入寬度/高度和對齊的邊距。
- 多站點相容並支持網絡啟用。
- 萬一人工智慧 API 失敗,外掛將回歸標準搜索。
4. 外掛如何與 Groq API 連接?
- 外掛僅將用戶的搜索查詢文本發送給 Groq,以計算結構化搜索參數。
- 不會發送任何個人或識別用戶資料。
- Groq API 的服務條款和隱私政策適用於通過這個外掛傳輸的數據。
5. 如何配置外掛?
- 前往設置 → Smarter Search for WooCommerce and WordPress Posts.
- 輸入您的 Groq API 金鑰(在https://console.groq.com/keys可免費獲得)。
- 選擇您偏好的LLM模型和溫度。
- (可選)更新系統提示以自定義 JSON 提取。
6. 通過哪個簡碼可以在網站的任何位置顯示搜索表單?
- 使用簡碼[crashguru_search]。
外掛標籤
開發者團隊
② 後台搜尋「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”]
