alareqi / filament-ai-assistant
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
Requires
- php: ^8.3
- filament/filament: ^5.0
- laravel/ai: ^1.4
Requires (Dev)
- laravel/pint: ^1.26
- orchestra/testbench: ^10.6|^11.0
- phpunit/phpunit: ^11.5|^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-30 12:49:37 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 |