DialogFlow:如何要求用户拼写单词,我们是否可以增加“错误"数量?在断开连接之前? [英] DialogFlow : how to ask user to spell a word and can we increase the number of "error" before being disconnected?

查看:53
本文介绍了DialogFlow:如何要求用户拼写单词,我们是否可以增加“错误"数量?在断开连接之前?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我还有两个关于DialogFlow和与Google Home/Assistant集成的其他基本问题,我在以前的研究中没有找到它,但也许在某个地方错过了它-真希望不要,因为我不想加重负担,但是google圈子中的一位用户坚持要求我考虑对更多问题使用stackoverflow-:

I've got two basic other questions about DialogFlow and integration with google home / assistant, I didn't find it on my previous researches, but maybe miss it somewhere -really hope not as I do not want to put burden, but one user in google circle insisted me to consider to use stackoverflow for further questions-:

  • 我们可以要求用户口头讲一些特定单词拼写到Dialogflow吗?例如:拼写电子邮件也可以避免错误/密码拼写

  • Can we ask to the user to Spell to Dialogflow some specific words orally? ex: spelling an email to avoid error / password spelling too

当助手从用户那里收集错误答案时,我们是否可以增加错误"的数量?(在两次错误尝试后,它与应用程序断开连接,我想增加这一点)

can we increase the number of "errors" when the assistant is collecting wrong answers from the user? (after two wrong attemps it disconnect from the app, I would like to increase this)

非常感谢!我真的希望我的问题不会出现在错误的地方,因为按照我的理解,规则似乎非常严格,

Thanks a lot ! and really I hope that my question is not at the wrong place, as the rules seem very stringent per my understanting,

推荐答案

这两个功能都不能直接在Dialogflow中使用,但是可以将这些功能专门构建到您的应用程序中.

Neither of these features are available in Dialogflow directly, but it is possible to build upon these into your application specifically.

口头拼写单词

尝试拼写某些内容可能不是良好的用户体验,并且多面对话,以便用户可以通过智能手机输入.

Trying to spell something is probably not a good user experience, and it may be more useful to Multi-surface conversations so that the user can input this through a smartphone.

但是,如果您确实想这样做,则可以在Webhook中有一个意图,该意图将侦听用户的原始文本( app.getRawInput())并删除所有空格并使代码更智能替换("at" =>"@").我可以在我的电子邮件地址中单独说字母.最终会在其中放置一些空间,但这种方式或多或少会起作用.

However, if you do want to do this, you can have an intent in your webhook which will listen for the user's raw text (app.getRawInput()) and remove all spaces and make smart substitutions ("at" => "@"). I can say letters individually in my email address. It ends up putting a few spaces in there, but in a way that does work more or less.

更多后备提示

如果您需要为错误增加更多的宽大处理,则可以通过使用您自己的默认回退意图(接受 @ sys.any )并提供自己的重新提示来自己进行跟踪.

If you need to add more leniency for errors, you can track it yourself by replacing the default fallback intent with your own (accepting @sys.any) and providing your own re-prompts.

请记住,如果用户多次遇到此错误,那么您可能应该提供有用的建议,以使用户重回正确的流程.(对不起,我听不懂.您想做X还是Y?")经过几次迭代,结束对话可能会更好.

Keep in mind if the user is getting this error multiple times, then you should probably provide helpful suggestions that get the user back on the right flow. ("I'm sorry, I couldn't understand. Do you want to do X or Y?") After a few iterations of this, it may be better to end the conversation.

这篇关于DialogFlow:如何要求用户拼写单词,我们是否可以增加“错误"数量?在断开连接之前?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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