Chatbot maintaining flow - node.js

I have developed a web Chatbot using socket.io/nodejs/LUIS. I'm not using bot builder. I'm new to models.
My flow will be like socket-> luis->Response function.
This flow can be used for single req and response.but it can't handle complex conversations like form inputs,prompt dialog.
How can I incorporate such complex conversations?

If you are at the beginning of your journey with chatbots, I will propose you to take a look at Teambot project. This is an open source project so you can give it a try, go through the code to get some ideas or contribute to it.

Related

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.

How to access Google Classroom without API?

I'd like to automatize some processes that are not yet available through API(Google Classroom), like posting comments on announcements, seeing private comments on my work and so on. I have trouble accessing my account. I'd like the app to be able to run on a server. I'm currently working with node.js, but if there is an easier approach I'll gladly accept it (free if it's possible). Can you give me an example of how it's done because currently, I am struggling to find every button that needs to be clicked on?
Unfortunately, there are no methods right now to accomplish that. You can leave a feature request on Google Issue Tracker describing what methods you would like to use. Google engineers will study your case and, if applicable, they will develop the requested methods.
You could use something like Selenium with your language of choice (Javascript in this case) to automate the browser clicks.
This is however, not the best of ideas... To make Selenium log into your account you will need to hardcode your password somewhere.
Google services use Oauth for authentication, take a look at the Classroom API Getting-started for instructions on how to work with Google Classroom API.

How to integrate news feed with bubble.is platform to perform functionality of getstream

I m build a social network using bubble.is platform but not able to fiqure out how to integrate news feed and notification system in bubble.is platform from the getstream.io platform
Nick here from Stream. I'm not familiar with Bubble.js, however, it looks like it simply listens to DOM events. That said, you should be able to integrate Stream.js the same way that you would with any other framework (react, angular, etc.). Just import stream.js, initialize the client-side code, and on specific events, emit an event to bubble.js. If you want to take an action based off of Bubble.js (like store in Stream Analytics), you'd just fire an event to stream.js when an event happens in bubble.js. Hopefully, that helps out a bit. For more information on integrating with JavaScript, have a look at our docs here: https://getstream.io/docs/js/
parsons,
I second an implementation with bubble.is, that would be great.
Building a plugin shouldn't be too much work, but bring getstream.io to the non-coders.
Keep us posted on the progress :)

Cookies in microsoft web bot nodejs

I have a nodeJS Microsoft website chatbot and I want to add a feature to retain user conversation when a user closes the window and reopen. Can we use cookies in this case or is there any other way to implement this?
There are options to manage conversation state. This GitHub issue mentions that you can implement your own way to save state by implementing the IStorageClient interface.
This looks like an example of how to implement it.
There is currently a PR for using storing past conversation history in WebChat, but it looks like it might be on hold for now. This concept is something we want to get into WebChat, but there are still some details to be hammered out.

how to write own logic without using qnamaker

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).

Resources