API.AI with google assistant - phone number capture problems

家住魔仙堡 提交于 2019-12-24 02:32:27

问题


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

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

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

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?


回答1:


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> }


来源:https://stackoverflow.com/questions/43356200/api-ai-with-google-assistant-phone-number-capture-problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!