cancel
Showing results for 
Search instead for 
Did you mean: 

Integration with Microsoft teams - Error while testing the bot with Test in WebChat

spurkayastha
Explorer

Hi,

I created a bot in SAP Conversational AI (which was testing successfully in Conversational AI) and now I am trying to integrate the same with Microsoft Teams. To perform the integration, it mentions the steps below:

1. Login to Microsoft Azure - Successfully completed

2. Create a new bot channel registration in Conversational AI - Successfully completed - This step generates the Messaging endpoint.

3. Create a new bot channel registration in Microsoft Azure - Successfully completed

4. Set up your bot endpoint - Successfully completed

In step 4 it mentions "You can now test your bot on Azure by clicking on the tab Test in Web Chat." When I test my chatbot in Test in Web Chat option, anything that I type in the bot (e.g. Hi) gives the error as Sending Failed. Retry. Even when I retry, the message is never received by the bot. I also checked this under channels and the Web Chat channel shows an error as "There was an error sending this message to your bot: HTTP status code InternalServerError"

Screenshots attached.e1.jpg e2.jpg e3.jpg

Regards,

Sangita Purkayastha

iyermobile
Participant
0 Kudos
From Feb-2021 onwards, oAuth token based authentication is mandatory and will resolve your issue.

Refer: https://cai.tools.sap/blog/why-and-how-to-migrate-chatbots-oauth-authentication/

I faced the same issue and below are workarounds that WORKED !!

  • Streaming Endpoint flag in Azure Portal would mean a continous ping and if TTL is low then throws error. Can be disabled / need not be set
  • Create a new token and copy it immediately into the Connect before clicking ok in Azure record entry, since the latter would mask the token and you cannot retrieve.

Please UPVOTE if above helps you / answered your question

ZhangMingquan
Advisor
Advisor
0 Kudos

I tried what SHREERAM IYER recommended, the issue persists.

iyermobile
Participant
0 Kudos

The STEPS I mentioned worked flawlessly for many.

Also (as on June 1st week/2021), the issue with MS Teams is now resolved where the buttons were sharing GUID # to cAI server, whereas now the clicks share the utterances.

ZhangMingquan
Advisor
Advisor
0 Kudos

Dear SHREERAM, Could you please try now using the simplest greetings bot? I tried and it did not work, Thank you for your time.

iyermobile
Participant
0 Kudos

Below is a snapshot of before and after in MS Teams.

Accepted Solutions (0)

Answers (0)