Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Composer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@
"build:server": "yarn workspace @bfc/server build",
"build:client": "yarn workspace @bfc/client build",
"build:tools": "yarn workspace @bfc/tools build:all",
"build:plugins": "yarn build:plugins:localpublish && yarn build:plugins:samples && yarn build:plugins:azurePublish && yarn build:plugins:runtimes",
"build:plugins": "yarn build:plugins:localpublish && yarn build:plugins:samples && yarn build:plugins:azurePublish && yarn build:plugins:runtimes & yarn build:plugins:vacore",
"build:plugins:localpublish": "cd plugins/localPublish && yarn install && yarn build",
"build:plugins:samples": "cd plugins/samples && yarn install && yarn build",
"build:plugins:azurePublish": "cd plugins/azurePublish && yarn install && yarn build",
"build:plugins:runtimes": "cd plugins/runtimes && yarn install && yarn build",
"build:plugins:vacore": "cd plugins/vacore && yarn install && yarn build",
"start": "cross-env NODE_ENV=production PORT=3000 yarn start:server",
"startall": "yarn start",
"start:dev": "concurrently \"npm:start:client\" \"npm:start:server:dev\"",
Expand Down
10 changes: 10 additions & 0 deletions Composer/plugins/vacore/.eslintrc.js
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',
},
};
4 changes: 4 additions & 0 deletions Composer/plugins/vacore/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
hostedBots
node_modules
lib

21 changes: 21 additions & 0 deletions Composer/plugins/vacore/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "vacore",
"version": "1.0.0",
Comment thread
pavolum marked this conversation as resolved.
"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"
}
}
15 changes: 15 additions & 0 deletions Composer/plugins/vacore/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import path from 'path';

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: 'VA Core',
description: 'The core of your new VA - ready to run, just add skills!',
Comment thread
pavolum marked this conversation as resolved.
Outdated
path: path.resolve(__dirname, '../template'),
});
}
};
118 changes: 118 additions & 0 deletions Composer/plugins/vacore/template/assistant.dialog
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"$kind": "Microsoft.AdaptiveDialog",
"$designer": {
"$designer": {
Comment thread
pavolum marked this conversation as 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"
Comment thread
pavolum marked this conversation as 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"
}
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"
}
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.
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[import](common.lg)
37 changes: 37 additions & 0 deletions Composer/plugins/vacore/template/dialogs/FAQ/FAQ.dialog
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"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[import](common.lg)
72 changes: 72 additions & 0 deletions Composer/plugins/vacore/template/dialogs/General/General.dialog
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"
}
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.
Loading