没有响应的 Watson Conversation_Nodes
Watson Conversation_Nodes that has no response
所以我写了这个JSON代码就像下面的
{
"context": {
"action": {
"dates": "$dates",
"command": [
"check-dates"
]
},
"output": {
"text": {
"values": [
"$dates, Do you want to pick this as a designated date?"
]
}
}
},
"output": {}
}
问题是,这并不像我预期的那样算作响应,我试图删除最后一个 "output" 东西,但由于某些原因,每当我再次单击该节点时它就会弹出。欢迎提出任何建议 :D 谢谢
您的 JSON 有一些不正确的语法。您尚未关闭上下文
中的所有 JSON 值
求解答:
{
"context": {
"action": {
"dates": "$dates",
"command": [
"check-dates"
]
}
},
"output": {
"text": {
"values": [
"Your answer here."
],
"selection_policy": "sequential"
}
}
}
如果您不想为用户提供一个响应,请将 [] 设为空,例如:
{
"context": {
"action": {
"dates": "$dates",
"command": [
"check-dates"
]
}
},
"output": {
"text": {
"values": [
""
],
"selection_policy": "sequential"
}
}
}
我建议,因为您要确保 JSON 中的语法是否正确 here。
所以我写了这个JSON代码就像下面的
{
"context": {
"action": {
"dates": "$dates",
"command": [
"check-dates"
]
},
"output": {
"text": {
"values": [
"$dates, Do you want to pick this as a designated date?"
]
}
}
},
"output": {}
}
问题是,这并不像我预期的那样算作响应,我试图删除最后一个 "output" 东西,但由于某些原因,每当我再次单击该节点时它就会弹出。欢迎提出任何建议 :D 谢谢
您的 JSON 有一些不正确的语法。您尚未关闭上下文
中的所有 JSON 值求解答:
{
"context": {
"action": {
"dates": "$dates",
"command": [
"check-dates"
]
}
},
"output": {
"text": {
"values": [
"Your answer here."
],
"selection_policy": "sequential"
}
}
}
如果您不想为用户提供一个响应,请将 [] 设为空,例如:
{
"context": {
"action": {
"dates": "$dates",
"command": [
"check-dates"
]
}
},
"output": {
"text": {
"values": [
""
],
"selection_policy": "sequential"
}
}
}
我建议,因为您要确保 JSON 中的语法是否正确 here。