This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
feature: Adding VA template behind feature flag in Composer #4140
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8d4a9f6
Adding va core template plug in with corresponding plugin build steps
pavolumMsft bd78386
Adding env variable feature flag around VA=Core template
pavolumMsft e46cb29
removing unused code that was initially added for custom runtime whic…
pavolumMsft dc389e5
Merge branch 'main' into pavolum/va-template
pavolumMsft ce38062
Merge branch 'main' into pavolum/va-template
pavolumMsft ff4de94
Merge branch 'main' into pavolum/va-template
pavolumMsft 9a50176
Updating react version in creation extension
pavolumMsft a5710e7
Merging from master
pavolumMsft 55e3afe
Formatting template strings for localization
pavolumMsft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| module.exports = { | ||
| extends: ['../../.eslintrc.js'], | ||
| parserOptions: { | ||
| project: './tsconfig.json', | ||
| tsconfigRootDir: __dirname, | ||
| }, | ||
| rules: { | ||
| 'security/detect-non-literal-fs-filename': 'off', | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| hostedBots | ||
| node_modules | ||
| lib | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "name": "vacore", | ||
| "version": "1.0.0", | ||
| "description": "A plug-in to provide the declarative VA template as an option in the new bot creation flow", | ||
| "main": "lib/index.js", | ||
| "scripts": { | ||
| "build": "tsc" | ||
| }, | ||
| "extendsComposer": true, | ||
| "author": "", | ||
| "license": "ISC", | ||
| "dependencies": { | ||
| "adm-zip": "^0.4.14", | ||
| "archiver": "^3.1.1", | ||
| "globby": "^11.0.0", | ||
| "path": "^0.12.7", | ||
| "portfinder": "^1.0.26", | ||
| "rimraf": "^3.0.2", | ||
| "uuid": "^7.0.1" | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
| import path from 'path'; | ||
|
|
||
| import formatMessage from 'format-message'; | ||
|
|
||
| export default async (composer: any): Promise<void> => { | ||
| if (process.env.VA_CREATION) { | ||
| // register the base template which will appear in the new bot modal | ||
| composer.addBotTemplate({ | ||
| id: 'va-core', | ||
| name: formatMessage('VA Core'), | ||
| description: formatMessage('The core of your new VA - ready to run, just add skills!'), | ||
| path: path.resolve(__dirname, '../template'), | ||
| }); | ||
| } | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| { | ||
| "$kind": "Microsoft.AdaptiveDialog", | ||
| "$designer": { | ||
| "$designer": { | ||
pavolum marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "name": "Assistant", | ||
| "id": "yljW4K" | ||
| } | ||
| }, | ||
| "autoEndDialog": true, | ||
| "defaultResultProperty": "dialog.result", | ||
| "triggers": [ | ||
| { | ||
| "$kind": "Microsoft.OnConversationUpdateActivity", | ||
| "$designer": { | ||
| "id": "376720" | ||
| }, | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.Foreach", | ||
| "$designer": { | ||
| "id": "518944", | ||
| "name": "Loop: for each item" | ||
pavolum marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| "itemsProperty": "turn.Activity.membersAdded", | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.IfCondition", | ||
| "$designer": { | ||
| "id": "641773", | ||
| "name": "Branch: if/else" | ||
| }, | ||
| "condition": "string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)", | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.IfCondition", | ||
| "$designer": { | ||
| "id": "79ozrh" | ||
| }, | ||
| "condition": "exists(user.name)", | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.SendActivity", | ||
| "$designer": { | ||
| "id": "eFWCwn" | ||
| }, | ||
| "activity": "${SendActivity_eFWCwn()}" | ||
| } | ||
| ], | ||
| "elseActions": [ | ||
| { | ||
| "$kind": "Microsoft.SendActivity", | ||
| "$designer": { | ||
| "id": "093uOZ" | ||
| }, | ||
| "activity": "${SendActivity_093uOZ()}" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.OnIntent", | ||
| "$designer": { | ||
| "id": "CbiPPL" | ||
| }, | ||
| "intent": "Onboarding", | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.BeginDialog", | ||
| "$designer": { | ||
| "id": "jc7tAB" | ||
| }, | ||
| "activityProcessed": true, | ||
| "dialog": "Onboarding" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.OnIntent", | ||
| "$designer": { | ||
| "id": "gZE9hG" | ||
| }, | ||
| "intent": "General", | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.BeginDialog", | ||
| "$designer": { | ||
| "id": "q4TygS" | ||
| }, | ||
| "activityProcessed": false, | ||
| "dialog": "General" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.OnUnknownIntent", | ||
| "$designer": { | ||
| "id": "rGaaTe" | ||
| }, | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.SendActivity", | ||
| "$designer": { | ||
| "id": "Tdowmo" | ||
| }, | ||
| "activity": "${SendActivity_Tdowmo()}" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "$schema": "https://raw.githubusercontent.com/microsoft/BotFramework-Composer/stable/Composer/packages/server/schemas/sdk.schema", | ||
| "generator": "assistant.lg", | ||
| "recognizer": "assistant.lu" | ||
| } | ||
37 changes: 37 additions & 0 deletions
37
Composer/plugins/vacore/template/dialogs/Chit-chat/Chit-chat.dialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| "$kind": "Microsoft.AdaptiveDialog", | ||
| "$designer": { | ||
| "id": "pTP753", | ||
| "name": "Chit-chat" | ||
| }, | ||
| "autoEndDialog": true, | ||
| "defaultResultProperty": "dialog.result", | ||
| "triggers": [ | ||
| { | ||
| "$kind": "Microsoft.OnBeginDialog", | ||
| "$designer": { | ||
| "name": "BeginDialog", | ||
| "id": "f0kmgx" | ||
| }, | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.QnAMakerDialog", | ||
| "$designer": { | ||
| "id": "8blaBe" | ||
| }, | ||
| "knowledgeBaseId": "=settings.qna.chitchat.knowledgebaseid", | ||
| "endpointKey": "=settings.qna.chitchat.endpointkey", | ||
| "hostname": "=settings.qna.chitchat.hostname", | ||
| "noAnswer": "Sorry, I did not find an answer.", | ||
| "threshold": 0.3, | ||
| "activeLearningCardTitle": "Did you mean:", | ||
| "cardNoMatchText": "None of the above.", | ||
| "cardNoMatchResponse": "Thanks for the feedback.", | ||
| "top": 3, | ||
| "isTest": false | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "generator": "Chit-chat.lg" | ||
| } |
11 changes: 11 additions & 0 deletions
11
Composer/plugins/vacore/template/dialogs/Chit-chat/knowledge-base/en-us/Chit-chat.en-us.qna
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| > Source: qna_chitchat_Professional | ||
| ## ? Do you ever get hurt? | ||
| - Can you breathe | ||
| - Do you ever breathe | ||
|
|
||
| **Filters:** | ||
| - editorial = chitchat | ||
|
|
||
| ```markdown | ||
| I don't have a body. | ||
| ``` |
1 change: 1 addition & 0 deletions
1
...er/plugins/vacore/template/dialogs/Chit-chat/language-generation/en-us/Chit-chat.en-us.lg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| [import](common.lg) |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| "$kind": "Microsoft.AdaptiveDialog", | ||
| "$designer": { | ||
| "id": "VB8fyF", | ||
| "name": "FAQ" | ||
| }, | ||
| "autoEndDialog": true, | ||
| "defaultResultProperty": "dialog.result", | ||
| "triggers": [ | ||
| { | ||
| "$kind": "Microsoft.OnBeginDialog", | ||
| "$designer": { | ||
| "name": "BeginDialog", | ||
| "id": "dV0xqb" | ||
| }, | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.QnAMakerDialog", | ||
| "$designer": { | ||
| "id": "ZajvJ6" | ||
| }, | ||
| "knowledgeBaseId": "=settings.qna.faq.knowledgebaseid", | ||
| "endpointKey": "=settings.qna.faq.endpointkey", | ||
| "hostname": "=settings.qna.faq.hostname", | ||
| "noAnswer": "Sorry, I did not find an answer.", | ||
| "threshold": 0.3, | ||
| "activeLearningCardTitle": "Did you mean:", | ||
| "cardNoMatchText": "None of the above.", | ||
| "cardNoMatchResponse": "Thanks for the feedback.", | ||
| "top": 3, | ||
| "isTest": false | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "generator": "FAQ.lg" | ||
| } |
1 change: 1 addition & 0 deletions
1
Composer/plugins/vacore/template/dialogs/FAQ/language-generation/en-us/FAQ.en-us.lg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| [import](common.lg) |
Empty file.
72 changes: 72 additions & 0 deletions
72
Composer/plugins/vacore/template/dialogs/General/General.dialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| { | ||
| "$kind": "Microsoft.AdaptiveDialog", | ||
| "$designer": { | ||
| "id": "xqkRH9", | ||
| "name": "General", | ||
| "description": "" | ||
| }, | ||
| "autoEndDialog": true, | ||
| "defaultResultProperty": "dialog.result", | ||
| "triggers": [ | ||
| { | ||
| "$kind": "Microsoft.OnIntent", | ||
| "$designer": { | ||
| "id": "mKmCya", | ||
| "name": "Cancel" | ||
| }, | ||
| "intent": "Cancel", | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.SendActivity", | ||
| "$designer": { | ||
| "id": "JIKBPR" | ||
| }, | ||
| "activity": "${SendActivity_JIKBPR()}" | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.CancelAllDialogs", | ||
| "$designer": { | ||
| "id": "cijXOD" | ||
| }, | ||
| "activityProcessed": true | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.OnIntent", | ||
| "$designer": { | ||
| "id": "FmSrE6", | ||
| "name": "Escalate" | ||
| }, | ||
| "intent": "Escalate", | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.SendActivity", | ||
| "$designer": { | ||
| "id": "tJCEYl" | ||
| }, | ||
| "activity": "${SendActivity_tJCEYl()}" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "$kind": "Microsoft.OnIntent", | ||
| "$designer": { | ||
| "id": "cccZIk", | ||
| "name": "Help" | ||
| }, | ||
| "intent": "Help", | ||
| "actions": [ | ||
| { | ||
| "$kind": "Microsoft.SendActivity", | ||
| "$designer": { | ||
| "id": "ORmxjp" | ||
| }, | ||
| "activity": "${SendActivity_ORmxjp()}" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "generator": "General.lg", | ||
| "recognizer": "General.lu" | ||
| } |
11 changes: 11 additions & 0 deletions
11
Composer/plugins/vacore/template/dialogs/General/language-generation/en-us/General.en-us.lg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| [import](common.lg) | ||
|
|
||
| # SendActivity_ORmxjp() | ||
| - ${YouCanAskMeCard()} | ||
| # SendActivity_tJCEYl() | ||
| - Sure, transferring you to an agent. | ||
|
|
||
| # SendActivity_JIKBPR() | ||
| - OK. | ||
| - Got it. | ||
| - Sure. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.