Mistral AI support for Matomo.
This Matomo plugin allows you to connect with MistralAI and get insights for your reports
Install this plugin from the Marketplace as super user or download the plugin and install it on your server from FTP in
the /plugins
folder.
To activate Mistral AI, 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 three 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 :
MistralAI.getResponse
with parameters $idSite
, $period
, $date
, $messages
MistralAI.getInsights
with parameters $idSite
, $period
, $date
, $reportId
, $messages
Where $messages
is an array that respect the MistralAI format.
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 !