问题
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