How to use Web Chat for embedding Azure Bot when public access is disabled for bot (under Networking)

Anisha KC 105 Reputation points Microsoft Employee
2024-03-06T19:10:09.9833333+00:00

Hi,

I want to embed an Azure Bot into a React application. If I simply copy the iframe code that is provided in the "Channels" under "Settings" for the bot, it will not work. The embedding shows up but as soon as I send a message, I get an error and if I check browser network I can see it fails with 403 (Forbidden): {

"error": {

"code": "NetworkDenied",

"message": "The PublicNetworkAccess directline is disabled."

}

}

How can I embed the Azure Bot with the public access turned off? Is that not possible? Is there a workaround to allow a UI to interact with the bot?

Thank you!

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
747 questions
{count} votes