=== JS Help Desk – AI-Powered Support & Ticketing System ===
Contributors: rabilal
Donate link: https://jshelpdesk.com/pricing/
Tags: helpdesk, ticketing system, AI support, support ticket, knowledgebase
Requires at least: 5.5
Tested up to: 7.0
Stable tag: 3.1.3
Requires PHP: 7.4
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Professional, beautiful, complete and powerful help desk & support system for WordPress.

== Description ==
JS Help Desk is a professional, AI-enhanced helpdesk and customer support system for WordPress. It offers a complete ticketing solution with front-end submission, guest tickets, and a native AI Copilot to boost agent efficiency. 

Powered by Zywrap, the AI Copilot brings top-tier large language models directly into your ticket editor. Call AI by Code. Zero Prompt Engineering.

= Key Resources =
* [JS Help Desk Demo](http://demo.jshelpdesk.com)
* [Plugin Homepage](https://jshelpdesk.com/)
* [Video Tutorials](https://youtu.be/HxSBUoMSKs8)

== Free Version Major Features ==

**Core Ticketing & Management**
- **Professional Support System**: Enterprise-level ticketing for all users.
- **Unlimited Tickets & Agents**: No artificial limits on your growth.
- **Unlimited Departments**: Organize by Sales, Support, Billing, etc.
- **Priority Management**: Highlight urgent issues with custom colors.
- **Internal Notes**: Agents can add private notes for internal collaboration.
- **Custom Statuses**: Track ticket progress with clear status messages.

**Zywrap AI Copilot (New!)**
- **Zero Prompt Engineering:** Agents don't need to write prompts. Simply select a Support Intent (e.g., "Ask for Info" or "Escalate") and the AI does the rest.
- **1-Click Summaries:** Instantly summarize long, complex ticket threads to get up to speed in seconds.
- **Smart Data Extraction:** Automatically extract error codes, browser versions, and URLs from customer messages into clean, readable Data Cards.
- **Instant Translation:** Break language barriers by translating customer messages or agent replies with a single click.
- **Auto-Draft Replies:** Generate complete, professional responses based on the context of the entire ticket history.
- **Dynamic Routing:** Automatically routes requests through the best available AI models (OpenAI, Anthropic, Gemini, Groq) via the Zywrap API.

**User & Agent Experience**
- **Front-end Submission**: Users create and track tickets without accessing the dashboard.
- **Guest/Visitor Tickets**: Allow users to open tickets without creating an account.
- **Fully Responsive**: Optimized for smartphones, tablets, and desktops.
- **HTML Editor**: Rich text support for ticket summaries and replies.
- **Multiple Attachments**: Admin-controlled size and file type limits.

**Automation & AI**
- **AI-Powered Reply Suggestions**: Generate context-aware smart responses to save time.
- **Email Notifications**: Automated alerts for new tickets, replies, and status changes.
- **Field & Email Managers**: Full control over 12+ custom fields and HTML email templates.

**Security & Compliance**
- **GDPR Ready**: Built-in tools for data erasure and anonymization.
- **Spam Protection**: Supports built-in Captcha and Google reCAPTCHA.
- **Terms & Conditions**: Require agreement before ticket submission.

**Customization & Reporting**
- **Color Themes**: 7 preset palettes to match your brand.
- **Detailed Reports**: Summaries by agent, department, priority, and status.
- **RTL Ready**: Full support for right-to-left languages.
- **Translations**: Supports 35+ languages including French, German, Spanish, Arabic, and Chinese.

= Shortcodes =
- `[jssupportticket]` - Control Panel
- `[jssupportticket_addticket]` - Add New Ticket form
- `[jssupportticket_mytickets]` - User Ticket List

== Premium Add-Ons ==
JS Help Desk is a complete help desk system with 35+ professional addons.

* [Email Piping](https://jshelpdesk.com/product/email-piping/) - Create/reply to tickets via email.
* [Time Tracking](https://jshelpdesk.com/product/time-tracking/) - Log time spent on resolutions.
* [Paid Support](https://jshelpdesk.com/product/paid-support/) - Charge per ticket or subscription.
* [Agents](https://jshelpdesk.com/product/agents/) - Multi-agent management & permissions.
* [Agent Auto Assign](https://jshelpdesk.com/product/agent-auto-assign/) - Rule-based ticket routing.
* [Multi Forms](https://jshelpdesk.com/product/multi-forms/) - Unique forms per department.
* [Merge Tickets](https://jshelpdesk.com/product/merge-ticket/) - Combine duplicate queries easily.
* [Ticket Overdue](https://jshelpdesk.com/product/overdue/) - Track SLA deadlines & response times.
* [SMTP](https://jshelpdesk.com/product/smtp/) - Custom email protocol for reliability.
* [Ban Email](https://jshelpdesk.com/product/ban-email/) - Block specific users or domains.
* [WooCommerce](https://jshelpdesk.com/product/woocommerce/) - Connect support to customer orders.
* [Private Credentials](https://jshelpdesk.com/product/private-credentials/) - Store & auto-delete sensitive data.
* [Email CC](https://jshelpdesk.com/product/email-cc/) - Keep stakeholders updated on tickets.
* [Export](https://jshelpdesk.com/product/export/) - Export ticket data/history to CSV.
* [Desktop Notification](https://jshelpdesk.com/product/desktop-notification/) - Real-time browser alerts.
* [Ticket History](https://jshelpdesk.com/product/ticket-history/) - Full audit log of all ticket actions.
* [Ticket Auto Close](https://jshelpdesk.com/product/close-ticket/) - Auto-close inactive ticket threads.
* [Feedback](https://jshelpdesk.com/product/feedback/) - Collect agent performance ratings.
* [Helptopic](https://jshelpdesk.com/product/helptopic/) - Categorize queries for easy browsing.
* [Private Note](https://jshelpdesk.com/product/internal-note/) - Private internal agent communication.
* [Knowledge Base](https://jshelpdesk.com/product/knowledge-base/) - Self-service documentation portal.
* [Canned Response](https://jshelpdesk.com/product/canned-responses/) - Pre-defined templates for fast replies.
* [Max Tickets](https://jshelpdesk.com/product/max-ticket/) - Limit open tickets per user/agent.
* [Mail Chimp](https://jshelpdesk.com/product/mail-chimp/) - Sync users to marketing mailing lists.
* [User Options](https://jshelpdesk.com/product/user-options/) - Advanced registration & Captcha.
* [Ticket Actions](https://jshelpdesk.com/product/actions/) - Add power actions like Print, Lock, Ticket In-Progress, and advanced Priority controls.
* [Announcements](https://jshelpdesk.com/product/announcements/) - Broadcast news to all support users.
* [Downloads](https://jshelpdesk.com/product/downloads/) - Share supporting files with customers.
* [FAQ](https://jshelpdesk.com/product/faq/) - Database of frequently asked questions.
* [Admin Widgets](https://jshelpdesk.com/product/admin-widget/) - Real-time stats on WP dashboard.
* [Internal Mail](https://jshelpdesk.com/product/internal-mail/) - Agent-to-agent messaging system.
* [Envato Validation](https://jshelpdesk.com/product/envato/) - Verify purchase codes for tickets.
* [Front-End Widgets](https://jshelpdesk.com/product/widget/) - Display ticket stats in sidebars.
* [Multi Language Emails](https://jshelpdesk.com/product/multi-language-email-templates/) - Language-based templates.
* [Easy Digital Download](https://jshelpdesk.com/product/easy-digital-download/) - Integrated support for EDD.

== Installation ==

= Automatic installation =
Log in to your WordPress dashboard, navigate to the Plugins menu and click Add New. Search for "JS Help Desk" and click Install Now.

= Manual installation =
Download the zip file and upload the folder to your `/wp-content/plugins/` directory.

== Screenshots ==
1. Admin Dashboard
2. Admin Tickets
3. Ticket Detail - Admin
4. Configurations
5. Departments
6. Priorities
7. Email Templates
8. User Fields
9. My Tickets - front-end
10. Create new ticket - front-end
11. Ticket Details - front-end
12. Overall Reports
13. Customer Feedbacks
14. Report by Staff Members
15. Report by Departments
16. Timer
17. Feedback
18. Staff Member Control Panel
19. Staff Member Tickets
20. Staff Members List
21. Internal Mails

== Changelog ==
= 3.1.3 =
* Added Auto Cleanup add-on for automated attachment and ticket deletion, complete with server performance controls, dedicated settings, and UI indicators.
* Improved System Errors log with detailed execution traces, database queries, and URL tracking.
* Improved language file downloads with smart fallback locales and CDN support.

= 3.1.2 =
* Security update.

= 3.1.1 =
* Security update.

= 3.1.0 =
* Security Fix: Implemented strict authorization and nonce verifications to prevent unauthorized access to ticket actions and attachment downloads.

= 3.0.9 =
* Security enhancement: Improved request validation, nonce verification, capability checks, and hardened task dispatcher execution to prevent unauthorized access and arbitrary action execution.

= 3.0.8 =
* Improved language files.
* Improved Zywrap AI.

= 3.0.7 =
* FEATURE: Introduced the Zywrap AI Copilot directly inside the ticket editor.
* FEATURE: Added 1-click Ticket Summarization for long support threads.
* FEATURE: Added Smart Data Extraction to automatically pull environment/error data into UI cards.
* FEATURE: Added 1-click Translations for global customer support.
* FEATURE: Added the Zywrap Dashboard with API usage stats and token tracking.
* FEATURE: Added AI Test Playground for administrators.
* ENHANCEMENT: Rebuilt the AI response formatting with Marked.js for perfect HTML and Plain Text rendering.
* ENHANCEMENT: Added automated Database Sync for dynamic AI Wrapper templates.

= 3.0.6 =
* Security Updates.

= 3.0.5 =
* Security Updates.

= 3.0.4 =
* Security Updates.

= 3.0.3 =
* Security Updates.

= 3.0.2 =
* Security Updates.

= 3.0.1 =
* Improved design of the Themes settings page.

= 3.0.0 =
* Revamped admin dashboard with richer insights.
* Modernized user and agent pages.
* Introduced form-based email templates.

= 2.9.8 =
* Introduced AI-Powered reply suggestions.
* Added SupportCandy import functionality.
* Added configuration base user avatar.

== Privacy & Third-Party Service Disclosure ==
To provide advanced AI functionalities, JS Help Desk integrates with the **Zywrap Cloud API** (a third-party service). 

* **Data Transmission:** When an agent actively uses an AI feature (such as "Generate Reply", "Summarize", "Extract Details", or "Translate"), the content of the specific ticket thread and the customer's message are securely transmitted to the Zywrap API to generate the response. 
* **Opt-In Required:** The AI Copilot is completely disabled by default. No data is transmitted unless an Administrator explicitly registers for a Zywrap account, inputs their API Key in the settings, and an agent clicks an AI action button.
* **Data Usage:** Data sent to the Zywrap API is used strictly for generating the requested AI text in real-time. Please review the [Zywrap Privacy Policy](https://zywrap.com/privacy) for full details on data handling.

== Frequently Asked Questions ==

= Can users open support tickets from the front-end? =
Yes, users can submit and manage tickets entirely from the site front-end.

= Will JS Help Desk work with my theme? =
Yes, it is designed to be compatible with any standard-compliant WordPress theme.

= Is it RTL ready? =
Yes, we fully support RTL languages like Arabic and Hebrew.
