带有Google助手的API.AI-电话号码捕获问题 [英] API.AI with google assistant - phone number capture problems

查看:74
本文介绍了带有Google助手的API.AI-电话号码捕获问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试获取电话号码。实际上还有许多其他数字,例如金额,邮编等。我们正在使用Google Home。

We are trying to capture a phone number. Actually many other numbers, like amounts, zip, etc. We are using Google Home.

以下网址是我们在实现方面收到的JSON有效负载。实体名称为TheNumber。

The below urls are JSON payloads we received on the fulfillment side. The entity name is TheNumber.

当我们将实体设置为@ sys.number时,一个JSON是@ sys.phone-number。

One JSON is when we setup the entity as @sys.number the other JSON when it was @sys.phone-number.

https:// s3.amazonaws.com/xapp-bela/gh/number-test.json

https://s3.amazonaws.com/xapp-bela/gh/phone-number-test.json

第一个问题是Google助手真的很难识别数字序列,例如电话号码或邮政编码。但是,即使正确(根据JSON有效负载中的originalRequest),当实体到达实现端时,它仍然具有错误的值。

The first problem is that the google assistant is really struggling to recognize number sequences, like phone numbers or zip codes. But even when it gets it right (according to the originalRequest in the JSON payload), the entity still has the wrong value when it arrives to the fulfillment side.

我猜我的问题是我做错了什么?有人看到同样的问题吗?

I guess my question is what am I doing wrong? Is anybody seeing the same problems?

推荐答案

不确定这会有所帮助,因为这更多的是与Google Home设备通信。 ...我也遇到了类似的问题,数量很大。如果您将@ sys.number-sequence用作Intent上下文的一部分,这将使您能够朗读更长的数字,而设备不会打扰您。在您的NodeJS代码中,您可以获取该数字序列的参数以供您在Google Home Agent中使用。

Not sure this will help since this is more about talking to the Google Home device but.... I too was having a similar issue with a long number. If you use @sys.number-sequence as part of your Intent's context, this will allow you to recite much longer numbers without the device interrupting you. In your NodeJS code, you can grab the argument for that number-sequence for use in your Google Home agent.

if (assistant.getArgument('number-sequence') != null) { <do something> }

这篇关于带有Google助手的API.AI-电话号码捕获问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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