Bot not answering messages in microsoft teams - botframework

I'm following this Microsoft-teams tutorial for a simple bot. I'm running it using VScode in local mode.
It's working in bot emulator. Here is a screenshot of that.
But It's not working when sideloaded as an app for Microsoft teams. I'm able to send the messages but the bot is not replying back.
What I'm missing here?

There is currently a bug in our bot registration code that is causing this. We are currently investigating its root cause.
As a workaround, add the Skype channel and the MS Teams channel to the bot.
Update: This is no longer a requirement. This is fixed.

Related

Chat Bot is not working - HTTPS internal server error

I have created a sample Echo bot for testing i've followed the given instructions in the MS tutorial site.
Created a web app service
Downloaded the MS bot framework v4 SDK - Echo Bot
Got the Publishing profile
Published the bot using visual studio
tested the chat bot When i test my bot in Test in Web Chat option in bot channels registration.
before that i tested in bot framework emulator, it was working fine as expected.
I checked the microsoft appid and password, it is all fine.
what am i missing to look on. can anyone please guide me.
Finally I've found the issue, though it a minor mistake. I wanted to update it here since many new Azure Bot users might do this mistake like me.
It was due to the option which i selected in while doing the app registration, After selecting the third option for Who can use this application or access this API?
It always good to select Multitenant option to make the bot to work for everyone.
If your requirement is restricted to one particular tenant then you should select the first option. But it is not in my case.
Accounts in any organizational directory (Any Azure AD directory -
Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)

How to embedded Microsoft Bot Emulator on my website

I'm trying to have the bot emulator running on my website, so the user can add cards & contact and test it from the website.
The Emulator is built on the WebChat application/source code. WebChat is a directline client for the directline channel. The emulator is used for development and testing. You can use webchat as a way to test, but you're not going to get some of the tools/benefits you get from Emulator. You might be able to take the emulator source code and build what you need, but that seems like a lot of work for so little benefit.
Your bot code does not have to be hosted in Azure, but for the simplest setup, you should create a bot channels registration in Azure and use that. Configure that to set your endpoint to wherever your bot code is running and then use the webchat channel and client.

Microsoft Teams proactive messaging in activity feed

I have a requirement that my bot should receive a notification from an external system and then it needs to send notification to Teams' logged in user's activity feed.
I followed https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/16.proactive-messages, it works on emulator. I deployed above app on on-premise IIS server (with https support) and then registered on https://dev.botframework.com/ by providing botid generated through MSTeams App builder. Now, when I sideloaded this bot in MS Teams, it does not send proactive message.
I am new to Bot framework hence steps by steps instructions and sample code will be much appreciated.
You haven't given a lot of detail in your question about your actual setup, or the code you're using, so it's hard to really answer, but I have posted a few time recently about pro-active messaging. Here's one with a bunch of detail, in C#, so hopefully it can help: Programmatically sending a message to a bot in Microsoft Teams - just see my answer in that page. If that doesn't help, please try describe your current scenario better, and what you've tried.

microsoft bot framework, chatbot loading with blank screen

my chatbot is loading with blank screen. When i close the chat and open it again it loads perfect and work fine. i am not sure what could be the reason for this.
I am using Microsoft bot framework v4, and my chatbot is deployed in web.
Any help is appreciated.
Thanks
Sanjeev Gautam
Unlike emulator, when hosted the Bot will wait for a message from User first. If you want to send a welcome message as soon as bot is active then have a look at solutions here:
Display Welcome Message in v4 Bot Framework Bot (C# + .Net Core Web Application)

How does Microsoft Bot Service Provision Skype bot

Would like to know how Microsoft Bot Service Provision Skype bot , Need to check the underline code how microsoft bot service is using Skype API to create skype bot. Please provide the reference and source code.
The code you are asking for is not open source. Bot Framework has many pieces open source (like the SDKs, the Emulator, the WebChat control among others) but the piece you are asking is not.
I suspect you have another issue; so I would recommend either to post a new question with the specific problem or clarify this one.
If you want to learn how Skype works with BotFramework, pleas read https://dev.skype.com/bots.

Resources