Chat with your data in Matomo: embed your AskYourDatabase AI chatbot and query your database in natural language.
Chat with your data, right inside Matomo. AskYourDatabase is an AI chatbot connected to your database: ask a question in plain language, it writes the SQL query, runs it and answers with tables and charts. This plugin brings your AskYourDatabase chatbot into Matomo, so your team can explore the data behind your analytics without leaving Matomo and without writing a single line of SQL.
/plugins folder.The full setup guide, including how to give AskYourDatabase a safe read-only access to your database, is available in the documentation.
This plugin embeds your AskYourDatabase chatbot in Matomo. AskYourDatabase turns questions written in plain language into SQL queries, runs them on your database and answers with tables and charts.
Create an account on AskYourDatabase and connect the database you want to query, for example your Matomo database.
We strongly recommend a dedicated read-only MySQL / MariaDB user, limited to the tables the chatbot needs. Do not give access to the tables storing your Matomo users, passwords and tokens. For example, with the default matomo_ table prefix:
CREATE USER 'askyourdatabase'@'%' IDENTIFIED BY 'a-long-random-password';
GRANT SELECT ON matomo.matomo_site TO 'askyourdatabase'@'%';
GRANT SELECT ON matomo.matomo_goal TO 'askyourdatabase'@'%';
GRANT SELECT ON matomo.matomo_log_visit TO 'askyourdatabase'@'%';
GRANT SELECT ON matomo.matomo_log_link_visit_action TO 'askyourdatabase'@'%';
GRANT SELECT ON matomo.matomo_log_action TO 'askyourdatabase'@'%';
GRANT SELECT ON matomo.matomo_log_conversion TO 'askyourdatabase'@'%';
If your hosting allows it, replace % by the IP addresses used by AskYourDatabase.
5da7b8cf3a372f5e6e6b64af9ae189c7 in https://www.askyourdatabase.com/dashboard/chatbot/5da7b8cf3a372f5e6e6b64af9ae189c7. You can also copy the full URL, the plugin extracts the ID./plugins folder of your Matomo.Click AskYourDatabase in the top menu. The plugin creates a secure session and opens the chatbot. When the session expires, a new one is created automatically.
Only super users can see the menu and open the chatbot, as it can read the connected database.
https://www.askyourdatabase.com iframe.www.askyourdatabase.comHow to install this plugin?
This plugin is available in the official Matomo Marketplace. Install it the same way as other plugins:
I upgraded the plugin and the chatbot does not open anymore
Since version 6.0.0 (for Matomo 6), the plugin uses the AskYourDatabase v2 API. The previous API has been shut down by AskYourDatabase and answers "Please call v2 API". The former "Secret key" setting is no longer used: create an API key in your AskYourDatabase dashboard and enter it with your chatbot ID in the plugin settings.
Where do I find my chatbot ID?
Open your chatbot in the AskYourDatabase dashboard, the ID is the last part of the URL (for example 5da7b8cf3a372f5e6e6b64af9ae189c7). You can paste the full URL in the setting, the plugin extracts the ID.
Is the plugin available for all Matomo users?
No, only super users can see the menu and open the chatbot, because it can read the connected database.
What are the Name and Email settings used for?
They identify the chat sessions in AskYourDatabase. Leave them empty to use the login and email of the Matomo user who opens the chatbot: each user keeps their own conversations. Fill them in to share the same identity for all users.
Is my database safe?
The plugin never connects to your database itself: AskYourDatabase does, with the credentials you configured in their dashboard. Use a dedicated read-only user limited to the tables the chatbot needs, and never give access to the tables storing your Matomo users and tokens. An example is available in the documentation. Your AskYourDatabase API key stays on your Matomo server.
The page displays "AskYourDatabase could not be reached"
Your Matomo server must be able to send HTTPS requests to www.askyourdatabase.com. Check your firewall, and the proxy settings of your Matomo configuration if you use one.
The chatbot area stays blank
A browser extension or a Content Security Policy added by your web server may block the iframe. The plugin allows https://www.askyourdatabase.com in the Matomo Content Security Policy, allow it in your web server configuration too.
How to use this plugin?
Create an account on AskYourDatabase, connect your database, create a chatbot and an API key, then follow the documentation.
How can I contribute to this plugin?
Issues and pull requests are welcome on GitHub. You can also contact us through openmost.com.
How long will this plugin be maintained?
As long as possible. We use Matomo on many projects every day and fix issues as fast as we can.
Version
6.0.0
License
GPL v3+
Keywords
ai, Database, ask, your, askyourdatabase, artificial, intelligence, chatbot, sql
Last Updated
Sep 15th 2026
Requirements
Matomo >=6.0.0-b1,<7.0.0-b1
PHP >=8.1.0
Matomo 5.x, Matomo 6.x
Downloads
21174
Changelog
Support
View and download this plugin for a specific Matomo version: