定制 aesircloud/statamic-ai-chatbot 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

aesircloud/statamic-ai-chatbot

最新稳定版本:0.7.1

Composer 安装命令:

composer require aesircloud/statamic-ai-chatbot

包简介

AI chatbot addon for Statamic with provider switching, FAQs, leads, and knowledge retrieval.

README 文档

README

aesircloud/statamic-ai-chatbot is a Statamic addon scaffold for building a provider-flexible AI chatbot with FAQ handling, knowledge retrieval, support escalation, and lead capture.

Included in this scaffold

  • Reusable Statamic addon package structure under the AesirCloud\\StatamicAiChatbot namespace
  • Configurable provider defaults for text generation, embeddings, and reranking
  • Database models and migrations for bot profiles, FAQs, sources, knowledge chunks, chats, and leads
  • Public widget tag via {{ ai_chatbot:widget }} with Vue-powered chat and lead capture UI
  • Control panel utility surface for profile visibility, provider defaults, and sync triggering
  • Source driver contracts and first-party Statamic content plus YouTube transcript connectors
  • Lead delivery drivers for database, email, and webhook dispatch
  • Console commands for knowledge sync and retention pruning

Installation

  1. Require the package in a Statamic 5.x or 6.x app running Laravel 12+ and PHP 8.3+.
  2. Publish the package config:
php artisan vendor:publish --tag=statamic-ai-chatbot-config
  1. Publish and run the package migrations along with the Laravel AI SDK migrations.
  2. Install the frontend dependencies in the host app and build the addon assets:
npm install
npm run build
  1. Add a bot profile record, FAQs, and source connections, then render the widget in Antlers:
{{ ai_chatbot:widget profile="default" }}

Configuration notes

  • config/statamic-ai-chatbot.php controls provider defaults, widget defaults, retention, queue behavior, and lead destinations.
  • Text generation and embeddings are intentionally separated, so you can use one provider for chat and another for retrieval.
  • The current YouTube connector expects transcript text in the source connection config. It already handles URL normalization and can be extended to use a real transcript ingestion provider later.

Current implementation boundaries

  • The control panel utility is a functional dashboard, not yet a full CRUD editor for all records.
  • The widget currently uses JSON requests instead of server-sent streaming.
  • Knowledge retrieval is keyword-first with optional embeddings stored as JSON arrays, which keeps the package database-agnostic for v1.
  • Public widget asset delivery assumes the package assets are built and published with the host application.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固