Drupal is a registered trademark of Dries Buytaert

The Charts AI Agents module provides a plugin (with hopes to include more) that can send information about your Drupal site to a chosen AI provider to have it help you create charts.

Dependencies

  1. The AI Core module, with at least one AI Provider to be installed and configured
  2. The AI Agents module, which includes the Views Agent plugin that this module extends
  3. The Charts module, which is needed to display a chart using Views.
  4. A charting submodule, such as Charts Highcharts, which is needed to display a chart using Views.

Documentation

Please start by using the documentation provided by the AI Agents module, available here: https://project.pages.drupalcode.org/ai_agents/, and the Charts module, available here: https://www.drupal.org/docs/contributed-modules/charts.

Once you have the AI Agents module installed and configured, you can create your Charts AI Agent, following the same instructions for the Views Agent.

To create a chart, you either need to use the Explore page provided by the AI Agents module, which will be available at /admin/config/ai/agents/explore?agent_id=charts_views_agent (although the) ID referenced in that link will be the machine name of your agent), or you can use the AI Chatbot, accessible as a Block you will need to place on your site.

Here's an example prompt you can provide to the AI Chatbot to create a new chart:

Please create a view of Chart Usage Statistics nodes using the chart style plugin. Use the title field as the label and the 7.x field as data provider. Make the chart a line chart using the Highcharts library.


Activity

Total releases
2
First release
Jan 2025
Latest release
11 months ago
Release cadence
59 days
Stability
0% stable

Releases

Version Type Release date
1.0.0-alpha1 Pre-release Mar 26, 2025
1.0.x-dev Dev Jan 26, 2025