{"id":314039,"date":"2026-06-16T16:44:47","date_gmt":"2026-06-16T16:44:47","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/zencoupon-ai-assistant\/"},"modified":"2026-06-20T10:55:23","modified_gmt":"2026-06-20T10:55:23","slug":"zencoupon-ai-assistant","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/zencoupon-ai-assistant\/","author":20676129,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.2","stable_tag":"1.0.2","tested":"7.0","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"ZenCoupon AI Assistant","header_author":"Tusher Ikbal","header_description":"Generate and manage WooCommerce coupons using AI with natural language commands.","assets_banners_color":"10063e","last_updated":"2026-06-20 10:55:23","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/tusherikbal.online","rating":0,"author_block_rating":0,"active_installs":0,"downloads":90,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"tusherikbal","date":"2026-06-16 16:50:17"},"1.0.2":{"tag":"1.0.2","author":"tusherikbal","date":"2026-06-20 10:55:23"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3572115,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3572115,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2353,5739,569,326,286],"plugin_category":[45],"plugin_contributors":[254638],"plugin_business_model":[],"class_list":["post-314039","plugin","type-plugin","status-publish","hentry","plugin_tags-ai","plugin_tags-artificial-intelligence","plugin_tags-automation","plugin_tags-coupon","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-tusherikbal","plugin_committers-tusherikbal"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/zencoupon-ai-assistant\/assets\/icon-256x256.png?rev=3572115","icon_2x":"https:\/\/ps.w.org\/zencoupon-ai-assistant\/assets\/icon-256x256.png?rev=3572115","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>ZenCoupon AI Assistant is a WordPress and WooCommerce plugin that helps store owners create, update, and manage coupons using simple AI-powered commands.<\/p>\n\n<p>Instead of manually configuring every WooCommerce coupon field, store owners can type a plain-language instruction such as \"Create a 20% coupon for Eid sale with minimum spend 1000\", and the plugin converts that command into WooCommerce-ready coupon data.<\/p>\n\n<p>The plugin supports Groq, OpenAI\/GPT, and Google Gemini, giving users flexibility to choose their preferred AI provider for coupon generation.<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li>Create WooCommerce coupons using natural language commands<\/li>\n<li>Update existing coupons with AI-powered instructions<\/li>\n<li>Choose between Groq, OpenAI\/GPT, and Google Gemini<\/li>\n<li>Select from curated AI models or enter a custom model name<\/li>\n<li>Save and manage provider API keys from the admin panel<\/li>\n<li>Test AI provider connection from plugin settings<\/li>\n<li>Generate coupon rules automatically<\/li>\n<li>View generated coupons from the admin dashboard<\/li>\n<li>Delete and manage coupons easily<\/li>\n<li>View recent activity inside the plugin panel<\/li>\n<li>Docs and support admin page<\/li>\n<li>Support form powered by wp_mail()<\/li>\n<li>WooCommerce HPOS compatibility<\/li>\n<li>REST API and JSON-RPC 2.0 style MCP endpoint for integration<\/li>\n<\/ul>\n\n<h4>Coupon Options Supported<\/h4>\n\n<p>ZenCoupon AI Assistant can create and manage many WooCommerce coupon settings, including:<\/p>\n\n<ul>\n<li>Coupon code<\/li>\n<li>Percentage discount<\/li>\n<li>Fixed cart discount<\/li>\n<li>Fixed product discount<\/li>\n<li>Expiry date<\/li>\n<li>Minimum spend<\/li>\n<li>Maximum spend<\/li>\n<li>Usage limit<\/li>\n<li>Usage limit per user<\/li>\n<li>Individual use only<\/li>\n<li>Free shipping<\/li>\n<li>Exclude sale items<\/li>\n<li>Email restrictions<\/li>\n<li>Product IDs<\/li>\n<li>Excluded product IDs<\/li>\n<li>Product categories<\/li>\n<li>Excluded product categories<\/li>\n<\/ul>\n\n<h4>Supported AI Providers<\/h4>\n\n<p>ZenCoupon AI Assistant supports three AI providers.<\/p>\n\n<p><strong>Groq AI<\/strong><\/p>\n\n<p>Groq is useful for fast responses and low-latency coupon command processing.<\/p>\n\n<p>Recommended model:<\/p>\n\n<ul>\n<li>llama-3.1-8b-instant<\/li>\n<\/ul>\n\n<p><strong>OpenAI\/GPT<\/strong><\/p>\n\n<p>OpenAI\/GPT is useful for high-quality structured coupon output.<\/p>\n\n<p>Default model:<\/p>\n\n<ul>\n<li>gpt-5.5<\/li>\n<\/ul>\n\n<p>Other supported options:<\/p>\n\n<ul>\n<li>gpt-5.4-mini<\/li>\n<li>gpt-5.4-nano<\/li>\n<\/ul>\n\n<p><strong>Google Gemini<\/strong><\/p>\n\n<p>Google Gemini is useful for fast structured JSON responses.<\/p>\n\n<p>Default model:<\/p>\n\n<ul>\n<li>gemini-2.5-flash<\/li>\n<\/ul>\n\n<h4>Requirements<\/h4>\n\n<ul>\n<li>WordPress 5.0 or higher<\/li>\n<li>PHP 7.4 or higher<\/li>\n<li>WooCommerce 3.0 or higher<\/li>\n<li>Active API key from Groq, OpenAI, or Google Gemini<\/li>\n<\/ul>\n\n<h3>External Services<\/h3>\n\n<p>This plugin connects to external AI APIs to process natural language coupon commands and generate WooCommerce coupon configurations.<\/p>\n\n<p>The plugin only sends the prompt entered by the admin user, such as coupon requirements, discount rules, expiry instructions, or campaign details. No customer personal data, order data, store financial data, or payment data is intentionally transmitted by the plugin.<\/p>\n\n<h4>Groq AI<\/h4>\n\n<p>Service provider: Groq, Inc.<\/p>\n\n<p>Endpoint used:<\/p>\n\n<p>https:\/\/api.groq.com\/openai\/v1\/chat\/completions<\/p>\n\n<p>Terms of Service:<\/p>\n\n<p>https:\/\/groq.com\/terms-of-service\/<\/p>\n\n<p>Privacy Policy:<\/p>\n\n<p>https:\/\/groq.com\/privacy-policy\/<\/p>\n\n<h4>OpenAI<\/h4>\n\n<p>Service provider: OpenAI, L.L.C.<\/p>\n\n<p>Endpoint used:<\/p>\n\n<p>https:\/\/api.openai.com\/v1\/responses<\/p>\n\n<p>Terms of Use:<\/p>\n\n<p>https:\/\/openai.com\/policies\/terms-of-use\/<\/p>\n\n<p>Privacy Policy:<\/p>\n\n<p>https:\/\/openai.com\/policies\/privacy-policy\/<\/p>\n\n<h4>Google Gemini<\/h4>\n\n<p>Service provider: Google LLC.<\/p>\n\n<p>Endpoint used:<\/p>\n\n<p>https:\/\/generativelanguage.googleapis.com\/v1beta\/models\/<\/p>\n\n<p>Terms of Service:<\/p>\n\n<p>https:\/\/policies.google.com\/terms<\/p>\n\n<p>Privacy Policy:<\/p>\n\n<p>https:\/\/policies.google.com\/privacy<\/p>\n\n<h3>Configuration<\/h3>\n\n<h4>1. Get an API Key<\/h4>\n\n<p>Before using the plugin, you need an API key from at least one supported AI provider.<\/p>\n\n<p>For Groq AI:<\/p>\n\n<ol>\n<li>Visit https:\/\/console.groq.com<\/li>\n<li>Create an account or sign in.<\/li>\n<li>Generate an API key.<\/li>\n<li>Copy the API key.<\/li>\n<\/ol>\n\n<p>For OpenAI:<\/p>\n\n<ol>\n<li>Visit https:\/\/platform.openai.com<\/li>\n<li>Create an account or sign in.<\/li>\n<li>Generate an API key.<\/li>\n<li>Copy the API key.<\/li>\n<\/ol>\n\n<p>For Google Gemini:<\/p>\n\n<ol>\n<li>Visit https:\/\/aistudio.google.com<\/li>\n<li>Create an account or sign in.<\/li>\n<li>Generate an API key.<\/li>\n<li>Copy the API key.<\/li>\n<\/ol>\n\n<h4>2. Configure the Plugin<\/h4>\n\n<ol>\n<li>In your WordPress admin dashboard, go to ZenCoupon AI.<\/li>\n<li>Select your AI provider.<\/li>\n<li>Enter your provider API key.<\/li>\n<li>Choose a model or enter a custom model name.<\/li>\n<li>Click Save Settings.<\/li>\n<li>Use the Test Connection button to check your provider connection.<\/li>\n<\/ol>\n\n<h3>Usage<\/h3>\n\n<h4>Creating Coupons with AI<\/h4>\n\n<ol>\n<li>Go to WordPress Dashboard &gt; ZenCoupon AI.<\/li>\n<li>Open the command console.<\/li>\n<li>Type your coupon instruction in natural language.<\/li>\n<li>Click the generate button.<\/li>\n<li>Review the generated coupon details.<\/li>\n<li>Create the coupon.<\/li>\n<\/ol>\n\n<p>Example prompts:<\/p>\n\n<ul>\n<li>Create a 15% discount coupon for Summer Sale.<\/li>\n<li>Create BLACKFRIDAY coupon with 30% discount.<\/li>\n<li>Create a fixed 500 discount coupon with minimum spend 3000.<\/li>\n<li>Create a free shipping coupon for VIP customers.<\/li>\n<li>Update recent coupon to 20% discount.<\/li>\n<li>Create a coupon for category ID 12, expires on 2026-12-31.<\/li>\n<\/ul>\n\n<h4>Via REST API<\/h4>\n\n<p>The plugin provides a JSON-RPC 2.0 compatible REST endpoint at:<\/p>\n\n<pre><code>POST \/wp-json\/zencoupon\/v1\/mcp\n<\/code><\/pre>\n\n<h4>Creating a Coupon<\/h4>\n\n<pre><code>`bash\n<\/code><\/pre>\n\n<p>curl -X POST https:\/\/yoursite.com\/wp-json\/zencoupon\/v1\/mcp \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\n    \"jsonrpc\": \"2.0\",\n    \"id\": 1,\n    \"method\": \"create_coupon\",\n    \"params\": {\n      \"code\": \"SAVE20\",\n      \"amount\": 20,\n      \"discount_type\": \"percent\",\n      \"expiry_date\": \"2026-12-31\"\n    }\n  }'\n    `<\/p>\n\n<h4>Listing Coupons<\/h4>\n\n<pre><code>`bash\n<\/code><\/pre>\n\n<p>curl -X POST https:\/\/yoursite.com\/wp-json\/zencoupon\/v1\/mcp \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\n    \"jsonrpc\": \"2.0\",\n    \"id\": 2,\n    \"method\": \"list_coupons\"\n  }'\n    `<\/p>\n\n<h4>Listing AI-Generated Coupons<\/h4>\n\n<pre><code>`bash\n<\/code><\/pre>\n\n<p>curl -X POST https:\/\/yoursite.com\/wp-json\/zencoupon\/v1\/mcp \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\n    \"jsonrpc\": \"2.0\",\n    \"id\": 3,\n    \"method\": \"list_generated_coupons\"\n  }'\n    `<\/p>\n\n<h4>Deleting a Coupon<\/h4>\n\n<pre><code>`bash\n<\/code><\/pre>\n\n<p>curl -X POST https:\/\/yoursite.com\/wp-json\/zencoupon\/v1\/mcp \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\n    \"jsonrpc\": \"2.0\",\n    \"id\": 4,\n    \"method\": \"delete_coupon\",\n    \"params\": {\n      \"coupon_id\": 123\n    }\n  }'\n    `<\/p>\n\n<h3>Coupon Parameters<\/h3>\n\n\n\n\n  Parameter\n  Type\n  Required\n  Description\n\n\n\n\n  code\n  string\n  Yes\n  Unique coupon code\n\n\n  amount\n  float\n  Yes\n  Discount amount\n\n\n  discount_type\n  string\n  Yes\n  percent, fixed_cart, or fixed_product\n\n\n  expiry_date\n  string\n  No\n  Date in YYYY-MM-DD format\n\n\n  minimum_amount\n  float\n  No\n  Minimum cart total\n\n\n  maximum_amount\n  float\n  No\n  Maximum cart total\n\n\n  exclude_sale_items\n  boolean\n  No\n  Exclude sale items from discount\n\n\n  individual_use\n  boolean\n  No\n  Allow the coupon to be used individually only\n\n\n  usage_limit\n  int\n  No\n  Total number of times the coupon can be used\n\n\n  usage_limit_per_user\n  int\n  No\n  Number of times each customer can use the coupon\n\n\n  free_shipping\n  boolean\n  No\n  Grant free shipping\n\n\n  email_restrictions\n  array\n  No\n  Allowed customer emails\n\n\n  product_ids\n  array\n  No\n  Specific product IDs\n\n\n  excluded_product_ids\n  array\n  No\n  Excluded product IDs\n\n\n  product_categories\n  array\n  No\n  Specific category IDs\n\n\n  excluded_product_categories\n  array\n  No\n  Excluded category IDs\n\n\n\n\n<h3>API Response Examples<\/h3>\n\n<h4>Success Response<\/h4>\n\n<pre><code>`json\n<\/code><\/pre>\n\n<p>{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"result\": {\n    \"coupon_id\": 123,\n    \"code\": \"SAVE20\",\n    \"amount\": 20,\n    \"discount_type\": \"percent\",\n    \"message\": \"Coupon created successfully.\"\n  }\n}\n    `<\/p>\n\n<h4>Error Response<\/h4>\n\n<pre><code>`json\n<\/code><\/pre>\n\n<p>{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"error\": {\n    \"code\": -32600,\n    \"message\": \"Coupon code is required.\"\n  }\n}\n    `<\/p>\n\n<h3>Security<\/h3>\n\n<p>ZenCoupon AI Assistant follows standard WordPress security practices.<\/p>\n\n<ul>\n<li>Direct file access is blocked with ABSPATH checks.<\/li>\n<li>Admin actions are protected with nonce verification.<\/li>\n<li>Capability checks are used for coupon and WooCommerce management.<\/li>\n<li>Input is sanitized before processing.<\/li>\n<li>REST API access is permission protected.<\/li>\n<li>API keys are stored in WordPress options.<\/li>\n<li>Support form submissions are sanitized and nonce protected.<\/li>\n<li>HTTPS is recommended for all API calls.<\/li>\n<\/ul>\n\n<h3>Troubleshooting<\/h3>\n\n<h4>Missing API Key Error<\/h4>\n\n<p>This error usually means the selected AI provider does not have a saved API key.<\/p>\n\n<p>Please check that you have:<\/p>\n\n<ul>\n<li>Generated an API key from your selected provider<\/li>\n<li>Entered the API key in the plugin settings<\/li>\n<li>Saved the settings successfully<\/li>\n<\/ul>\n\n<h4>API Returned HTTP 429 Error<\/h4>\n\n<p>This means the AI provider is rate-limiting your requests.<\/p>\n\n<p>Possible solutions:<\/p>\n\n<ul>\n<li>Wait a few minutes and try again<\/li>\n<li>Switch to another AI provider<\/li>\n<li>Check your provider usage limit<\/li>\n<li>Upgrade your API plan if needed<\/li>\n<\/ul>\n\n<h4>Model Not Found Error<\/h4>\n\n<p>This usually means the selected model name is not available or has been deprecated.<\/p>\n\n<p>Possible solutions:<\/p>\n\n<ul>\n<li>Choose a recommended model from the dropdown<\/li>\n<li>Enter a currently supported custom model name<\/li>\n<li>Switch to another AI provider<\/li>\n<\/ul>\n\n<h4>Invalid JSON Response Error<\/h4>\n\n<p>This means the AI provider returned an unexpected response format.<\/p>\n\n<p>Possible solutions:<\/p>\n\n<ul>\n<li>Try the same prompt again<\/li>\n<li>Use a clearer coupon command<\/li>\n<li>Check your API key<\/li>\n<li>Try another AI provider<\/li>\n<\/ul>\n\n<h3>Performance Tips<\/h3>\n\n<ul>\n<li>Use Groq for faster responses.<\/li>\n<li>Use OpenAI\/GPT for high-quality structured output.<\/li>\n<li>Use Gemini Flash models for fast structured JSON responses.<\/li>\n<li>Use clear prompts for more accurate coupon generation.<\/li>\n<li>Keep temperature low for more consistent results.<\/li>\n<li>Monitor provider rate limits when generating many coupons.<\/li>\n<\/ul>\n\n<h3>Contributing<\/h3>\n\n<p>Contributions are welcome. Please fork the repository and submit a pull request.<\/p>\n\n<!--section=installation-->\n<h4>From WordPress Plugin Directory<\/h4>\n\n<ol>\n<li>Go to Plugins &gt; Add New in your WordPress admin dashboard.<\/li>\n<li>Search for \"ZenCoupon AI Assistant\".<\/li>\n<li>Click Install Now.<\/li>\n<li>Click Activate.<\/li>\n<\/ol>\n\n<h4>Manual Installation<\/h4>\n\n<ol>\n<li>Download the plugin ZIP file.<\/li>\n<li>Go to Plugins &gt; Add New &gt; Upload Plugin.<\/li>\n<li>Choose the ZIP file.<\/li>\n<li>Click Install Now.<\/li>\n<li>Click Activate Plugin.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20require%20woocommerce%3F\"><h3>Does this plugin require WooCommerce?<\/h3><\/dt>\n<dd><p>Yes. ZenCoupon AI Assistant is built for WooCommerce coupon creation and management.<\/p><\/dd>\n<dt id=\"does%20this%20plugin%20send%20customer%20data%20to%20ai%20providers%3F\"><h3>Does this plugin send customer data to AI providers?<\/h3><\/dt>\n<dd><p>No. The plugin sends only the admin-provided coupon prompt to the selected AI provider. It does not intentionally send customer personal data, order data, payment data, or store financial data.<\/p><\/dd>\n<dt id=\"can%20i%20use%20my%20own%20ai%20model%20name%3F\"><h3>Can I use my own AI model name?<\/h3><\/dt>\n<dd><p>Yes. The plugin includes curated model options and also supports custom model names.<\/p><\/dd>\n<dt id=\"can%20i%20manage%20existing%20coupons%3F\"><h3>Can I manage existing coupons?<\/h3><\/dt>\n<dd><p>Yes. The plugin supports listing, deleting, and updating coupons.<\/p><\/dd>\n<dt id=\"is%20the%20plugin%20hpos%20compatible%3F\"><h3>Is the plugin HPOS compatible?<\/h3><\/dt>\n<dd><p>Yes. ZenCoupon AI Assistant supports WooCommerce High-Performance Order Storage.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Improved the README structure and made the documentation easier to read.<\/li>\n<li>Cleaned up REST API examples and coupon parameter formatting.<\/li>\n<li>Clarified the external services disclosure for Groq, OpenAI, and Gemini.<\/li>\n<li>Updated plugin version metadata for the new release.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed unique prefix constraints and refactored the plugin structure.<\/li>\n<li>Updated the text domain to match the plugin slug.<\/li>\n<li>Added missing external services disclosure for Groq, OpenAI, and Gemini.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<li>Added Groq AI integration.<\/li>\n<li>Added WooCommerce HPOS support.<\/li>\n<li>Added REST API endpoint.<\/li>\n<li>Added coupon management features.<\/li>\n<\/ul>","raw_excerpt":"Generate and manage WooCommerce coupons using AI-powered natural language commands.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/314039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=314039"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tusherikbal"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=314039"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=314039"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=314039"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=314039"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=314039"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=314039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}