This plugin has been created in order to integrate ChatGPT into Matomo as a widget. It is nothing complicated, it just consists in writing your prompts through the Matomo User Interface rather than using ChatGPT.
The difference is that it is using here the ChatGPT API rather than the ChatGPT User Interface.
In order to get started, you need to create an OpenAI API token at https://platform.openai.com/account/api-keys -> Then you add this token into Personnal Settings in Matomo -> Then you add the widget and you are good to go.
Install this plugin from the Marketplace as super user or download the plugin and install it on your server from FTP in
To activate ChatGPT, you have to set your API Key to the System Settings as a superuser. Once you set your API Key, a chatbox will appear on the dedicated page.
You can also choose between two models :
And adjust the base prompt for the chat and the insight. You are free to make your own prompt to enhance the answer of AI.
Click on the button located at the right of every datatable reports in the Matomo UI. It'll trigger an overlay with generated insights for this report.
Now you tried and love this plugin, don't hesitate to share the good news !
You can use this plugin via API with two endpoints :
ChatGPT.getResponse with parameters
ChatGPT.getInsights with parameters
How to install this plugin
This plugin is available in the official marketplace of Matomo. You have to install the same way as other plugins
Is the plugin active for all Matomo users in my instance ?
Yes, if you choose this plugin for your Matomo instance, all users will be able to use it.
How can I contribute to this plugin ?
You can help me develop this plugin by contacting me. You can also create the project and request an integration. Any way you consider legitimate to contribute is welcome.
How long this plugin will be maintained ?
As long as possible, I have many project to maintain, I'm the first user of this plugin and I use Matomo on many project, if I see errors, I'll patch this plugin faster as possible !
What does this plugin do?
It just uses the ChatGPT API in order to answer some prompts.
What do I need to make it work?
You need to have an OpenAI token, you will find it at https://platform.openai.com/.
Can I define the temperature and the token limit?
Not yet, but feel free to edit the source code to your wishes, it is released under the GPLv3 license.
View and download this plugin for a specific Matomo version: