MS Teams Integration self-configured bot not responding

Florian11
Kilo Sage

Hello, I am currently running the Teams integration with the Self Configured Setup, not with the Enterprise Apps, because I would like to connect my DEV and test instance with another bot.
Now I had created a bot in Teams with the following instructions and added it to my application manifest.
The integration also works so far, so that I can import messages and create Teams chats from ServiceNow and open the ESC directly in Teams. Unfortunately, my bot is not responding to me, I am not receiving any messages from the app. Are there any permissions missing in Azure, Teams?
I don't have the Now Virtual Agent in my Teams tenant.

https://docs.servicenow.com/bundle/utah-servicenow-platform/page/administer/virtual-agent/task/creat...

1 ACCEPTED SOLUTION

Hi @Rohit Ladda yes following article helped us
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1642138.
The bot has to be in multi tenant, that is missing in the ServiceNow Docs

Description

After Creation of Custom Bot on microsoft teams and integrating in ServiceNow, there is no response while initiating conversations


From instance outbound logs 400 error could see below error response

 

"error":"unauthorized_client","error_description":"AADSTS700016: Application with identifier '1234567890' was not found in the directory 'Bot Framework'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant. Trace ID: 1234567890 Correlation ID: 1234567890 Timestamp: 2024-05-02 06:51:24Z","error_codes":[700016],

 

 

Cause

The error message above is the response received from Microsoft when the instance tries to communicate with the bot using the Application (Client) ID but Azure cannot find the bot in the bot framework.

This is because in the Azure portal the application is created in single tenant

 

 

 

When the bot is created in the "Teams Developer Portal" the bot is registered in the bot framework. When you view the bot at dev.botframework.com, Select Bot Name -> Settings -> Scroll down to "Configurations", you will see it is registered as multi tenant

Resolution

Ensure the Bot Tenancy in Azure Portal matches the value in dev.botframework.com

  • dev.botframework.com
    • Select Bot Name -> Settings -> Scroll down to "Configurations"
  • Azure Portal Applications
    • Select Bot Name -> Authentication -> Supported account Types

Additional Information

ServiceNow has no specific requirement for the bot to be multi tenant or single tenant

Details as to why the azure application needs to have the same tenancy configuration as the bot framework will need to come from Microsoft as this is outside of ServiceNow control.

View solution in original post

5 REPLIES 5

Mark Manders
Mega Patron

Since you asked the same question yesterday as well and got no response, maybe a question on Azure/Teams permissions should better be asked on an MS community?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Rohit Ladda
Tera Contributor

Hello, I am also facing same issue. Did you find a solution to this issue?

Hi @Rohit Ladda yes following article helped us
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1642138.
The bot has to be in multi tenant, that is missing in the ServiceNow Docs

Description

After Creation of Custom Bot on microsoft teams and integrating in ServiceNow, there is no response while initiating conversations


From instance outbound logs 400 error could see below error response

 

"error":"unauthorized_client","error_description":"AADSTS700016: Application with identifier '1234567890' was not found in the directory 'Bot Framework'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant. Trace ID: 1234567890 Correlation ID: 1234567890 Timestamp: 2024-05-02 06:51:24Z","error_codes":[700016],

 

 

Cause

The error message above is the response received from Microsoft when the instance tries to communicate with the bot using the Application (Client) ID but Azure cannot find the bot in the bot framework.

This is because in the Azure portal the application is created in single tenant

 

 

 

When the bot is created in the "Teams Developer Portal" the bot is registered in the bot framework. When you view the bot at dev.botframework.com, Select Bot Name -> Settings -> Scroll down to "Configurations", you will see it is registered as multi tenant

Resolution

Ensure the Bot Tenancy in Azure Portal matches the value in dev.botframework.com

  • dev.botframework.com
    • Select Bot Name -> Settings -> Scroll down to "Configurations"
  • Azure Portal Applications
    • Select Bot Name -> Authentication -> Supported account Types

Additional Information

ServiceNow has no specific requirement for the bot to be multi tenant or single tenant

Details as to why the azure application needs to have the same tenancy configuration as the bot framework will need to come from Microsoft as this is outside of ServiceNow control.

Rohit Ladda
Tera Contributor

@Florian11 Thanks a lot for quick response, but where do you look out for Outbound error logs? In sys_outbound_http_log ? In my instance I am unable to find such detailed logs, Also unable to find exactly which REST message is getting used to enable further debugging.