GoogleCloudPlatform / dialogflow-integrations

Dialogflow integrations with multiple platforms including KIK, Skype, Spark, Twlio, Twitter and Viber
https://cloud.google.com/dialogflow/
Apache License 2.0
256 stars 503 forks source link

Integration with microsoft teams has been achieved but how can I get the user session info and pass through to dialogflow #37

Open barissecen opened 4 years ago

barissecen commented 4 years ago

İntegration with microsoft teams has been achieved but how can I get the user session info and pass through to dialogflow. Because I would like to know who is typing to the chatbot?

dhammikamare commented 4 years ago

İntegration with microsoft teams has been achieved but how can I get the user session info and pass through to dialogflow. Because I would like to know who is typing to the chatbot?

Hi @barissecen, is this 'Microsoft Teams' integration is open source?

mekpavit commented 4 years ago

@barissecen the information about the user are already included in the request sent to Dialogflow API. If you want to get that, I suggest you to develop a simple webhook and connect to the Dialogflow. When the user talks with chatbot, Dialogflow will send all information to this webhook and you can capture all user's information there.

barissecen commented 4 years ago

Thanks. You are right @mekpavit . I got it.

barissecen commented 4 years ago

İntegration with microsoft teams has been achieved but how can I get the user session info and pass through to dialogflow. Because I would like to know who is typing to the chatbot?

Hi @barissecen, is this 'Microsoft Teams' integration is open source?

Yes, I think so.

dhammikamare commented 4 years ago

@barissecen I couldn't find 'Microsoft Teams' integration in the official repo. Was it a third party implementation? Only 'Skype' integration is available, which we can customize for Bot framework.

barissecen commented 4 years ago

@barissecen I couldn't find 'Microsoft Teams' integration in the official repo. Was it a third party implementation? Only 'Skype' integration is available, which we can customize for Bot framework.

Hi yes you are right. We implemented using skype integration.

MANASAMKRISHNA commented 3 years ago

Thanks. You are right @mekpavit . I got it. Hi @barissecen @mekpavit I am working on extracting user information from teams through Dialogflow. I am not finding the piece of code to extract user information from teams in node js. I want to add this piece of code
https://github.com/GoogleCloudPlatform/dialogflow-integrations/blob/master/skype/server.js

I believe that const user_name = turnContext.activity.from.name; will contain the user name but I am not sure how to add a piece of code that will detect an intent and respond 'Thank you user_name' in https://github.com/GoogleCloudPlatform/dialogflow-integrations/blob/master/skype/server.js