Azure Bot Framework Deployment Issue: Unable to Send Messages in Microsoft Teams Despite Successful Testing on Web Chat

Sharma, Soumya 0 Reputation points
2024-05-10T10:56:22.3966667+00:00

I have deployed my bot using Azure Bot Framework on Azure App Services. It is working fine when I am testing on web chat. When I am trying to publish this app on my company's teams, it is not working. When I am trying to access this bot from my MS teams, I am getting error - "you can't send message to this bot". Can someone please provide with some solutions?

MicrosoftTeams-image (2).png

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,249 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,920 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JiSheng-MSFT 390 Reputation points Microsoft Vendor
    2024-05-13T07:34:03.5533333+00:00

    Hi @Sharma, Soumya

    For the problem you describe, you can check if you have blocked bot conversations as Meghana said.

    If the problem is not resolved, you need to perform the following steps:

    1. Check the robot’s network connection: Make sure your network connection is working properly and there are no interruptions or glitches.
    2. Check the bot's configuration: You can send a message to the bot by opening the bot resource in the Azure portal and then opening the Test via Web Chat pane. If the robot is not responding with the expected output, there may be something wrong with the configuration of the robot.
    3. Check the bot's endpoint: Copy the messaging endpoint in the Overview pane and paste it into the browser. If the endpoint returns HTTP error 404 or 405, it means the bot is reachable and can respond to messages. If the endpoint returns the error "This site cannot be reached" or "This page cannot be reached," there is something wrong with the bot and it needs to be redeployed.
    4. Check the channel configuration: If the bot works as expected in online chat but not in some other channel, it is possible that the channel configuration parameters (such as the bot's username and password) are set incorrectly or have been changed externally.

    You may want to check out more detailed troubleshooting steps, you can refer to this reference.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.