Multilanguage functionality
Explanation for the connection of multiple languages of the same Skill
Overview
We introduced the possibility to connect multiple languages of the same Skill at the same time to the Virtual Assistant using Botskills CLI Tool.
Connections depend on the triangulation of the following language sources:
- The
Dispatch modelsavailable in the Virtual Assistant - The
languages for the intentsin the Skill Manifest - The
--languagesargument of thebotskills connectcommand
The only way to successfully execute the connection of several languages between a Virtual Assistant and a Skill would be if the --languages argument contains the same or less values than the result of the intersection between the Dispatch models languages and the Skill manifest intents languages.
Known scenarios
Assuming this scenario:
- Dispatch models in
en-us,es-es,fr-fravailable in the Virtual Assistant - The Skill Manifest contains
en-us,es-es,it-itas languages for the intents
In this case, the intersection between the Dispatch models and the languages for the intents is en-us and es-es. So, the --languages argument should contain:
en-us,es-esen-uses-es
If the tool identifies an invalid language, it will stop the execution without connecting the valid languages.
Examples
Taking into account the scenario mentioned, we will connect the en-us and es-es languages of the Skill to the Virtual Assistant
botskills connect --remoteManifest "https://<YOUR_SKILL_NAME>.azurewebsites.net/manifest/manifest-1.1.json" --cs --languages "en-us,es-es" --luisFolder "<PATH_TO_LU_FOLDER>"
Since
--languagesis an optional argument, it will connecten-usby default, unless we pass a value to the argument.