┌─────────────────────────────────────────────────────────────┐
│ 客户网站 │
│ (www.example.com) │
│ │
│
注意: publicKey 和 apiBase 是必填参数。
优点:
缺点:
---
| 参数 | 类型 | 默认值 | 说明 |
| `publicKey` | string | **必填** | 公钥,格式 `wpk_live_xxx` |
| `apiBase` | string | **必填** | API 地址 |
| `theme` | string | `light` | `light` / `dark` |
| `primaryColor` | string | `#4f46e5` | 主题色 |
| `position` | string | `bottom-right` | 悬浮位置 |
| `homeMode` | boolean | `false` | 启用首页快捷问题模式 |
| `homeSubtitle` | string | - | 首页模式副标题 |
| `helpUrl` | string | - | 帮助中心链接 |
| `locale` | string | `zh-CN` | `zh-CN` / `en` |
| `zIndex` | number | `999999` | CSS z-index |
登录 AI Chat Bot 管理后台 → 选择 Bot → 复制嵌入代码
将嵌入代码添加到页面 HTML 的
前: