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

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

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

xddesigners/silverstripe-ai-assistant

最新稳定版本:1.0.0

Composer 安装命令:

composer require xddesigners/silverstripe-ai-assistant

包简介

CMS AI assistant UI for Silverstripe, powered by xddesigners/silverstripe-ai

README 文档

README

CMS AI assistant UI for SilverStripe, powered by xddesigners/silverstripe-ai.

Adds an Assistant tab to CMS edit forms, letting editors generate and preview AI-written content for any configured fields — without overwriting the real content until they explicitly accept it.

Requirements

Installation

composer require xddesigners/silverstripe-ai-assistant

Run a dev/build after installation:

sake dev/build flush=1

Configuration

The module requires the silverstripe-ai environment variables to be set. Copy .env.example as a starting point:

AI_PLATFORM_TYPE="openai"
AI_MODEL="gpt-4o-mini"
AI_API_KEY="sk-xxx"

Default setup

Out of the box, the assistant is applied to:

  • SiteTree — fields: Title, Content, MetaDescription
  • DNADesign\Elemental\Models\ElementContent — fields: Title, HTML

Applying the assistant to your own DataObjects

Add AIAssistantExtension to any DataObject and list the database fields you want included:

App\Models\MyDataObject:
  extensions:
    - XD\SilverstripeAIAssistant\Extensions\AIAssistantExtension
  ai_assisted_fields:
    - Title
    - Summary
    - MetaDescription

Run dev/build flush=1 after updating the config.

How it works

Once installed, each configured DataObject gets an Assistant tab in its CMS edit form, inserted after the Main tab.

The tab contains:

  1. AI prompt — a textarea where the editor provides instructions (e.g. "Improve for SEO while keeping the same tone of voice").
  2. Generate content button — sends the current field values as context to the /ai/generate endpoint and populates preview copies of the configured fields with the AI response.
  3. AI-assisted fields — read-only previews of the AI-generated content. TinyMCE (HTML) fields are fully supported.
  4. Accept AI Content button — copies the previewed AI content into the real CMS fields. A confirmation dialog is shown before any values are overwritten.

Saving the record is always a separate, explicit action — accepting the AI content only updates the live form fields.

Customising the default AI instructions

The default system instruction ("You are a helpful assistant and SEO expert.") can be changed in YAML:

XD\SilverstripeAI\Services\AIClient:
  default_instructions: 'You are an expert copywriter for a sustainable fashion brand.'

Editors can also override instructions per-generation using the AI prompt textarea in the CMS.

License

BSD-3-Clause © XD Designers

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-03-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固