diff --git a/widget/app/page.tsx b/widget/app/page.tsx index e59a9f2..7cab33c 100644 --- a/widget/app/page.tsx +++ b/widget/app/page.tsx @@ -1,12 +1,15 @@ "use client"; -import { useEffect, useState } from "react"; import dynamic from "next/dynamic"; +import { useEffect, useState } from "react"; -import type { WidgetHostConfig } from "@/lib/widget/config"; import { generateUUID } from "@/lib/utils"; +import type { WidgetHostConfig } from "@/lib/widget/config"; const STORAGE_KEY = "cs-agent-widget-test-config"; +const GITHUB_URL = "https://github.com/huabeitech/cs-ai-agent"; +const GITEE_URL = "https://gitee.com/huabeitech/cs-ai-agent"; +const OFFICIAL_SITE_URL = "https://aiagent.huabei.pro"; type TestConfig = WidgetHostConfig; @@ -165,168 +168,378 @@ function WidgetTestPageInner() { `; return ( -
-
-
-
-
- {status} +
+
+
+ +
+ +
+ +
+
+
+
+
+
+ Widget Playground +
+
+ 插件配置 +
+
+ 这里是首页主体。先填渠道和展示参数,再直接挂载 Widget 验证效果。 +
+
+
+ {status} +
+
+ +
+ + + + + + + + + +
+ +
+ + +
+
+ + +
+
+ +
+
+
+
+
+
+ 产品说明 +
+

+ 不是一个聊天壳子,而是客服系统的前端入口。 +

+

+ 这个页面主要用于配置和演示客服插件,但插件本身承接的是完整客服链路中的前端接入层。 + 它把用户消息带入统一会话,再由后端串联 AI 回复、知识库检索、人工接管和后续工单处理。 +

+
+ +
+
+
接待模式
+
+ AI + 人工协同 +
+
+
+
回答方式
+
+ 知识库 RAG 驱动 +
+
+
+
后续处理
+
+ 支持工单闭环 +
+
+
+
+
-
-
- -
-

- 这段脚本就是外部业务系统接入时需要放到宿主页面里的最小配置。 -

-
-            {snippet}
-          
-
+
); diff --git a/widget/public/images/logo.png b/widget/public/images/logo.png new file mode 100644 index 0000000..c34fe4c Binary files /dev/null and b/widget/public/images/logo.png differ