This Matomo plugin allows you to connect with MistralAI and get insights for your reports

1- Install the plugin from the marketplace or via GitHub

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.

2- Adjust your settings

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 :

  • Mistral Tiny
  • Mistral Small
  • Mistral Medium

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.

3 - Enjoy reports insights

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.

4 - Share with others

Now you tried and love this plugin, don't hesitate to share the good news !

API Support

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

  • Go to the administration panel
  • Look for the Marketplace section and select "Plugins" in the dropdown
  • Then search for "MistralAI", install and activate the plugin.
  • Follow the documentation to install the API fetch method to get the data you want.

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 !

  • A Mistral AI logo

  • General Settings

  • Get information from chat

  • Insights from your reports in one click

  • Simple click AI insight


Please share