PHPackages                             level7up/ai-assistant - 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. level7up/ai-assistant

ActiveLibrary

level7up/ai-assistant
=====================

AI Assistant package for Laravel applications

v1.2.0(7mo ago)02MITBlade

Since Sep 17Pushed 7mo agoCompare

[ Source](https://github.com/level7up/php-ai-assistant)[ Packagist](https://packagist.org/packages/level7up/ai-assistant)[ RSS](/packages/level7up-ai-assistant/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

AI Assistant Package
====================

[](#ai-assistant-package)

A Laravel package that provides an AI-powered assistant widget for laravel applications.

Features
--------

[](#features)

- Floating chat widget that can be embedded anywhere in your application
- Natural language processing using OpenAI API
- Fallback to direct keyword matching when AI is not available
- RTL (Right-to-Left) language support
- Customizable route mappings
- Responsive design

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

[](#installation)

You can install the package via composer:

```
composer require level7up/ai-assistant
```

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

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag=ai-assistant-config
```

### OpenAI API Key

[](#openai-api-key)

Set your OpenAI API key in your `.env` file:

```
OPENAI_API_KEY=your-api-key

```

If the API key is not provided, the assistant will fall back to direct keyword matching.

### Route Mappings

[](#route-mappings)

Edit the `config/ai-assistant.php` file to customize the route mappings:

```
'route_mappings' => [
    'create purchase' => [
        'route' => 'purchases.create',
        'label' => 'Create Purchase'
    ],
    // Add more mappings as needed
],
```

Usage
-----

[](#usage)

### Adding the Widget to Your Layout

[](#adding-the-widget-to-your-layout)

Add the following Blade directives to your main layout file:

```
@aiAssistantWidgetCSS
@aiAssistantWidget
@aiAssistantWidgetJS
```

Make sure to include the CSS directive in the `` section and the JS directive before the closing `` tag.

### Standalone Page

[](#standalone-page)

The package also provides a standalone page at `/ai-assistant` that can be accessed directly.

Customization
-------------

[](#customization)

### Translations

[](#translations)

The package comes with English and Arabic translations. You can publish the translation files to customize them:

```
php artisan vendor:publish --tag=ai-assistant-translations
```

### Views

[](#views)

You can publish the views to customize them:

```
php artisan vendor:publish --tag=ai-assistant-views
```

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance66

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

Every ~0 days

Total

3

Last Release

234d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf0e884d5d8af4716ceca4ecaf21f3392cffe9e339fe3f215ec425915d4d14c1?d=identicon)[level7up](/maintainers/level7up)

---

Top Contributors

[![level7up](https://avatars.githubusercontent.com/u/47832762?v=4)](https://github.com/level7up "level7up (4 commits)")

### Embed Badge

![Health badge](/badges/level7up-ai-assistant/health.svg)

```
[![Health](https://phpackages.com/badges/level7up-ai-assistant/health.svg)](https://phpackages.com/packages/level7up-ai-assistant)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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