> For the complete documentation index, see [llms.txt](https://bothub.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bothub.gitbook.io/project/advanced-tool/api/switch-to-live-agent.md).

# 呼叫人工

## 切换到人工模式（即将上线）

某些时候，希望能够在用户触发某些特殊的Postback的时候，由人工介入来达到更好的效果。Bothub为此类Postback定义了特别的格式(Json格式的字符串):

```
{
"type": "enable_live_chat", //必填
"ref" : "用于标记用户的来历", // 必填
"meta" : "预留字段，用于可能需要的其他内容" // 选填

```

若Bothub监听到此类型的postback时，将会进入人工模式，包括如下内容

* 对用户发送的文字，图片和视频仅记录，不作反应
* 用户点击菜单栏内容和之前卡片上的postback，正常反应。

进入人工模式后，如果一段时间内用户和页面双方都没有说话，则自动回到自动模式，Bothub将继续对用户发送的文字，图片，视频等加以反应。此时间可配置，默认为30分钟。
