我已经使用Microsoft bot框架创建了一个客户服务LUIS-QnA bot。该机器人应该回答客户遇到的问题和问题,以便机器人可以回答常见问题,而不是直接向服务台咨询。
但是,它不是交互式的,因为它不具有上下文智能。我如何对其进行培训,使其能够回答诸如以下问题:“我可以获取有关该主题的更多详细信息吗?”和更多。如果可以使用LUIS做到这一点,我想知道如何。
答案 0 :(得分:1)
您可以使用LUIS Action Binding框架,因为它支持以下提到和引用的三个主要方案,但是它还提供了可用于在自己的应用程序中实现或支持自定义方案的工具。
Scenario #1 : Switch from an Action to a new Action
Bot: What do you want to do?
User: Find me a hotel in Madrid -- This would trigger a new `FindHotels` intent with Madrid as Location entity
Bot: When do you want to check-in?
User: Today
Bot: When do you want to check-out?
User: I changed my mind, find flights to Madrid -- This would trigger a new `FindFlights` intent with Madrid as Location entity (`FindHotels` progress is discarded)
Bot: When do you want to flight?
Scenario #2 : Trigger a Contextual Action within a valid Context
Bot: What do you want to do?
User: Find me a hotel in Madrid -- This would trigger a new `FindHotels` intent with Madrid as Location entity
Bot: When do you want to check-in?
User: Today
Bot: When do you want to check-out?
User: Sorry, change the checkin date to tomorrow -- This would trigger a `FindHotels-ChangeCheckin` intent with tomorrow as date (but will execute within the context of `FindHotels` and will update its check-in date previously set)
Bot: Ok, I changed the check-in date to tomorrow
Bot: When do you want to check-out?
Scenario #3 : Trigger a Contextual Action with no previous Context (ie. from scratch)
User: Please change my check-in date to tomorrow
Bot: Ok, I changed the check-in date to tomorrow -- This triggered the `FindHotels-ChangeCheckin` intent which should run in the context of the `FindHotels` action (so main action also is instanced)
Bot: I changed your reservation in Madrid from 03/25 to 03/27 -- The required parameters of the main context are iterated until it can call the action fulfillment
我提到并引用的示例与Node示例有关,如果您使用的是C#,则可以找到示例here
您还可以找到有关它的博客文章,以指导您完成here