PHPackages                             codewithngoni/filament-ask-ai - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. codewithngoni/filament-ask-ai

ActiveLibrary

codewithngoni/filament-ask-ai
=============================

Adds AI-power on Filament forms fields.

v1.0.0(1y ago)02MITPHPPHP ^8.1

Since Apr 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Ngoni-Sendama/filament-ask-ai)[ Packagist](https://packagist.org/packages/codewithngoni/filament-ask-ai)[ RSS](/packages/codewithngoni-filament-ask-ai/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Filament Ask AI: Build AI-powered Filament forms
================================================

[](#filament-ask-ai-build-ai-powered-filament-forms)

**Filament Ask AI is a Laravel package that adds AI-powered hint actions to Filament form fields. It integrates with AI models (like Mistral, Gemini, and Claude) to provide a "hint action" in your form fields, allowing users to interact with AI directly within your Laravel Filament forms.**

[![Latest Version on Packagist](https://camo.githubusercontent.com/43e20ed319852b58adbbad938c209a03fc34ab68a46c7d55a0a2a152fc27f83c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6465776974686e676f6e692f66696c616d656e742d61736b2d6169)](https://packagist.org/packages/codewithngoni/filament-ask-ai)

[![Total Downloads](https://camo.githubusercontent.com/04a01420e0a151cefed361d7c9889f10ce3fe470ce475388c8b56a34689299e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6465776974686e676f6e692f66696c616d656e742d61736b2d6169)](https://packagist.org/packages/codewithngoni/filament-ask-ai)

Installation
------------

[](#installation)

To install the package, run the following command:

```
composer require codewithngoni/filament-ask-ai
```

Usage
-----

[](#usage)

After installing, run the package installation command:

```
php artisan vendor:publish --tag=filament-ask-ai-config
```

This command will:

Publish the configuration file for Filament AI settings.

Publish the configuration file for openai-php/laravel settings.

Create a symbolic link for storage.

We use Gemini and Mistral for API keys. Add the following to your .env file:

```
MISTRAL_API_KEY=your_mistral_api_key
GEMINI_API_KEY=your_gemini_api_key
```

Configuration
-------------

[](#configuration)

You can configure the AI keys by modifying the config/filament-ask-ai.php file. Ensure that the correct API keys for Mistral, Gemini, and Claude are set.

Usage for Developers
--------------------

[](#usage-for-developers)

Adding AI to Built-in Filament Form Fields You can add AI generation capabilities to TextInput, Textarea, and RichEditor fields using the AskMistral(), AskGemini(), or AskClaude() methods:

Without Options

```
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\RichEditor;

TextInput::make('title')
    ->AskMistral()

Textarea::make('description')
    ->AskGemini()
```

With Options

```
TextInput::make('title')
    ->AskMistral([
        'model' => 'mistral-large-latest',
        'temperature' => 0.7,
    ])

Textarea::make('description')
    ->AskGemini([
        'model' => 'gemini-2.0-flash',
        'max_tokens' => 200,
    ])

RichEditor::make('content')
    ->AskClaude([
        'model' => 'claude-2',
        'temperature' => 0.8,
    ])
```

Credits
-------

[](#credits)

- Ngoni Sendama [CodeWithNgoni](https:/www.codewithngoni.com)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance48

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

382d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/925b82cad07d64d7a128aa21898e0194f8b29d16205bb76bf08e6f6675a2a04f?d=identicon)[Ngoni-Sendama](/maintainers/Ngoni-Sendama)

---

Top Contributors

[![Ngoni-Sendama](https://avatars.githubusercontent.com/u/108223064?v=4)](https://github.com/Ngoni-Sendama "Ngoni-Sendama (4 commits)")

### Embed Badge

![Health badge](/badges/codewithngoni-filament-ask-ai/health.svg)

```
[![Health](https://phpackages.com/badges/codewithngoni-filament-ask-ai/health.svg)](https://phpackages.com/packages/codewithngoni-filament-ask-ai)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
