ferarandrei1 / filament-ai-chat-widget
A beautiful AI chat widget plugin for Filament v3 with OpenAI integration
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/ferarandrei1/filament-ai-chat-widget
Requires
- php: ^8.1|^8.2|^8.3
- filament/filament: ^3.0
- illuminate/database: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
- laravel/mcp: ^0.1
- livewire/livewire: ^3.0
- openai-php/laravel: ^0.10|^0.11|^0.12|^0.13|^0.14|^0.15|^0.16|^0.17
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0
- phpunit/phpunit: ^10.0|^11.0
README
AI chat widget for Filament v3 with OpenAI integration.
Screenshots
Requirements
- PHP 8.1+
- Laravel 11.x
- Filament 3.x
- OpenAI API key
Installation
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
Usage
The chat widget appears automatically on all panel pages for authenticated users.
Customization
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:
- Default AI model
- Chat history limit
- UI appearance
License
MIT License
