| Install | |
|---|---|
composer require ferarandrei1/filament-ai-chat-widget |
|
| Latest Version: | v1.0.0 |
| PHP: | ^8.1|^8.2|^8.3 |
AI chat widget for Filament v3 with OpenAI integration.

Install via Composer:
composer require ferarandrei1/filament-ai-chat-widget
Run migrations:
php artisan vendor:publish --tag="filament-ai-chat-widget-migrations"
php artisan migrate
Add your OpenAI API key to .env:
OPENAI_API_KEY=sk-your-api-key-here
OPENAI_ORGANIZATION=your-organization-here
Register the plugin & knowledge resource in your Panel Provider:
use Feraandrei1\FilamentAiChatWidget\FilamentAiChatPlugin;
use Feraandrei1\FilamentAiChatWidget\Filament\Resources\AiKnowledgeBaseResource;
public function panel(Panel $panel): Panel
{
return $panel
->resources([
AiKnowledgeBaseResource::class,
])
->plugins([
FilamentAiChatPlugin::make(),
]);
}
Clear caches:
php artisan optimize:clear
The chat widget appears automatically on all panel pages for authenticated users.
You can customize the behavior and appearance of the widget by publishing the configuration:
php artisan vendor:publish --tag="filament-ai-chat-widget-config"
Then edit config/filament-ai-chat-widget.php to adjust settings like:
MIT License