在Watson助手对话框中,我们现在可以指定各种响应类型(文本、选项、图像和暂停)
例如
使用以下API调用,我只能接收“文本”响应,而不能接收“选项”响应。
有什么想法吗?
curl-x post\
'https://gateway.watsonplatform.net/assistant/api/v1/workspaces/<工作区ID>/message/?版本=2018-02-16'.\
-H'授权:基本<令牌>=''\
-h“缓存控制:无缓存”\
-h'内容类型:application/json',\
D′{
“输入”:。{
“text”:“嗨”
}
}
使用以下API调用,我只能接收“文本”响应,而不能接收“选项”响应。
有什么想法吗?
curl -X POST \
'https://gateway.watsonplatform.net/assistant/api/v1/workspaces/<Workspace ID>/message/?version=2018-02-16' \
-H 'Authorization: Basic <Token>==' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"input": {
"text": "Hi"
}
}'