Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit e685b5a

Browse files
authored
[Botskills] Update documentation (#3438)
* Update botskills documentation * Update output list of botskills commands
1 parent 5166ed9 commit e685b5a

File tree

15 files changed

+50
-49
lines changed

15 files changed

+50
-49
lines changed

docs/_docs/skills/handbook/add-skills-to-a-virtual-assistant.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ See the [Skills Overview]({{site.baseurl}}/overview/skills) section for details
4646

4747
Run the following command to add each Skill to your Virtual Assistant. This assumes you are running the CLI within the project directory and have created your Bot through the template and therefore have a `appsettings.json` file present in the working folder.
4848

49-
The `--luisFolder` parameter can be used to point the Skill CLI at the source LU files for trigger utterances. For Skills provided within this repo these can be found in the `Deployment/Resources/LU` folder of each Skill. The CLI will automatically traverse locale folder hierarchies. This can be omitted for any of the skills we provide as the LU files are provided locally. Also, you have to specify the `--cs` (for C#) or `--ts` (for TypeScript) argument for determining the coding language of your assistant, since each language takes different folder structures that need to be taken into consideration.
50-
5149
```bash
5250
botskills connect --remoteManifest "{{site.data.urls.SkillManifest}}" --cs
5351
```
5452

53+
The `--luisFolder` parameter can be used to point the Skill CLI at the source LU files for trigger utterances. For Skills provided within this repo these can be found in the `Deployment/Resources/LU` folder of each Skill. The CLI will automatically traverse locale folder hierarchies. This can be omitted for any of the skills we provide as the LU files are provided locally. Also, you have to specify the `--cs` (for C#) or `--ts` (for TypeScript) argument for determining the coding language of your assistant, since each language takes different folder structures that need to be taken into consideration.
54+
55+
5556
Once the connect command finish successfully, you can see under the `botFrameworkSkills` property of your Virtual Assistant's appsettings.json file that the following structure was added with the information provided in the Skill manifest.
5657
5758
```json
@@ -62,7 +63,7 @@ Once the connect command finish successfully, you can see under the `botFramewor
6263
"name": "<SKILL_NAME>",
6364
"description": "<SKILL_DESCRIPTION>"
6465
},
65-
"skillHostEndpoint": "<VA-SKILL_ENDPOINT>"
66+
"skillHostEndpoint": "<VA_SKILL_ENDPOINT>"
6667
```
6768
6869
See the [Skill CLI documentation]({{site.baseurl}}/skills/handbook/botskills) for detailed CLI documentation.
@@ -87,13 +88,14 @@ To update a Skill to your assistant/Bot we provide a `botskills` command line to
8788
8889
Run the following command to update a Skill to your Virtual Assistant. This assumes you are running the CLI within the project directory and have created your Bot through the template and therefore have a `appsettings.json` file present in the working folder.
8990
90-
The `--luisFolder` parameter can be used to point the Skill CLI at the source LU files for trigger utterances. For Skills provided within this repo these can be found in the `Deployment/Resources/LU` folder of each Skill. The CLI will automatically traverse locale folder hierarchies. This can be omitted for any of the skills we provide as the LU files are provided locally. Also, you have to specify the `--cs` (for C#) or `--ts` (for TypeScript) argument for determining the coding language of your assistant, since each language takes different folder structures that need to be taken into consideration.
91-
9291
```bash
93-
botskills update --botName YOUR_BOT_NAME --remoteManifest "{{site.data.urls.SkillManifest}}" --cs
92+
botskills update --remoteManifest "{{site.data.urls.SkillManifest}}" --cs
9493
```
9594
95+
The `--luisFolder` parameter can be used to point the Skill CLI at the source LU files for trigger utterances. For Skills provided within this repo these can be found in the `Deployment/Resources/LU` folder of each Skill. The CLI will automatically traverse locale folder hierarchies. This can be omitted for any of the skills we provide as the LU files are provided locally. Also, you have to specify the `--cs` (for C#) or `--ts` (for TypeScript) argument for determining the coding language of your assistant, since each language takes different folder structures that need to be taken into consideration.
96+
9697
## Refresh Connected Skills
98+
9799
To refresh the dispatch model with any changes made to connected skills use the following command, specifying the `--cs` (for C#) or `--ts` (for TypeScript) argument for determining the coding language of your assistant, since each language takes different folder structures that need to be taken into consideration.
98100
99101
```bash

docs/_docs/skills/handbook/botskills.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The `connect` command allows you to connect a Skill, be it local or remote, to y
4141
4242
Here is an example:
4343
```bash
44-
botskills connect --remoteManifest "{{site.data.urls.SkillManifest}}" --luisFolder "<YOUR-SKILL_PATH>\Deployment\Resources\LU" --languages "en-us" --cs
44+
botskills connect --remoteManifest "{{site.data.urls.SkillManifest}}" --cs
4545
```
4646
4747
*Remember to re-publish your Assistant to Azure after you've added a Skill unless you plan on testing locally only*
@@ -69,7 +69,7 @@ The `update` command allows you to update a Skill, be it local or remote, to you
6969
7070
Here is an example:
7171
```bash
72-
botskills update --botName <YOUR_BOT_NAME> --remoteManifest "{{site.data.urls.SkillManifest}}" --luisFolder <YOUR_LUIS_FOLDER_PATH> --cs
72+
botskills update --remoteManifest "{{site.data.urls.SkillManifest}}" --cs
7373
```
7474
7575
For further information, see the [Update command documentation]({{site.repo}}/tree/master/tools/botskills/docs/commands/update.md).

docs/_docs/skills/tutorials/create-skill/csharp/7-add-your-skill.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To add your new Skill to your assistant we provide the [botskills](https://www.n
2222
Run the following command from a command prompt **within the directory of your assistant/Bot**.
2323

2424
```bash
25-
botskills connect --remoteManifest "https://<YOUR_SKILL_NAME>.azurewebsites.net/manifest/manifest-1.1.json" --cs --luisFolder "path-to-lu-folder"
25+
botskills connect --remoteManifest "https://<YOUR_SKILL_NAME>.azurewebsites.net/manifest/manifest-1.1.json" --cs
2626
```
2727
Remember to re-publish your assistant to Azure after you’ve added a Skill unless you plan on testing locally only.
2828

@@ -36,7 +36,7 @@ Once the connect command finish successfully, you can see under the `botFramewor
3636
"name": "<SKILL_NAME>",
3737
"description": "<SKILL_DESCRIPTION>"
3838
},
39-
"skillHostEndpoint": "<VA-SKILL_ENDPOINT>"
39+
"skillHostEndpoint": "<VA_SKILL_ENDPOINT>"
4040
```
4141

4242
For further documentation, please check the following links:

docs/_docs/skills/tutorials/create-skill/typescript/6-add-your-skill.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ order: 6
1313

1414
## Validate the Skill manifest endpoint
1515

16-
To validate your Skill is deployed and working open up a browser window and navigate to your deployed Skill manifest (`/api/skill/manifest endpoint`). e.g. `http://localhost:3978/api/skill/manifest`
16+
To validate your Skill is deployed and working open up a browser window and navigate to your deployed Skill manifest. e.g. `http://localhost:3978/src/manifest/manifest-1.1.json`
1717

1818
## Adding your skill to an assistant
1919

@@ -22,7 +22,7 @@ To add your new Skill to your assistant we provide the [botskills](https://www.n
2222
Run the following command from a command prompt **within the directory of your assistant/Bot**.
2323

2424
```bash
25-
botskills connect --remoteManifest "https://<YOUR_SKILL_NAME>.azurewebsites.net/manifest/manifest-1.1.json" --ts --luisFolder "path-to-lu-folder"
25+
botskills connect --remoteManifest "https://<YOUR_SKILL_NAME>.azurewebsites.net/manifest/manifest-1.1.json" --ts
2626
```
2727

2828
Remember to re-publish your assistant to Azure after you’ve added a Skill unless you plan on testing locally only.
@@ -37,7 +37,7 @@ Once the connect command finish successfully, you can see under the `botFramewor
3737
"name": "<SKILL_NAME>",
3838
"description": "<SKILL_DESCRIPTION>"
3939
},
40-
"skillHostEndpoint": "<VA-SKILL_ENDPOINT>"
40+
"skillHostEndpoint": "<VA_SKILL_ENDPOINT>"
4141
```
4242

4343
For further documentation, please check the following links:

tools/botskills/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ npm uninstall -g botskills
2727
- [Update](./docs/commands/update.md) a Skill from your assistant
2828
- [Refresh](./docs/commands/refresh.md) connected skills
2929
- [List](./docs/commands/list.md) all Skills connected to your assistant
30+
- [Migrate](./docs/commands/migrate.md) all the skills to the new schema configuration settings.
3031

3132
## Daily builds
3233
Daily builds are based on the latest development code which means they may or may not be stable and probably won't be documented. These builds are better suited for more experienced users and developers although everyone is welcome to give them a shot and provide feedback.

tools/botskills/docs/commands/connect.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ For Skills that require other Authentication connection configuration please fol
4848
| -r, --remoteManifest \<url> | URL to remote Skill Manifest |
4949
| --cs | Determine your Virtual Assistant project structure to be a csharp-like structure |
5050
| --ts | Determine your Virtual Assistant project structure to be a TypeScript-like structure |
51-
| --noRefresh [true\|FALSE] | (OPTIONAL) Determine whether the model of your skills connected are not going to be refreshed (by default they are refreshed) |
51+
| --noRefresh [true\|FALSE] | (OPTIONAL) Determine whether the model of your skills connected are not going to be refreshed (by default they are refreshed) |
52+
| -e, --endpointName \<name> | (OPTIONAL) Name of the endpoint to connect to your assistant (case sensitive) (default to using the first endpoint) |
5253
| --languages [languages] | (OPTIONAL) Comma separated list of locales used for LUIS culture (defaults to `en-us`) |
5354
| --luisFolder [path] | (OPTIONAL) Path to the folder containing your Skills' '.lu' files (defaults to './deployment/resources/skills/en' inside your Virtual Assistant folder) |
54-
| --dispatchFolder [path] | (OPTIONAL) Path to the folder containing your Virtual Assistant's `.dispatch` file (defaults to `./deployment/resources/dispatch` inside your Virtual Assistant folder) |
55+
| --dispatchFolder [path] | (OPTIONAL) Path to the folder containing your Virtual Assistant's `.dispatch` file (defaults to `./deployment/resources/dispatch` inside your Virtual Assistant folder) |
5556
| --outFolder [path] | (OPTIONAL) Path for any output file that may be generated (defaults to your Virtual Assistant's root folder) |
56-
| --lgOutFolder [path] | (OPTIONAL) Path for the Luis Generate output (defaults to a 'service' folder inside your Virtual Assistant's folder) |
57-
| --skillsFile [path] | (OPTIONAL) Path to your Virtual Assistant Skills configuration file (defaults to the `skills.json` inside your Virtual Assistant's folder) |
57+
| --lgOutFolder [path] | (OPTIONAL) Path for the Luis Generate output (defaults to a 'service' folder inside your Virtual Assistant's folder) |
5858
| --resourceGroup [name] | (OPTIONAL) Name of your Virtual Assistant's resource group in Azure (defaults to your Virtual Assistant's bot name) |
5959
| --appSettingsFile [path] | (OPTIONAL) Path to your appsettings file (defaults to `appsettings.json` inside your Virtual Assistant's folder) |
6060
| --cognitiveModelsFile [path] | (OPTIONAL) Path to your Cognitive Models file (defaults to `cognitivemodels.json` inside your Virtual Assistant's folder) |
@@ -64,13 +64,13 @@ For Skills that require other Authentication connection configuration please fol
6464
An example on how to use it with a local Skill manifest file:
6565

6666
```bash
67-
botskills connect --localManifest "./skills/customSkill/customSkillManifest.json" --skillsFile "./skills.json" --cs --verbose
67+
botskills connect --localManifest "./skills/customSkill/customSkillManifest.json" --cs
6868
```
6969

70-
> **Note:** The paths to both the Skill Manifest and the Virtual Assistant Skills configuration file can be relative or absolute paths equally, and should be explicitly a `.json` file.
70+
> **Note:** The paths to the Skill Manifest can be relative or absolute paths equally, and should be explicitly a `.json` file.
7171
7272
An example on how to use it with a remote Skill manifest:
7373

7474
```bash
75-
botskills connect --remoteManifest "http://<YOUR_SKILL_MANIFEST>.azurewebsites.net/api/skill/manifest" --skillsFile "./skills.json" --cs --verbose
75+
botskills connect --remoteManifest "http://<YOUR_SKILL_MANIFEST>.azurewebsites.net/api/skill/manifest" --cs
7676
```

tools/botskills/docs/commands/disconnect.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ botskills disconnect [options]
1919
| --ts | Determine your Virtual Assistant project structure to be a TypeScript-like structure |
2020
| --noRefresh | (OPTIONAL) Determine whether the model of your skills connected are not going to be refreshed (by default they are refreshed) |
2121
| --languages [languages] | (OPTIONAL) Comma separated list of locales used for LUIS culture (defaults to `en-us`) |
22-
| --dispatchFolder [path] | (OPTIONAL) Path to the folder containing your Virtual Assistant's `.dispatch` file (defaults to `./deployment/resources/dispatch` inside your Virtual Assistant folder) |
22+
| --dispatchFolder [path] | (OPTIONAL) Path to the folder containing your Virtual Assistant's `.dispatch` file (defaults to `./deployment/resources/dispatch` inside your Virtual Assistant folder) |
2323
| --outFolder [path] | (OPTIONAL) Path for any output file that may be generated (defaults to your Virtual Assistant's root folder) |
24-
| --lgOutFolder [path] | (OPTIONAL) Path for the Luis Generate output (defaults to a `service` folder inside your Virtual Assistant's folder) |
25-
| --skillsFile [path] | (OPTIONAL) Path to your Virtual Assistant Skills configuration file (defaults to the `skills.json` inside your Virtual Assistant's folder) |
24+
| --lgOutFolder [path] | (OPTIONAL) Path for the Luis Generate output (defaults to a `service` folder inside your Virtual Assistant's folder) |
25+
| --appSettingsFile [path] | (OPTIONAL) Path to your app settings file (defaults to `appsettings.json` inside your assistant's folder) |
2626
| --cognitiveModelsFile [path] | (OPTIONAL) Path to your Cognitive Models file (defaults to `cognitivemodels.json` inside your Virtual Assistant's folder) |
2727
| --verbose | (OPTIONAL) Output detailed information about the processing of the tool |
2828
| -h, --help | Output usage information |

tools/botskills/docs/commands/list.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ botskills list [options]
1111

1212
## Options
1313

14-
| Option | Description |
15-
|--------------------------|-------------------------------------------------------------------------|
14+
| Option | Description |
15+
|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------- |
1616
| --appSettingsFile [path] | (OPTIONAL) Path to your appsettings file where the skills are stored (defaults to `appsettings.json` inside your Virtual Assistant's folder) |
17-
| --verbose | (OPTIONAL) Output detailed information about the processing of the tool |
18-
| -h, --help | Output usage information |
17+
| --verbose | (OPTIONAL) Output detailed information about the processing of the tool |
18+
| -h, --help | Output usage information |

tools/botskills/docs/commands/migrate.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@ botskills migrate [options]
1111

1212
## Options
1313

14-
| Option | Description |
15-
|--------------------------|-------------------------------------------------------------------------|
16-
| --sourceFile | (OPTIONAL) Path to your skills.json file, which contains the skills that will be migrated (defaults to `\skills.json\` inside your Virtual Assistant's folder) |
17-
| --destFile | (OPTIONAL) (OPTIONAL) Path to your appsettings file. The skills information will be migrated to this file (defaults to `\appsettings.json\` inside your Virtual Assistant's folder) |
18-
| --verbose | (OPTIONAL) Output detailed information about the processing of the tool |
19-
| -h, --help | Output usage information |
14+
| Option | Description |
15+
|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
16+
| --sourceFile | (OPTIONAL) Path to your skills.json file, which contains the skills that will be migrated (defaults to `\skills.json\` inside your Virtual Assistant's folder) |
17+
| --destFile | (OPTIONAL) Path to your appsettings file. The skills information will be migrated to this file (defaults to `\appsettings.json\` inside your Virtual Assistant's folder) |
18+
| --verbose | (OPTIONAL) Output detailed information about the processing of the tool |
19+
| -h, --help | Output usage information |
2020

2121
Here is an example of how to use the `Migrate` command:
2222

23-
> **Note:** The paths to both the Skill Manifest and the Virtual Assistant Skills configuration file can be relative or absolute paths equally, and should be explicitly a `.json` file.
24-
2523
```bash
26-
botskills migrate --sourceFile "<YOUR-ASSISTANT_PATH>/skills.json" --destFile "<YOUR-ASSISTANT_PATH>/appsettings.json" --verbose
24+
botskills migrate --sourceFile "<YOUR-ASSISTANT_PATH>/skills.json" --destFile "<YOUR-ASSISTANT_PATH>/appsettings.json"
2725
```

0 commit comments

Comments
 (0)