docs: replace environment-specific IPs with localhost
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
```bash
|
||||
bash scripts/bootstrap.sh # LibreDesk 已启动
|
||||
bash scripts/start-tools.sh # 另开终端,tools 服务 :4010
|
||||
curl -s http://127.0.0.1:4100/healthz
|
||||
curl -s http://localhost:4100/healthz
|
||||
```
|
||||
|
||||
## 1. AI Provider(必须先配)
|
||||
@@ -33,7 +33,7 @@ curl -s http://127.0.0.1:4100/healthz
|
||||
|
||||
本栈已把旧 `customer-service-kb` 导入为**帮助中心文章**(而不是 snippets),原因:只有文章能被 AI 引用(`[[cite:id]]`),并且同时进入帮助中心站内搜索。
|
||||
|
||||
公开地址:`http://192.168.31.61:9000/hc/yehwang-help/en`(1 个帮助中心 / 9 个 collection / 108 篇文章,全部 `published + ai_enabled`)。
|
||||
公开地址:`http://localhost:9000/hc/yehwang-help/en`(1 个帮助中心 / 9 个 collection / 108 篇文章,全部 `published + ai_enabled`)。
|
||||
|
||||
重新导入(幂等):
|
||||
|
||||
@@ -50,7 +50,7 @@ node scripts/import-kb-helpcenter.js # 登录 System 并导入
|
||||
3. **API 批量导入**(迁移旧 KB 时用):
|
||||
|
||||
```bash
|
||||
curl -X POST http://192.168.31.61:9000/api/v1/ai/snippets \
|
||||
curl -X POST http://localhost:9000/api/v1/ai/snippets \
|
||||
-H "Authorization: token ${LIBREDESK_API_KEY}:${LIBREDESK_API_SECRET}" \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"title":"Minimum order","content":"The minimum order value is €30.","enabled":true}'
|
||||
@@ -88,7 +88,7 @@ curl -X POST http://192.168.31.61:9000/api/v1/ai/snippets \
|
||||
| Copilot / Generate reply | 开 | 开 | 开 | 开 |
|
||||
| Require agent approval | 否 | 否 | 否 | 否 |
|
||||
|
||||
`GET http://127.0.0.1:4100/tools/manifest`(带 `X-Tools-Key`)会输出每个工具的完整 JSON Schema,可直接复制。
|
||||
`GET http://localhost:4100/tools/manifest`(带 `X-Tools-Key`)会输出每个工具的完整 JSON Schema,可直接复制。
|
||||
|
||||
## 4. 创建 AI Assistant
|
||||
|
||||
@@ -152,11 +152,11 @@ Assistant **只有被分配给会话才会回复**。配置:
|
||||
```html
|
||||
<script>
|
||||
window.LibredeskSettings = {
|
||||
baseURL: 'http://192.168.31.61:9000',
|
||||
baseURL: 'http://localhost:9000',
|
||||
inboxID: 'YOUR_INBOX_UUID'
|
||||
};
|
||||
</script>
|
||||
<script async src="http://192.168.31.61:9000/widget.js"></script>
|
||||
<script async src="http://localhost:9000/widget.js"></script>
|
||||
```
|
||||
|
||||
### 登录用户身份锚定(已实现)
|
||||
@@ -220,7 +220,7 @@ const payload = {
|
||||
- [ ] widget 能开聊,收到 AI 回复
|
||||
- [ ] 未验证时问订单 → AI 引导验证;验证后能查单
|
||||
- [ ] 说“我要人工” → handoff 到 Support 团队
|
||||
- [ ] `curl -s http://127.0.0.1:4100/healthz` 正常
|
||||
- [ ] `curl -s http://localhost:4100/healthz` 正常
|
||||
|
||||
## 10. 常见问题
|
||||
|
||||
|
||||
Reference in New Issue
Block a user