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

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

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

aesircloud/statamic-ai-chatbot

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.

aesircloud/statamic-ai-chatbot 适用场景与选型建议

aesircloud/statamic-ai-chatbot 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 26 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 03 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「addon」 「laravel」 「ai」 「statamic」 「chatbot」 「AesirCloud」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 aesircloud/statamic-ai-chatbot 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 aesircloud/statamic-ai-chatbot 我们能提供哪些服务?
定制开发 / 二次开发

基于 aesircloud/statamic-ai-chatbot 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

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