我正在尝试为 StackOverflow 之类的东西构建一个 Dialogflow 代理,它负责处理用户提出的完整问题。我想存储答案(并将其反馈给用户)。例如:
User: "I get an error."
CX: "Which error?"
"Java.lang.NullPointerException"
"Okay, what have you tried so far to solve this problem?"
"I googled it but found no results..."
"On what line of code do you get the error?"
"if (running) {counter ++}"
"Okay, so to summarize:
- You got the error Java.lang.NullPointerException
- You tried: I googled it but found no results...
- You got the problem on the line of code: what line of code do you get the error?
Is that correct?"
CX 中没有“回退意图”-hack;我将如何构建一个带有开放式问题的机器人?