我能够使用 Rasa Core 和 Rasa NLU 开发 Dialog Flow ChatBot。但无法实现对话式聊天机器人。任何人都可以请你帮助我。
For example:
===============================
Bot: Hi, how can I help you ?
User: I want to apply leave.
Bot: Sure, may I know when you want to apply ?
User: 07-07-2018
Bot: Ok, How many days ?
User: 1 day
Bot: Ok, which type of leave ?
User: Casual Leave ?
Bot: You want to apply Casual Leave from 07-07-2018 to 07-07-2018 ?
Bot: Please confirm Yes / No ?
User: Yes
Bot: Congrats, your leave applied successfully.
场景一:
如果我按顺序输入所有内容,则可以正常工作。
场景二:
如果我以否定的方式或不同的问题输入,循环不会中断。
假设
....
Bot: Ok, How many days ?
User: show me my leaves count
Bot: Ok, which type of leave ?
....
如何打破对话流并使其对话。