承接 level7up/ai-assistant 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

level7up/ai-assistant

最新稳定版本:v1.2.0

Composer 安装命令:

composer require level7up/ai-assistant

包简介

AI Assistant package for Laravel applications

README 文档

README

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

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

You can install the package via composer:

composer require level7up/ai-assistant

Configuration

Publish the configuration file:

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

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

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

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 <head> section and the JS directive before the closing </body> tag.

Standalone Page

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

Customization

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

You can publish the views to customize them:

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

License

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

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固