IBM Watson Conversation 服务中一个节点的多个答案
Multiple answers for a node in IBM Watson Conversation service
如何为特定对话节点指定多个答案?例如,当用户问“What is your name”时,我的 VA 应该回答“My name is Alexander”,或者“You can call me Alexander”,或者“Friends call me Alex”。
也许对话服务必须 return 代码和应用程序检查代码并从答案的数据库中选择一个随机答案。
对于给出响应的应用程序节点,select高级模式并更改为:
{
"output": {
"text": {
"values": [
"My name is Alexander.",
"You can call me Alexander",
"Friends call me Alex"
],
"selection_policy": "random",
"append": false
}
}
}
如何为特定对话节点指定多个答案?例如,当用户问“What is your name”时,我的 VA 应该回答“My name is Alexander”,或者“You can call me Alexander”,或者“Friends call me Alex”。 也许对话服务必须 return 代码和应用程序检查代码并从答案的数据库中选择一个随机答案。
对于给出响应的应用程序节点,select高级模式并更改为:
{
"output": {
"text": {
"values": [
"My name is Alexander.",
"You can call me Alexander",
"Friends call me Alex"
],
"selection_policy": "random",
"append": false
}
}
}