options for controlling UX of Bot Framework in ionic app [closed] - node.js

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Bot Builder newbie here...
The Microsoft QnA Maker makes it really easy to get started with Cognitive Services because once you have your FAQ content loaded and the URL is set, you can interact with that URL in a simple web page. This allows a developer full control of how the content is styled and rendered within the web page, because you're playing with JSON content.
I'm trying to better understand the options available to a developer when using the Microsoft Bot Framework.
If I want to make a mobile app with the Ionic framework, it is (relatively) trivial to interact with the QnA web service and style the output. What if I wanted to make a mobile app with the Ionic framework and use a Bot Builder chatbot, though?
What are the options one has for UX (styling and formatting of responses) using the Bot Builder framework when you are NOT using QnA Maker? Does the "dialog" for the Bot Builder have to be embedded as an external control, thereby significantly reducing what the developer can control?
From what I can gather, nothing here is as trivial as the QnA Maker;
i.e., the Bot Builder Framework seems more complex than simply interacting with POST responses - "Easy: In your non-React website, run Web Chat inline"
The story of why the Bot Builder is more complex is not clear enough for me. It seems that it is has these "black box" aspects that make it more than a response of JSON and something that has to be "embedded" one way or another.

if you're just looking to style responses for QnA maker, two blog posts detail this:
QnA maker for Node.js bots
QnA maker and rich cards .NET
Your options are to use the built-in card attachments, or to be more flexible, you can use an adaptive card
Hope that helps! Good Luck!

Related

QnA Maker "Context Only" not working in live Bot or Emulator

I'm developing an Azure Bot using Bot Framework Composer.
I've got my QnA knowledgebase set-up with a number of Context-Only questions.
These questions work perfectly when testing in the QnA portal.
I've tested with both my original QnA knowledge base & also the Bot generated knowledge bases.
However when testing via emulator, or working with the Bot in a live environment it bypasses the Context-Only element entirely.
I need the Context-Only elements to work as we have a number of identical departments in different locations - so the same question will require a different answer depending on where our users are based.
Not sure what more info to provide, but if anyone has any insight I'd gratefully welcome it.
I reproduced the thread and tested it in QnA emulator and web chat. In both cases it worked for and got a response from the bot.
Go to https://language.azure.com/
Choose the Custom question answering
Choose Custom question answering
Click on “Open custom question answering”
Click on “Create new project”
Click on “Edit knowledge base”
Click on Add questions pair
Tested in Studio. Worked well
Click on “Deploy knowledge base”
Click on create a bot.
Create a bot
Go to “Test in web chat”. Test there. It worked for me.
We can create synonyms as the context-based elements. When we have context-based, the model can be trained for short form questions, instead of complete pattern of the question.
Managed to resolve this by adding my Bot to Bot Emulator, and adding the QnA knowledgebase as a service.
This allowed me to trace the QnA pairs, publish & train within emulator & drive the questions down the correct Context-Only route.

Power Virtual Agents Automatically suggest a solution before connecting to a live agent

I was looking for a basic ability for bot to learn from the questions and answers the agents provide that can be used as suggestion the chatbot replies to users before it connects them to live agent. I looked up QnA maker does similar stuff and can I be able to integrate it over here?
Go to https://language.cognitive.azure.com/
Click on Create
Choose Custom Question Answering
After creating, go to that project
Click on Edit Knowledge Base and create question and answer pairs.
After creating the Knowledge base, go to deploy the knowledge base
Click on Deploy
Create a bot and attach the existing knowledge base to bot before going to the Live Chat

Creating a html game bot

I want to build a bot that basically inputs data and navigate/interacts with a specific website. However so far I've only found frameworks for chat bots and web crawlers. So I was wondering if there were any suitable framework for my needs, if someome can explain me what framework i need to use, thanks

Chatbot Visual Dialog Editor

We did some research on Azure Bot Framework and we found out that we need to use code to build our Chatbot dialog.
Does Microsoft or any of their Partners has something similar to IBM Watson Asssitant's visual dialog editor?
Screencap: https://www.ibm.com/cloud/watson-assistant/assets/img/image_1.png
The visual dialog editor is very easy to use to create complex dialogues for their chatbot.
Thanks.
This feature is currently under investigation with the Bot Framework team. There is no ETA at this time, so I would recommend staying update-to-date on new feature announcements. Some places to track news are the Bot Framework Blogs, Docs, and GitHub repo.
Alternatively, you can look at Conversation Learner as an option. As they state,
Project Conversation Learner enables you to build and teach conversational interfaces that learn from example interactions. Unlike traditional approaches, Project Conversation Learner considers the end-to-end context of a dialogue to help improve responses and deliver more compelling user experiences.
It is experimental and closed to the general public, however you can request an invitation (follow the above link) to join the project.
Hope of help!
I don't know about the "partners", but for now, Microsoft does not have a visual editor.

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