Search by

alareqi / filament-ai-assistant

alareqi

A panel assistant that prepares reviewable changes through existing Filament resource forms.

Package info

github.com/aymanalareqi/filament-ai-assistant

pkg:composer/alareqi/filament-ai-assistant

Statistics

Installs: 23

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.0 2026-11-30 12:42 UTC

README

Add a floating chat to a Filament 5 panel. Admins can search records, ask about their data, and prepare changes. By default, changes go through Filament’s native review. If you opt in, supported changes can run from chat after the admin explicitly confirms them.

Quick start

1. Install the package.

composer require alareqi/filament-ai-assistant
php artisan migrate
php artisan filament:assets

2. Add the plugin to your existing panel chain.

use Alareqi\FilamentAiAssistant\FilamentAiAssistantPlugin;

return $panel->plugin(FilamentAiAssistantPlugin::make());

3. Grant access and configure AI. In your application service provider's boot(), delegate assistant access to an existing app permission. Replace use-admin-ai with your own ability.

use Illuminate\Support\Facades\Gate;

Gate::define('use-filament-ai-assistant', fn ($user): bool => $user->can('use-admin-ai'));

Set GEMINI_API_KEY in the host environment for the default provider. The installation guide covers provider alternatives and panel-specific access.

4. Try it. Sign in as an authorized admin, open Open AI assistant, and ask “What can I manage here?” Prepare a change to a test record and choose Review draft to check it in Filament.

If you want to confirm supported changes in chat, follow the execution guide. Test the panel’s permissions and fallback before enabling it for users.

Guides

Guide What it covers
Installation Requirements, migrations, AI providers and smoke tests
Configuration Panel options, access, relationships and dictation
Admin guide Search, drafts, actions and chat history
Execution from chat Opt-in, confirmation, price edits and native fallback
Attachments Uploads, storage and privacy
Custom tools and role restrictions Developer hooks and per-role denials
Reporting and aggregates Counts, filters, totals and averages
Operations and upgrades Stable upgrades, deployment and troubleshooting
Tool reference Tool inputs and limits
Development PHP, JavaScript and browser tests