> For the complete documentation index, see [llms.txt](https://doc.crisen.org/ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.crisen.org/ai/tencent/intelligent-chat.md).

# 智能闲聊

```
$res = $ai->nlp()->textChat([
    'session'  => '10000',   //会话标识（应用内唯一）
    'question'  => '你叫什么名字'  //用户输入的聊天内容
]);


if($res->toArray()){
    var_dump($res->toArray());
}
```
