Connecting an Azure Bot to Slack - error 'No message text provided' - botframework

I am working on a Q&A bot in Azure and connecting it to Slack. I choose the no-code path with just configuration in Azure and Slack.
I was successful in the following:
Creating the Q&A service in Azure
Importing my FAQ
Creating a BOT in azure and testing it in the 'Test in Web chat 'pane
Creating an app in Slack and sending it text. However I never get a reply from my FAQ text.
So the error are:
In Slack, the response is always 'No good match in FAQ.' Im assuming this is the default text for the Bot.
In Azure, the Channels tab showed the Health of the Slack channel as red with issues. The text reads 'No message text provided' for every call made. This implies Slack is not sending the text to the bot.
Has anyone else seen this error 'No message text provided' when connecting to Slack?
Next things to try are:
Try and download the code and bot emulator and debug the error following these steps
https://learn.microsoft.com/en-us/azure/bot-service/bot-service-troubleshoot-general-problems?view=azure-bot-service-4.0
Any help / thoughts would be appreciated.
Vince

Related

Microsoft Teams Bot - Writing to a bot returns error message

I've created a bot based on the following sample:
https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/typescript_nodejs/57.teams-conversation-bot
Everything looks well so far and worked in my first bot. But with my second bot I've created when I start a conversation with the bot, I get a "Failed to send" error in Microsoft Teams on my desktop.
When I use teams in the web I can see in the dev tools the following error message for the request:
https://emea.ng.msg.teams.microsoft.com/v1/threads
Error:
One or more of the user ids provided are not valid.
I'm lost on what could be wrong. Any hint would be highly appreciated.
I was seeing the same error after creating a second bot for testing and realized I had forgotten to setup the Teams channel in Azure configuration.
So double-check that the Microsoft Teams channel is running:

BotService Slack channel connection returns Slack API Error to message sent

After connecting Slack to Azure Bot Service following instruction from the link, Azure does not bypass the message to bot server. Sreenshots are from Issue which appears by clicking on issue button next to the channel. Issue appears every time I send message from Slack.
Anyone encountered similar case?
Error message is little unkind...
https://learn.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-slack?view=azure-bot-service-4.0&tabs=abs
BTW, test chat on portal is working as expected.
Triple checking my tokens, it fixed error. So it seems to be my mistake on setting token...
When error message spotted out credential error, it would have made my life easier...

Sending messages to my bot via Slack gets no response

I have a bot deployed to our Azure subscription. Using the webchat channel, I can interact with the bot using the url:
http://mybotname.azurewebsites.net/
We have added the bot to Slack as an app. We followed all the instructions given by the documentation on how to add a bot into Slack - https://learn.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-slack?view=azure-bot-service-3.0
When I send a message to the bot in the Slack channel we have created, I get no response. There is not error message, or in fact anything, returned.
Whereabouts can I start looking to see what the problem could be? Suggestions for error logs, traces, etc would be appreciated. I enabled App insights for the Azure Web App which the bot runs under, but nothing comes up as an error, or warning, or anything. I'm a bit lost here, any suggestions would be appreciated.
Note that I was made aware that, for Slack, I may need to tailor the responses in order for Slack to render them e.g. FormFlow define options for string field
I'm not sure how to do that, or even if this is a case that my bot simply isn't working in Slack regardless of how I'd format the responses.

Azure Bot Service - "Couldn't send retry" on emulator

I have created two bots via the Azure portal today (NodeJS blank & language understanding) and both bots don't work.
If I launch the emulator in the portal and send a message it states "Couldn't send retry" and the console shows the following:
On the Channels tab under Web Chat it shows the following errors:
My previously created bots work however.
Has anyone an idea what I might be missing here?

Bot Service Basic Bot not responding to prompts

I've a Basic Bot Template based Bot set up using Bot Service. I've built a use case with few question prompts and capturing answers. I see the timestamp below my prompt in the chat box indicating that my prompt is delivered. But don't get a response back from the service. The application is still in develop and still haven't published it.
On Channels -> Web Chat -> I see few errors being logged.
Error: "There was an error sending this message to your bot: HTTP status code NotFound".
Could anybody help resolving this error?
A 404 (Not Found) would imply there's something wrong with your bot's registration in the bot framework portal. Can you log into dev.botframework.com, open your bot, hit edit, and see what the endpoint URL looks like?

Resources