Dialogflow sys.location to detect full address (?)

微笑、不失礼 提交于 2021-01-29 08:07:39

问题


I cant find a why to handle this situation:

Agent: Tell me your address

User Via j.f. Kennedy, Padova

in my weebhook I would like to receive something like:

{city:"Padova", streets:"Via John Fitzgerald Kennedy"}

instead of the value of the street detect by dialogflow using sys.location:

{city:"Padova", streets:"Via j.f Kennedy"}

My goal is to have the full name of the streets in my weebhook, I read https://cloud.google.com/dialogflow-enterprise/docs/reference/system-entities but I dont find help to my problem. If its not possible handle this with diaolog flow theres another way?


回答1:


as said by sid8491, in dialogflow it isn't possible, you need to use a weebhook to pass the address that you are getting from the user to an API, I had the same issue and here in France, the government has an API which list all the addresses in France. If the address isn't known, the API return a list of the most matching addresses.

Often postal compagnies have this kind of API



来源:https://stackoverflow.com/questions/55021254/dialogflow-sys-location-to-detect-full-address

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