{"id":238710,"date":"2025-06-27T19:13:21","date_gmt":"2025-06-27T19:13:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ask-ai-assistant\/"},"modified":"2025-08-23T12:42:30","modified_gmt":"2025-08-23T12:42:30","slug":"ai-post-filter-cohere","status":"publish","type":"plugin","link":"https:\/\/mai.wordpress.org\/plugins\/ai-post-filter-cohere\/","author":23135041,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.0","stable_tag":"1.2.0","tested":"6.8.5","requires":"5.0","requires_php":"7.0","requires_plugins":null,"header_name":"AI Post Filter with Cohere","header_author":"Abhay Patel","header_description":"Use natural language prompts to filter posts of any post type via AI.","assets_banners_color":"7d7999","last_updated":"2025-08-23 12:42:30","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/github.com\/abhaypatel0904","rating":5,"author_block_rating":0,"active_installs":0,"downloads":399,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"abhaypatel01","date":"2025-06-27 19:39:52"},"1.1.0":{"tag":"1.1.0","author":"abhaypatel01","date":"2025-06-29 07:50:51"},"1.2.0":{"tag":"1.2.0","author":"abhaypatel01","date":"2025-08-23 12:42:30"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3334951,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3334955,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":3319335,"resolution":"1","location":"assets","locale":""},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":3319335,"resolution":"2","location":"assets","locale":""},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":3319335,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3348973,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3348973,"resolution":"5","location":"assets","locale":""}},"screenshots":{"1":"<p>Voice Search feature.<\/p>","2":"<p>Search with multiple (and\/or) conditions<\/p>","3":"<p>Filter posts by it's meta data like. price, stock, sku etc<\/p>","4":"<p>Filter WooCommerce products on shop and category pages<\/p>","5":"<p>Filter WooCommerce products on shop and category pages with voice search<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[148285,220145,6034],"plugin_category":[],"plugin_contributors":[234624],"plugin_business_model":[],"class_list":["post-238710","plugin","type-plugin","status-publish","hentry","plugin_tags-ai-assistant","plugin_tags-ai-search","plugin_tags-woocommerce-product-filter","plugin_contributors-abhaypatel01","plugin_committers-abhaypatel01"],"banners":{"banner":"https:\/\/ps.w.org\/ai-post-filter-cohere\/assets\/banner-772x250.png?rev=3334955","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/ai-post-filter-cohere\/assets\/icon-256x256.png?rev=3334951","icon_2x":"https:\/\/ps.w.org\/ai-post-filter-cohere\/assets\/icon-256x256.png?rev=3334951","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/ai-post-filter-cohere\/assets\/screenshot-1.jpg?rev=3319335","caption":"<p>Voice Search feature.<\/p>"},{"src":"https:\/\/ps.w.org\/ai-post-filter-cohere\/assets\/screenshot-2.jpg?rev=3319335","caption":"<p>Search with multiple (and\/or) conditions<\/p>"},{"src":"https:\/\/ps.w.org\/ai-post-filter-cohere\/assets\/screenshot-3.jpg?rev=3319335","caption":"<p>Filter posts by it's meta data like. price, stock, sku etc<\/p>"},{"src":"https:\/\/ps.w.org\/ai-post-filter-cohere\/assets\/screenshot-4.png?rev=3348973","caption":"<p>Filter WooCommerce products on shop and category pages<\/p>"},{"src":"https:\/\/ps.w.org\/ai-post-filter-cohere\/assets\/screenshot-5.png?rev=3348973","caption":"<p>Filter WooCommerce products on shop and category pages with voice search<\/p>"}],"raw_content":"<!--section=description-->\n<p>Use natural language prompts to filter posts of any post type via AI.<\/p>\n\n<h3>Use Cases<\/h3>\n\n<p>Users can enter natural language prompts across any post type including products, posts, custom post types, and more.<\/p>\n\n<ul>\n<li><p><strong>Product Specific Filters<\/strong>:<\/p>\n\n<ul>\n<li>Get products published in May and are in stock<\/li>\n<li>Get New arrivals in the Accessories category<\/li>\n<li>Get products on sale in the electronics category<\/li>\n<li>Get products with a sale price less than 30<\/li>\n<\/ul><\/li>\n<li><p><strong>Media-Based Filters<\/strong>:<\/p>\n\n<ul>\n<li>Get posts without featured images<\/li>\n<li>Get only products with gallery images<\/li>\n<\/ul><\/li>\n<li><p><strong>Logical Conditions (AND\/OR)<\/strong>:<\/p>\n\n<ul>\n<li>Get Products in stock and published after Jan 1, 2024<\/li>\n<li>Get products from last 7 days that are out of stock<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h3>External Services<\/h3>\n\n<p>This plugin connects to an API provided by Cohere (https:\/\/cohere.com) to perform AI-powered filtering of WordPress posts and custom post types. It sends the prompt entered by the admin to Cohere\u2019s <code>\/v2\/chat<\/code> endpoint. The API responds with a set of WP_Query arguments based on understanding of the prompt.<\/p>\n\n<h3>Details of the API integration<\/h3>\n\n<ul>\n<li><p><strong>What the service is<\/strong>:<br \/>\nThe plugin integrates with the Cohere Chat API (https:\/\/cohere.com), a third-party AI service that specializes in natural language understanding and generation.<\/p><\/li>\n<li><p><strong>What it is used for<\/strong>:<br \/>\nThe API is used to analyze admin-entered prompts and return relevant WP_Query arguments. These are used by the plugin to filter posts or custom post types intelligently, enabling semantic searching in the WordPress admin area.<\/p><\/li>\n<li><p><strong>What Data is Sent<\/strong>:<\/p>\n\n<ul>\n<li>The prompt entered by the WordPress admin is sent to the Cohere API. No personal user or customer data is collected or transmitted.<\/li>\n<\/ul><\/li>\n<li><p><strong>Why the data is sent<\/strong>:<br \/>\nThe data is sent so that the Cohere API can understand the context of the content and the user\u2019s intent behind the prompt. This allows it to return accurate WP_Query arguments to filter posts, instead of relying on simple keyword-based filters.<\/p><\/li>\n<li><p><strong>When Data is Sent<\/strong>:<br \/>\nOnly when the admin enters a prompt in the plugin interface and initiates the filter action<\/p><\/li>\n<li><p><strong>How Data is Sent<\/strong>:<br \/>\nData is sent via a secure <code>wp_remote_post()<\/code> request to <code>https:\/\/api.cohere.com\/v2\/chat<\/code><\/p><\/li>\n<li><p><strong>Terms and Privacy<\/strong>:<\/p>\n\n<ul>\n<li><a href=\"https:\/\/cohere.com\/terms-of-use\">Cohere Terms of Use<\/a><\/li>\n<li><a href=\"https:\/\/cohere.com\/privacy\">Cohere Privacy Policy<\/a><\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p>This API connection is essential for the plugin's AI features to function. If you choose not to use the AI filtering functionality, the rest of the plugin remains functional.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip and upload contents of the plugin to your \/wp-content\/plugins\/ directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to WordPress admin &gt; Settings &gt; General, and add the API key in the \"Cohere API Key\" field<\/li>\n<li>Visit the any supported post type listing page in your admin panel. You'll now see a new \u201cAsk AI to filter\u2026\u201d input field above the list \u2013 enter a natural language prompt to filter items using AI.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='where%20to%20add%20cohere%20ai%20api%20key'><h3>Where to add Cohere AI API key<\/h3><\/dt>\n<dd><p>Go to WordPress admin &gt; Settings &gt; General, and add the API key in the \"Cohere API Key\" field<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.0 (23.08.2025)<\/h4>\n\n<ul>\n<li>New: WooCommerce 10.1.1 compatible<\/li>\n<li>New: Filter WooCommerce products on shop and category pages using natural language prompts with voice search support<\/li>\n<li>Update: POT file<\/li>\n<\/ul>\n\n<h4>1.1.0 (28.06.2025)<\/h4>\n\n<ul>\n<li>New: WooCommerce 9.9.5 compatible<\/li>\n<li>New: Voice search support to capture prompts using speech for searching WooCommerce products or any post type<\/li>\n<li>Update: Improved accuracy of AI-generated response related to date filters, metadata, and taxonomy-based prompts<\/li>\n<li>Update: POT file<\/li>\n<\/ul>\n\n<h4>1.0.0 (15.06.2025)<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"A Cohere AI Assistant for your site","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/238710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=238710"}],"author":[{"embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/abhaypatel01"}],"wp:attachment":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=238710"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=238710"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=238710"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=238710"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=238710"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=238710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}