The first version of the Bot Framework advertised automatic language translation as a major Bot Connector feature as outlined in the v1 Bot Framework Overview page.
However, the v3 documentation doesn't mention it. I was wondering if this feature is no longer available or should we use the Cognitive Services Text APIs instead?
Here's what I tried with a Skype Bot:
I would like to speak in German
May I speak in French
fr-FR
Everything I've tried hasn't worked.
This is something which I've looked into while building my own bot as well. The feature is no longer available in V3 and will have to call the Translator API directly. https://github.com/Microsoft/BotBuilder/issues/1156
In V4, you can use the code as below
Resources.Global.Culture = new System.Globalization.CultureInfo("en-US");
Related
In other words, can I use another engine like RASA rather than LUIS?
Does Microsoft Bot Framework Require LUIS For NLU?
No
In other words, can I use another engine like RASA rather than LUIS?
Yes
While bots have certain structure, in the end, they are just another ASP.NET application. You can extend and customize them to do what you wish. That being said; there is no built-in scaffolding for other NLU like RASA, etc.
I would suggest taking a look at the Core bot sample, which does use LUIS. As well as the SDK itself (linking dotnet, as I assuming you're using that). But you can see how that is done and give you a starting point.
I would recommend familiarizing yourself with the SDK and documentation so you know what and where the built in functions are and how they handle interaction with the users and connector. Including the implementation of middleware.
If you are using Composer instead of the SDK, you could make calls to other NLPs, but it won't be as integral as with LUIS. You can make specific calls, but there you won't easily be able to just replace LUIS for something else.
Is it possible to create LUIS Dispatch for existing V3 Bot ? We have v3 bot that's in production and we have gone so far now so its difficult to switch over v4 Bot. However, there are awesome capabilities like LUIS dispatch tool that we would like to leverage.
Ref:-
https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-tutorial-dispatch?view=azure-bot-service-4.0&tabs=jsaddref%2Cjsbotconfig#integrate-multiple-luis-apps-and-qna-services-with-the-dispatch-tool
Given the fact that the source code is available for the LUIS components and the provided examples, I think you can use this tool on v3 bot after some modifications.
It looks like the dispatch tool is only preparing a custom LUIS app that you will query from your bot, so nothing really linked to v4 of bot builder.
I have embed the Microsoft web chat channel into my site using the iFrame methode :
https://webchat.botframework.com/embed/mybot?s=YOUR_SECRET_HERE'>
The web chat interface is in english, what parameters do I need to get the french version ? (the microsoft framework says french is supported).
French is supported in the Framework yes, it does not mean everything will be in French everywhere.
It is supported because you can use French language to talk to the bot. For example in the Prompt class, when you use a PromptConfirm will understand when you reply with oui or non.
For the Webchat interface, if you need to customize anything, have a look to the github project about webchat here: https://github.com/Microsoft/BotFramework-WebChat
You will find all the necessary items to search if you can setup what you want to change.
To localize the content of your bot you need to configure the default locale in your bot code, and provide resource files that define the default messaging in your language. All of this happens in your bot code and not in WebChat. The WebChat control is just the delivery mechanism for your bot's messages.
For more information on localization in Bot Framework:
.NET SDK: https://learn.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-formflow-localize
Node SDK: https://learn.microsoft.com/en-us/bot-framework/nodejs/bot-builder-nodejs-localization
Code Examples:
.NET SDK: https://github.com/Microsoft/BotBuilder/tree/master/CSharp/Samples/AnnotatedSandwichBot
Node SDK: https://github.com/Microsoft/BotBuilder/tree/master/Node/examples/basics-localization
I am quite new to the Microsoft Bot Framework, I would like to use BOT to translate user input to the language user specifies, how to get started with this? please share your thoughts.
In Bot Builder V4,
you can use System.Globalization.CultureInfo("en-US");
Here is a link to the official answer regarding this https://github.com/Microsoft/BotBuilder/issues/1156
I'm building a chatbot that will need to be launched on Kik, Facebook, and Slack. I'm unsure of where to start in terms of using a bot framework or whether I should create something custom myself.
I don't believe I will need any NLP. The user is going to be pushed down a very structured path, that will use buttons to guide the users to the next prompts and will also share with the user links and media.
Microsoft Bot Framework seems like the main framework I should look at, but its unclear to me how useful it will be if I end up wanting to deliver responses that are custom to each messaging platform. Meaning, on Facebook I may want to take advantage of a custom feature that they have like buttons or templates and on Kik I will want to take advantage of suggested keyboards.
Any suggestions or guidance is appreciated.
BotFramework will do the translation for you. Write to the BotFramework schema and it will using buttons for Facebook and keyboards for Kik.