Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

AI Report allows you to query your Drupal database using natural language questions, which are then translated into SQL queries by an AI to display your data in tables. This module helps non-technical users access and understand their site's data without needing to write SQL.

AI Report

Query your Drupal database using natural language - no SQL knowledge required!

Warning: This is a work in progress!

How it works

  1. Ask a question in plain English (e.g., "Show me all articles created this month")
  2. The AI generates and executes the SQL query for you
  3. View your data in a formatted table

👇 See it in action below 👇

Features

  • Natural language to SQL query generation
  • AJAX-powered real-time results
  • Security-first: Only SELECT queries allowed
  • Configurable AI models and prompts
  • Database structure and content type awareness
  • Debug mode to view generated SQL and AI responses

Requirements

  • Drupal 9, 10, or 11
  • AI module
  • Configured AI provider (OpenAI, Anthropic, etc.)

Quick Start

  1. Enable the module: drush en ai_report -y
  2. Assign permissions at: People → Permissions
    • Access AI Reports: For users who will generate reports
    • Administer AI Reports: For administrators only
  3. Configure at: Configuration → AI → AI Report
  4. Use at: Reports → AI Report

Example Questions

  • "Show me the 10 most recent users"
  • "List all published articles with their authors"
  • "Find all content updated this week"
  • "Count how many nodes of each type exist"

Activity

Total releases
1
First release
Dec 2025
Latest release
7 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
1.0.x-dev Dev Dec 3, 2025