Change language in Bot Framework Composer - bot-framework-composer

I'm using v1.0.1 and when I create a new bot, the bot is set to en-us automatically. This also affects LUIS apps created by bot framework composer which are set to en-us too. I want to create a bot for german language using german LUIS app.
Is there any way to change the language of the bot in Microsoft Bot Framework Composer?
Edit
According to this multi language recognizers will be available in august 2020 at the earliest.

You might be able to work with translation middleware for the time being though? It would still have you to set up the LUIS app in English, but translate the user/bot messages via the middleware. Maybe not ideal, but if it can be a help for now.
There is an ongoing question for how to use translation middleware in Bot Framework Composer here: https://github.com/microsoft/BotFramework-Composer/issues/3514.
An example of translation middleware is available here: https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/17.multilingual-bot

Related

Bot Framework Speech not working for other languages

I have created a bot and also supports multilingual (English, Kannada, Tamil, Telugu, Hindi). I am also adding Speech service to Bot. Bot is not able to recognize other than English. Could you please look into my issue and suggest me what changes needs to be done in Bot Framework WebChat.
Issue:
Base on user speaking language , it has to detect the language and set that language in Locale Parameter . let us suppose user speaking in Kannada it has to detect the language and text should be write in Kannada in the webchat . if he is speaking in Kannada the text should come in Kannada in webchat.
Webchat image

Azure bot Languages

I have a hard time understanding how I create a bot in a language other than English. Following the documentation here, I'm just supposed to select the language in creating a new BOT, but I do not have such an option.
I'm probably missing something.
The final goal - to create a Hebrew-speaking IVR for dynamics 365 omnichannel voice.
The Select the language you want to use in step 2 is referring to programming language. You're being asked to choose between C# and Node in the selector above the list of templates.
The instructions for how to create a multilingual bot are further down in that document. You just haven't gotten far enough in the document yet. After following the steps for building a basic bot, the document then shows you how to update language settings, and from there you can follow the rest of the document to add support for your language.
The Composer application itself will only display in English, but you can author bot responses in other languages.

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.

What is the difference between Dialogflow bot framework vs Rasa nlu bot framework?

What is the difference between Dialogflow bot framework vs Rasa nlu bot framework ?Any other open source frameworks available in market with NLP support?
I think I can answer this without any bias, granted that overtime the answer will grow outdated as the two services evolve.
Cliffnotes version:
Dialogflow is a complete closed source product with a fully functional API and graphical web interface. Rasa (NLU + Core) are open source python libraries that require slightly lower level development. Both try to abstract some of the difficulty of working with Machine Learning to build a chatbot.
As of writing this however here is my comparison:
DialogFlow
Is a mostly complete tool for the creation of a chatbot. Mostly complete meaning that it does almost everything you need for most chatbots.
Specifically it can handle classification of intents and entities. It uses what it calls context to handle dialogue. It allows web hooks for fulfillment.
One thing it does not have that is often desirable for chatbots is some form of end user management.
It has a robust API, which allows you to define entities/intents/etc either via the API or with their web based interface.
Formerly known as API.ai before being acquired by Google.
Data is hosted in the cloud and any interaction with API.ai require cloud related communications.
Cannot be operated on premise.
Rasa NLU + Core
To get close to the same level of fucntionality as Dialogflow you have to use both Rasa NLU and Rasa Core. Rasa NLU handles projects/intents/entities whereas Rasa Core handles dialogue and fulfillment.
Rasa doesn't provide a complete open source GUI leaving most of your interactions with NLU in JSON or markdown. And Rasa Core requires direct python development to customize your bot.
Also does not directly offer any sort of user info management.
The Rasa team does not provide hosting (at least outside of their enterprise offerings) and you will be responsible for hosting and thus ownership of the data.
Can be operated on premise.
As far as other open source frameworks, I would say that it is very likely that most chatbot frameworks right now are built on a variety of open source tools, with some proprietary add-ons. So you can always start from the lower level open source tools like MITIE or spaCy.
Update:
The Smart Platform Group (of which I am a member) recently released a product in between Rasa NLU/Core and Dialogflow called Articulate.
Articulate is a full-featured bot framework, based on Rasa NLU, that lets you build Natural Language Agents effortlessly.
Uses Rasa NLU for understanding and custom context based code for dialog. This makes it work closer to how Dialogflow does than Rasa Core.
HTTP API for creating intents, entities, and interacting with agents.
GUI similar to Dialogflow that is fully open source.
Data and interface can be hosted in the cloud or on premise.
Dialogflow:
No installation, get started immediately
Easy to use, non-techies can also build bots
Closed system
Web-based interface for building bots
Data is hosted on the cloud
Can’t be hosted on your servers or on-premise
Out of box integration with Google Assistant, Skype, Slack, Fb messenger, etc
Rasa:
Requires installation of multiple components
Requires tech knowledge
Open-source, code available in Github
No interface provided, write JSON or markdown files
No hosting provided (at least in the free version)
Host it on your server
No out of box integration
Source: https://www.kommunicate.io/blog/dialogflow-vs-rasa-which-one-to-choose/
The most important difference is, the entire NLU, NLP and NLG is not happening under the hood in case of Rasa. It's open source. You are the boss. In case of Dialogflow, you have all the functionalities but it has to send the data to cloud service every time a dialog transaction happens. Also some of the service providers have limits on number of dialogs per day.
However Dialogflow is flawless, simple to use and easy to model.
Microsoft's bot framework is also open source
https://github.com/microsoft/botframework-sdk
For nlp it is typically paired with LUIS, and LUIS is not open source.
SpaCy however is an open source nlp (the one that RASA uses also). It would be a completely valid workflow to create a IReconizer in bot framework to use SpaCy https://spacy.io/
There are a hand full of chat engines that also use SpaCy open source NLP that are linked on their site here https://spacy.io/universe/category/conversational.

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