-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to integrate Dialogflow with Microsoft Teams. #43
Comments
@revs1 I did integrate the Dialogflow with Microsoft Teams about 4 months ago using the same approach as Skype., I think it is still working now. Have you tried integrating using the Skype approach mentioned here. The key is that Dialogflow does not directly connect to Microsoft Teams, instead, it connects to Azure Bot Service and you integrate Azure Bot Service with Microsoft Teams channel just like this. |
@mekpavit I have tried appending both "/webhook" and "/api/messages" to the cloud function URL https://xxxxxxxx.cloudfunctions.net/TeamsChannel I am trying to integrate teams. I have followed the documentation for skype open source. But, instead of docker containers i am using cloud functions to deploy the server.js. (org level restrictions on docker). |
@cah-prashanth-soma Have you tried using the Cloud Function url with adding any suffix? If you have, did you get any incoming request to your Cloud Function? I've never used Cloud Function for hosting the webhook before, but I think it should work. |
thanks. if you meant without suffix? yes I did. And nothing is logged. Nothing is getting hit. |
@cah-prashanth-soma I've already tested dialogflow-integration with Azure Bot Service. It did work but it requires some changes on
to this (Cloud Function can only access to the exported class/function from a .js file declared in
|
@mekpavit, it works. I thank you profusely for your quick and detailed response. Point 4 did the magic for me. (I have already implemented point 1 and 2 and redirected 3 to other port, but I was using convertToSkypeMessage as entry point ). |
@cah-prashanth-soma You're welcome!! |
@mekpavit what is the messaging endpoint for cloud run? I have set mine to https://skype-xxxxxxxxxx-uc.a.run.app, But my dialogflow intents still do not show up on Azure bot. can you pls help? |
@preethamjv Can you show your Cloud Run log? I want to ensure that the Microsoft Bot Service can't access your Cloud Run. |
@mekpavit I get a series of error messages in my logs |
According to the logs, it looks like you misconfigure the microsoft secret. Can you show me your server.js file? Maybe take a screenshot around here: |
@mekpavit Thanks for your quick follow-up, here is the screenshot |
@preethamjv Okay, you already set the |
@mekpavit I have checked the app id and password, it was correct. I redeployed the code into a new cloud run service, it worked! In the Azure bot configuration section, replace the existing MS Azure endpoint URL with the URL of the Cloud Run service that we have created. Hope this helps someone! @mekpavit thanks for your quick response! |
@mekpavit just wanted to check, can we add google calendar schedule(book a slot) feature into this integration? Pls give your inputs, thanks in advance! |
I'm not sure if I really understand your feature. if I guess, it might be one of this:
|
Hi, is there any video tutorial for the same, I am facing issues. |
@ExceptionXD What's the issues you're facing? |
@mekpavit So I followed all the steps and also got the URL but when i am keeping that as my messaging endpoint and testing web chat I am getting the following error : |
Where did you get this error message? From Microsoft Teams web chat or from the logging page on GCP? |
@mekpavit on Microsoft Team web chat |
So, the situation is that, when Microsoft Teams sends a HTTP request to your Cloud Run application, it responses back with 401 status code. One possibility that can be the root clause is that "allow unauthenticated invocations" setting on your Cloud Run application is set to "no". Could you confirm that, when you deploying using |
Yes I had given 'y' as my response |
@mekpavit the msg endpoint which i got, I am placing that in my web chat bot -> configurations -> messaging endpoint and then testing. This is what is mentioned right ? |
Hey @mekpavit , @preethamjv has mentioned that " I have checked the app id and password, it was correct. I redeployed the code into a new cloud run service, it worked! so do i need to do this ? |
Well..
|
From where to get MS Azure end point URL ? |
@ExceptionXD Okay, so, 401 response does not come from Cloud Run authentication. Cloud you show your application logs on Cloud Run? I want to confirm that whether the 401 response was from |
@ExceptionXD Ok. According to the logs, it seems like the service account of your application does not have a permission to use Dialogflow. Could you confirm that you've done "Service Account Setup (GCP)" section here. If you've already done this, please show the screenshot of IAM page on your GCP console, so I can ensure that you give the right permission to the service account. |
|
@mekpavit I am using DialogFlowCX, so is the integration process different ? |
@ExceptionXD After reading the API document of both Dialogflow ES and CSV, the API specification seems different (at least, the end point is different). Since this integration application only supports Dialogflow ES, I think you cannot use Dialogflow CX here. BTW, there is one thing you can try. You can try changing the library used in |
Hi @mekpavit, I follow the msteams integrations using cloud run, but facing the issue above. Can you assist to help? |
@kyooi2 Hi. According to your logs, the I would suggest you to find out why Dialogflow responded you back with that
|
@mekpavit Hi. I think i found out the things that i have missed out. I forgot to add in the response for skype, so when it route back to default response, it will take the default payload. This is what I encounter for the error. Thanks alot for helping. |
Hi. Using knowledge from this issue I have recently created this repo where I have put all code and instructions needed to integrate bots in DialogFlow with Microsoft Teams. |
Hello @mekpavit https://github.com/olivomarco/dialogflow-teams-integration |
Please see a more recent integration in this repo https://github.com/GoogleCloudPlatform/dialogflow-integrations/tree/master/cx/azure-bot-service |
Has anyone got this gateway timeout issue for dialogflow cx integration with Azure bot service? **September 23, 2023 at 9:53 PM GMT+5:30 |
As I have noticed in official document, Teams integration is not part of built in integrations supported by Google. It being an independent integration, can someone help me with trusted third party organization to do the same?
The text was updated successfully, but these errors were encountered: