Data Copilot plugin screenshot
Dark mode ready
Multilingual support
Supports v5.x

Data Copilot

Community

Generate intelligent charts, data tables, and automated PDF reports directly from your database using natural language prompts.

Tags: Analytics Tables
Supported versions:
5.x
Matondo avatar Author: Matondo

Package health

Beta

Automated checks of this plugin's Composer package

92 / 100
Security 85
Maintenance 100
Ecosystem 100
15 checks
  • Skipped: GitHub Actions pinned to SHA
  • Skipped: GitLab CI includes pinned to SHA
  • Passed: Open security advisories
  • Passed: Dependabot PR responsiveness — No open Dependabot PRs.
  • Skipped: Renovate MR responsiveness
  • Skipped: Dependabot or Renovate configured
  • Skipped: Dependency update cooldown configured
  • Failed: Provides a security policy View details on Plumb
  • Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
  • Passed: Commit and release recency — Active: last commit 4 days ago; last release 4 days ago.
  • Passed: composer.lock not committed by library composer.lock is absent from the released dist archive.
  • Passed: Dist archive is lean
  • Passed: Current Laravel version supported — Package dependencies resolve together with current Laravel 13.0.
  • Passed: Current PHP version supported — Constraint ^8.1 supports current PHP 8.5.
  • Skipped: Current Symfony version supported
Third-party plugin. This is built by the community, not the Filament team. Filament does not review, endorse, or vet the security of plugins outside the filament/ namespace. Review the source and install at your own risk. Found malware or an unresolved security issue the author won't address? Report it .
Powered by Plumb Last scanned 22 hours ago

Documentation

Filament Data Copilot is a powerful AI-driven assistant for Filament PHP that allows you to chat with your database. Turn plain natural language into precise SQL queries, interactive charts, textual insights, and automated PDF reports directly inside your Filament Admin Panel.

#Table of Contents

#Features

  • Natural Language to SQL: Stop writing complex SQL queries manually. Just ask for what you want in plain text.
  • Dynamic & Interactive Charts: Automatically renders data as Bar, Line, Pie, Doughnut, Stacked, and Polar Area charts.
  • AI-Generated Insights: Provides a brief, intelligent textual interpretation of the data fetched.
  • Safe & Restricted Context: Strictly limit which database tables and columns the AI is allowed to query to prevent unauthorized data access.
  • Scheduled Reports via Email: You can easily schedule report generation and receive updates directly in your inbox daily, weekly, or monthly.
  • PDF Exports: Export your charts and tables to beautiful PDF files.
  • Multi-language Support: Automatically adapts to your application's locale. Prompt the AI in any language (English, Spanish, French, Arabic, etc.), and the AI will dynamically translate SQL outputs seamlessly.

#Supported AI Providers

Powered by the robust Laravel AI SDK, this package supports multiple Large Language Models out-of-the-box:

  • OpenAI (GPT-4o, GPT-4o-mini)
  • Google Gemini
  • DeepSeek
  • Azure OpenAI
  • Anthropic
  • And all other providers supported by the laravel/ai package!

#Installation

You can install the package via composer:

composer require matondojk/filament-data-copilot

Publish and run the migrations:

php artisan vendor:publish --tag="filament-data-copilot-migrations"
php artisan migrate

(Optional) Publish the config file:

php artisan vendor:publish --tag="filament-data-copilot-config"

(Optional) Publish the translations:

php artisan vendor:publish --tag="filament-data-copilot-translations"

#Usage

Register the plugin in your Filament Panel Provider (usually app/Providers/Filament/AdminPanelProvider.php):

use Matondojk\FilamentDataCopilot\FilamentDataCopilotPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugin(FilamentDataCopilotPlugin::make());
}

Once registered, the Data Copilot and its Settings pages will appear in your Filament navigation menu.

#Scheduling Reports

This package allows users to schedule reports directly from the interface to be sent via email on a daily, weekly, or monthly basis.

To ensure these scheduled emails are actually processed and sent out automatically, you must register the package's console command in your application's scheduler (typically located in routes/console.php):

use Illuminate\Support\Facades\Schedule;

Schedule::command('ai:send-scheduled-reports')->hourly();

Note: Make sure your server's Cron is properly configured to run php artisan schedule:run every minute as per the official Laravel documentation.

#Configuration

Before making your first query, you must set up the AI context:

  1. Navigate to the Settings page in your Filament panel.
  2. Select your preferred base language and currency.
  3. Select your AI Provider (e.g., OpenAI) and paste your API Key.
  4. Allowed Models: Select which Eloquent Models (Tables) the AI is authorized to read. The AI will strictly be blocked from accessing any table not selected here.
  5. Business Context: Provide a short description of your business to give the AI context for better insights.

#Prompt Examples

Because the package is completely multi-language, you can prompt the AI in any language you want. Here are some examples of what you can type into the Data Copilot:

#Sales & Revenue

"Show me the total revenue generated grouped by product category for the last 6 months."

"Show the total sales made per month this year, grouped by order status."

#Operations & Logistics

"Present the temporal evolution of purchases and sales on a daily basis. Show total bought, total sold, and the variation. Identify trends between inventory replacement and sales rhythm."

#Customers

"Who were the top 5 customers that purchased the most in our store by total value in the last quarter?"

#Security

If you discover any security-related issues, please use the issue tracker directly.

#License

The MIT License (MIT). Please see License File for more information.

The author

Matondo avatar Author: Matondo

Software Engineer specializing in PHP and Laravel, focused on designing and developing scalable SaaS platforms and enterprise web applications. Experienced in software architecture, RESTful APIs, FilamentPHP, Livewire, AI integrations, and database design, delivering secure, maintainable, and high-performance solutions through clean code and best engineering practices.

Plugins
2
Stars
2

From the same author