This plugin is an extension for osTicket that adds AI capabilities to help agents respond to support tickets more efficiently. Currently, it supports Google Gemini as the AI model and provides a simple popup interface for generating AI-powered responses.
In future releases, planned features include automated ticket responses and more advanced AI-assisted workflows.
- Popup interface for agents to ask questions and receive AI-generated answers.
- API Key configuration directly from the plugin settings panel.
- Model selection for different AI capabilities.
- Language support for AI responses.
- Provides a structured response format, including steps and answers.
- No need for additional dependencies; it uses osTicket's built-in AJAX and templating system.
- Support osTicket versions 1.17 and above.
Gemini Models :
- Gemini 1.5
- Gemini 2.5 Flash Lite
- Gemini 2.5 Flash
- Gemini 2.5 Pro
-
Plugin Management — Navigate to the Admin Panel > Manage > Plugins and select Ask AI Plugin to install.

-
Create Plugin Instance — Configure your plugin instance by setting the API Key, model, and preferred response language.


-
Activate Plugin — Once created, activate the plugin so it’s ready to use.

-
Ticket View — Open a ticket in the agent panel. You will see the "Ask AI" button under the "More" dropdown.

-
AI Response Popup — Click the link to open a popup where the AI generates step-by-step solutions for the ticket issue.

ASK_AI/
├── templates/
│ └── ticket-askai.tmpl.php # Ticket reply template for AI
├── askai.php # Main AI request handler
├── config.php # Plugin configuration
├── plugin.php # Main plugin entry point
├── README.md # Plugin documentation
└── LICENSE # License file
Note: The
.ide-helper.phpfile is for development purposes only and is not required in production.
- Make sure you have a compatible version of osTicket installed.
- Clone this repository into the
include/pluginsfolder in your osTicket installation:git clone https://github.com/ravhirizaldi/osticket-ai-plugin.git ASK_AI
- Go to Admin Panel > Manage > Plugins in osTicket.
- Enable the osTicket AI Plugin.
- Open the plugin settings and enter your required API Key.
- Select the AI model you want to use.
- Set the default language for AI responses.
- API Key: Required to connect to the AI service.
- Model: Choose the AI model you want to use.
- Default Language: Set the default language for automated responses.
- A user submits a ticket.
- An agent opens the ticket and clicks the "Ask AI" button at "More Button > Ask AI".
- The AI generates a relevant response.
- The agent can review the AI's response and use the suggestion to fix the problem.
If you want to develop this plugin:
# Clone repository
git clone https://github.com/ravhirizaldi/osticket-ai-plugin.git
cd osticket-ai-plugin- Intelephense — Recommended for PHP development to enable intelligent code completion, type hints, and symbol navigation.
After installing it in your IDE (e.g., VSCode), add the following to yoursettings.jsonso Intelephense can recognize osTicket's core files:
"intelephense.environment.includePaths": [
"C:/Users/DELL/Documents/CAJ/Code/osticket/include"
]Modify the code as needed, then reload the plugin in osTicket to test your changes.
Contributions are welcome. Please fork this repository, create a new branch, and submit a pull request.
This plugin is released under the MIT license. See the LICENSE file for details.