Azure BOT working with test web chat but not teams....

Jeelani S 0 Reputation points
2026-08-14T16:23:03.2666667+00:00

I am trying to connect BOT resource with my backend running on private cloud using public API. The test web chat is able to communicate using API but bot in teams is not. Any clues?

Azure AI Bot Service
Azure AI Bot Service

An Azure service that provides an integrated environment for bot development.

0 comments No comments

1 answer

Sort by: Oldest
  1. AI answer

    2026-08-14T16:23:19.7066667+00:00

    If the bot works in Test in Web Chat but not in Teams, the issue is typically channel-specific rather than in the bot code itself.

    Use this troubleshooting path:

    1. Confirm the bot works in Web Chat first In the Azure portal, open the bot resource and use Test in Web Chat. If it responds there, the bot endpoint is reachable and the problem is likely with the Teams channel or Teams app setup.
    2. Verify the messaging endpoint is reachable In the bot resource Overview pane, copy the Messaging endpoint and open it in a browser.
      • If it returns HTTP 404 or 405, the bot is reachable.
      • If it returns a browser error such as "This site can't be reached", redeploy or fix endpoint availability.
    3. Check Teams channel configuration If Web Chat works but Teams does not, remove and reconfigure the Teams channel. Channel configuration issues are a common cause when one channel works and another does not.
    4. Validate Teams app packaging and install method Bots in production should be added to Teams as part of a Teams app. Adding a bot by GUID is only recommended for testing and severely limits bot functionality.
    5. Check Teams prerequisites Make sure the environment has:
      • a bot published to Azure
      • a Teams developer tenant with custom app uploading or sideloading enabled
      • a valid Teams app package
    6. Check for channel-specific behavior Some features behave differently by channel. A bot can work in Web Chat but still fail or behave differently in Teams because channel capabilities differ.
    7. Test end-to-end in Teams after channel setup Open the Teams app package in Teams and interact with the bot there. If the bot appears as a contact but messages still do not flow, the remaining issue is in Teams channel configuration or channel-specific behavior.
    8. Check HTTPS and bot configuration if cloud testing fails For cloud-connected bots, verify:
      • the Messaging endpoint includes the correct path such as /api/messages
      • the endpoint uses HTTPS
      • the app ID and password are valid

    A practical conclusion from similar cases is that when Web Chat succeeds and Teams does not, focus on:

    • Teams channel configuration
    • Teams app manifest/package setup
    • HTTPS endpoint correctness
    • channel-specific behavior in Teams

    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.