how to write own logic without using qnamaker - bots

I am still trying to understand Chatbots. Currently i have already made chatbot which is integrated in skype. I have Sharepoint online where user search for FAQ. If they dont find then they ask BOT which sends request to LUIS and Qnamaker.
Qnamaker then sends response back by looking it into its database. I upload FAQ from sharepoint to Qnamaker using sharepoint workflows. But i want to write my own logic and get rid of Qnamaker.
What are ways to do it? Any good tutorials? I also wanted to know how the flow happens. For example if we dont use Qnamaker then we fire queries in sharepoint based on what user asked? I dont understand how i can fire queries in sharepoint if user makes typo then we will not get anything from sharepoint. So any tips on how to implement this without using qnamaker is highly appreciated?

The FAQ bot generator is a subset of the main Microsoft bot framework. You should do some research on the Microsoft Bot Framework. The link above takes you right to the documentation overview of the bot framework and from there you can get into developing one. They have links to a few sample projects as well as a large number of code snippets within some of the article explanations. It has a full setup guide that will walk you through the initial setup so it should be easy to get a basic echo bot running, but if you are not a programmer you should stick to the FAQ generator.
I suggest you use either node.js or c# to develop the bot since these are directly supported by the framework. I am personally using c# to build my bot from the ground up. The purpose of mine is to be used within a customer facing android/ios app that will help with questions, checking the status of different things, and even paying bills.
Just remember you will need to manually set up your cloud hosting. I host mine in azure alongside a web interface I built for it (you can build the website inside your bot if you are using c#, just replace the default.htm file in the web.config with the main page of the interface).

Related

Store and display the debug information in a custom DB table, while running the botcomposer bots using directline

We are creating bots using "Bot composer" and running those bots in Azure. we want to store the debug information for these bots in our custom DB tables.
Is there any way we can get the debug information that is provided in the "Bot emulator".
I was searching in Microsoft documentation, the closest I found is this https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-testing-debugging?view=azure-bot-service-4.0
But even this does not talk much about my problem at hand. Can some point me in a direction where I can find the solution?
If you would like to use Inspection Middleware in your Composer bot, you can simply do that by enabling "UseInspectionMiddleware": true in the bot settings.
If you would like to do anything other than that (i.e. use your own storage for debug info), you must customize the bot runtime. You will need to extract and customize the runtime to accomplish your goal. There is no documentation or steps on how to do this unique and specific task.

What is the best way to create a Microsoft Teams upload bot that uploads the contents to a web service?

I have Azure and I want to be able to create a simple chat-bot that is programmed to do a few simple tasks for users, i.e. take in uploaded information and pass it on to another web service. What would be the best way to do this? Should I use team's built in bot-framework? I'm not sure if it can export data externally.
Would the best way be to just create a self-service web-page? I kind of want to keep it as a bot though, since they are hip and trendy.
Any tips, guidance, or knowledge would be appreciated!
It certainly should be possible to do this using a bot, as Teams bots can handle 9file upload and download scenarios](https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/send-and-receive-files?tabs=dotnet). Once the bot has received the file, it can do anything that makes sense, as the bot is fully-fledged application, written in C#, node, python, or other options (those 3 are the best supported).
If you haven't build a bot before, you can start here, which gives links to guidance on general bot development with the Microsoft Bot Framework, as well as info on Teams-specific scenarios.

Nodejs send metrics of how many people are using my app

So i'm designing a new application with Nodejs and packaging into an executable then putting a release in github, I want to be able to monitor how many people are using my executable?
I was thinking about creating an api server and my application just make a call to that API service but I thought there might be something already out there any help?
The easiest way is to connect third party services that do that. The most famous one is Google Analytics
You just need to create your developer account and embed a few lines of tracking code. After that you can see full info about your visitors including their location.

Adding Azure Bot Project to a Solution that already contains a Web Application

I'm in the process of creating a chat bot for my project that will ultimately be integrated into Microsoft Teams. I've looked around and I haven't found much on this but I was just wondering if it possible or a good idea to add an Azure Bot service to an existing Solution that already contains a web application project.
Can this be done? If so, are there any downside to this approach?
This answer includes a response to your comment.
This is possible. You just need your bot to target .NET Framework v4.7.2. Just adjust your Startup and Config code. See this sample.

Connect Bot built with Microsoft Bot Framework to other connectors/Channels too

I have built a bot using Microsoft bot framework. Now I want to connect it to channels which are not supported by the Microsoft bot connector. However, I need to build an interface (or a substitute for bot connector) to connect to those channels. But as I am using Bot framework SDK (NodeJs), I need the best approach to expose the endpoint of my bot engine to other connectors/channels.
The Bot Framework has a mechanism specifically for this scenario, called Direct Line. Essentially, you build the UI interface yourself, but use the Direct Line API to forward events to/from the Bot Connector. You can use the Direct Line REST API, or find an npm package where someone has taken care of the underlying plumbing for you, as in the botframework-directline.js package. Microsoft has some node.js BotBuilder-Samples on their GitHub site too.
Note: The typical way to get the best help on SO is to post code of
what you've tried and that gives people a better idea of how to help.
I understand you don't know where to start, so that doesn't help much,
but maybe it will explain why you're getting Close flags.

Resources