wit.ai-无法识别的用户条目 [英] wit.ai - unrecognised user entries

查看:102
本文介绍了wit.ai-无法识别的用户条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以为无法识别的用户条目提供一个包罗万象的功能,以将用户转移到特定故事中?

is it possible to have a catch-all for unrecognized user entries to move the user into a particular story?

例如在对话中.如果没有匹配的故事,机器人会做出响应,尝试将用户推回正轨吗?

For example in a conversation. If there are no matching stories the bot will respond to try and push the user back on track?

[用户]你好吗

[user] Hi how are you

[bot]很好,你好吗?

[bot] good, how are you?

[用户]很棒

[机器人]很好

-用户输入不匹配的句子---

--- user enters an un-matched sentence ---

[bot]我听不懂你的话.您要订购披萨吗?

[bot] I did not understand you. Would you like to order a pizza?

[用户]是

...等

推荐答案

我不知道这是否是最佳解决方案,但我执行以下操作:

I don't know if it's the best solution but I do the following:

1)创建一个故事,而无意捕捉没有匹配的故事".

1) Create a story without intent to catch the "no matching stories".

2)机器人回答:我不了解您.您想订购披萨吗?"

2) The bot answers: "I did not understand you. Would you like to order a pizza?"

3)是/否处理 https://wit.ai/docs/recipes #handle-yesno-answers

4)如果是,则创建一个动作调用"jumpToPizzaOrderingStory".在您这一边,此操作模仿"用户发送我要订购比萨饼"的事实,这将触发您的PizzaOrdering故事.

4) If yes, create an action call "jumpToPizzaOrderingStory". On your side, this action "emulates" the fact that the users sent "I want to order a pizza" that will triggered your PizzaOrdering story.

这篇关于wit.ai-无法识别的用户条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆