How i can get user email,name while end user talking to Dialog flow ChatBot on Google Hangout

╄→尐↘猪︶ㄣ 提交于 2019-12-25 01:52:54

问题


Am going to integrate DialogFlow Bot with Hangout integration, I need the username and email whom my chatbot is communicating


回答1:


You will need to set a a direct API from Hangout from there you can use Data.User to grab what you need

You can see more here https://developers.google.com/resources/api-libraries/documentation/chat/v1/csharp/latest/classGoogle_1_1Apis_1_1HangoutsChat_1_1v1_1_1Data_1_1Message.html




回答2:


I have the same requirement but I don't really understand the answer provided here. In Dialogflow I use the native Hangout Chat integration : https://cloud.google.com/dialogflow/docs/integrations/hangouts

So I suspect that this integration does not send all payload from Hangouts chat to Dialogflow.



来源:https://stackoverflow.com/questions/58430351/how-i-can-get-user-email-name-while-end-user-talking-to-dialog-flow-chatbot-on-g

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