byte5/ai-entries-assistant 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

byte5/ai-entries-assistant

最新稳定版本:v0.1.1

Composer 安装命令:

composer require byte5/ai-entries-assistant

包简介

Statamic addon for AI-powered assistant using entry embeddings.

README 文档

README

AI Entries Assistant is a Statamic addon that provides a conversational AI assistant in the control panel. It uses Laravel AI and RAG (Retrieval-Augmented Generation) powered by AI Entry Embeddings to answer questions hidden in your Statamic content.

How It Works

  1. A user starts a conversation from the Statamic control panel.
  2. The user's message is stored and the UserMessageAddedToConversation event is dispatched.
  3. A queued listener invokes the EntriesAssistantAgent, which performs a similarity search against entry embeddings to find relevant content chunks.
  4. The agent produces a Markdown-formatted answer based exclusively on the search results and stores it as an AI assistant message.
  5. The response is delivered to the frontend via broadcasting (Laravel Echo) or polling fallback.

Requirements

Installation

composer require byte5/ai-entries-assistant

Publish the configuration file:

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

Run migrations (creates the ai_entry_assistant_conversations and ai_entry_assistant_messages tables):

php artisan migrate

Configuration

The configuration file is published to config/ai-entries-assistant.php.

AI Provider

By default the addon uses whatever provider is set in config('ai.default'). To use a different provider for the assistant, set it explicitly:

'provider' => 'anthropic',

Supported providers include Anthropic, OpenAI, Gemini, Ollama, Azure, DeepSeek, Groq, Mistral, OpenRouter, and XAI.

Queue

AI response generation runs on a queue. Configure which queue to use:

'jobs_queue' => 'default',

Broadcasting

Real-time message delivery uses Laravel Broadcasting. Disabled by default -- enable it via your .env:

AI_ENTRIES_ASSISTANT_BROADCASTING=true

When disabled, the frontend falls back to polling. You can also configure a separate queue for broadcast events:

'broadcasting_queue' => 'default',

Events

Event When Broadcast
ConversationStarted A new conversation is created --
ConversationDeleted A conversation is deleted --
UserMessageAddedToConversation User sends a message user.message.created on private channel
AiAssistantMessageAddedToConversation AI assistant responds assistant.message.created on private channel

Broadcast events are sent to the conversation.{conversationId} private channel. Each user can subscribe only to their own private channel.

Control Panel

The addon registers a navigation item under AI Tools in the Statamic control panel. Access is gated by the access AI assistant permission.

License

This addon is open-sourced software licensed under the GNU General Public License v3.0 (GPL-3.0). See LICENSE for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2026-04-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固