azurebotframeworkazure-bot-serviceazure-communication-services

ACS Chat channel failed to connect


I have tried to connect the Azure Bot to Comunication Services Chanel. I would like to create a connection for whatsapp, but I have got this error:

"ACS Chat channel failed to connect. An unexpected error occurred, please try again."

Unfortunately, the Microsoft Azure has not given to me more information.

Can you all help me?


Solution

  • The error could be due to misconfiguration, permissions, or service health issues. Verify if the bot is properly registered in Azure Bot Service. Disconnect and reconnect the bot or restart the associated services.

    Follow below steps to connect Bot to the Azure communication services, refer the article.

    AppSettings.json in C# Bot:

    {
      "MicrosoftAppType": "MultiTenant",
      "MicrosoftAppId": "<MicrosoftApp_Id",
      "MicrosoftAppPassword": "<MicrosoftApp_Password>",
      "MicrosoftAppTenantId": "<Tenant_ID>"
    }
    

    -

    Test the Bot in web chat:

    enter image description here

    Navigate to Bot=>Settings=>Channels , select Communication Services - Chat=> Connect, select/create Communication Service:

    enter image description here

    enter image description here