Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

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"

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Dec 2025
Latest release
8 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.x-dev Dev 9โ€“11 Dec 3, 2025