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 all 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
1 change: 1 addition & 0 deletions Composer/packages/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ app.use(`${BASEURL}/api`, authorize, apiRouter);

app.use(function(err: Error, req: Request, res: Response, _next: NextFunction) {
if (err) {
console.log(err);
res.status(500).json({ message: err.message });
}
});
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"MicrosoftAppPassword": "",
"MicrosoftAppId": "",
"luis": {
"name": "",
"authoringKey": "",
"endpointKey": "",
"authoringRegion": "westus",
"defaultLanguage": "en-us",
"environment": "composer"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"id": "808722"
},
"autoEndDialog": true,
"$schema": "../../app.schema",
"defaultResultProperty": "dialog.result",
"events": [
{
"$type": "Microsoft.OnBeginDialog",
"$designer": {
"id": "335456",
"updatedAt": "2019-07-22T08:10:44.402Z"
},
},
"actions": [
{
"$type": "Microsoft.SetProperty",
Expand All @@ -24,7 +24,7 @@
},
"property": "dialog.todo",
"value": "@title"
},
},
{
"$type": "Microsoft.TextInput",
"$designer": {
Expand Down Expand Up @@ -82,5 +82,6 @@
}
]
}
]
],
"$schema": "../../app.schema"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
"id": "316336"
},
"autoEndDialog": true,
"$schema": "../../app.schema",
"defaultResultProperty": "dialog.result",
"events": [
{
"$type": "Microsoft.OnBeginDialog",
"$designer": {
"id": "480162",
"updatedAt": "2019-07-22T08:10:50.068Z"
},

"actions": [
{
"$type": "Microsoft.EditArray",
Expand Down Expand Up @@ -60,5 +59,6 @@
}
]
}
]
}
],
"$schema": "../../app.schema"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,41 @@
"description": "This is a bot that demonstrates how to manage a ToDo list using Regular Expressions."
},
"autoEndDialog": false,
"defaultResultProperty": "dialog.result",
"recognizer": {
"$type": "Microsoft.RegexRecognizer",
"intents": [
{

"$type": "Microsoft.IntentPattern",
"intent": "AddIntent",
"pattern": "(?i)(?:add|create) .*(?:to-do|todo|task)(?: )?(?:named (?<title>.*))?"
"$type": "Microsoft.IntentPattern",
"intent": "AddIntent",
"pattern": "(?i)(?:add|create) .*(?:to-do|todo|task)(?: )?(?:named (?<title>.*))?"
},
{

"$type": "Microsoft.IntentPattern",
"intent": "ClearIntent",
"pattern": "(?i)(?:delete|remove|clear) (?:all|every) (?:to-dos|todos|tasks)"
"$type": "Microsoft.IntentPattern",
"intent": "ClearIntent",
"pattern": "(?i)(?:delete|remove|clear) (?:all|every) (?:to-dos|todos|tasks)"
},
{

"$type": "Microsoft.IntentPattern",
"intent": "DeleteIntent",
"pattern": "(?i)(?:delete|remove|clear) .*(?:to-do|todo|task)(?: )?(?:named (?<title>.*))?"
"$type": "Microsoft.IntentPattern",
"intent": "DeleteIntent",
"pattern": "(?i)(?:delete|remove|clear) .*(?:to-do|todo|task)(?: )?(?:named (?<title>.*))?"
},
{

"$type": "Microsoft.IntentPattern",
"intent": "ShowIntent",
"pattern": "(?i)(?:show|see|view) .*(?:to-do|todo|task)"
"$type": "Microsoft.IntentPattern",
"intent": "ShowIntent",
"pattern": "(?i)(?:show|see|view) .*(?:to-do|todo|task)"
},
{

"$type": "Microsoft.IntentPattern",
"intent": "HelpIntent",
"pattern": "(?i)help"
"$type": "Microsoft.IntentPattern",
"intent": "HelpIntent",
"pattern": "(?i)help"
},
{

"$type": "Microsoft.IntentPattern",
"intent": "CancelIntent",
"pattern": "(?i)cancel|never mind"
"$type": "Microsoft.IntentPattern",
"intent": "CancelIntent",
"pattern": "(?i)cancel|never mind"
}
]
]
},
"generator": "common.lg",
"events": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
"id": "709692"
},
"autoEndDialog": true,
"$schema": "../../app.schema",
"defaultResultProperty": "dialog.result",
"events": [
{
"$type": "Microsoft.OnBeginDialog",
"$designer": {
"id": "783343",
"updatedAt": "2019-07-22T08:11:00.380Z"
},

"actions": [
{
"$type": "Microsoft.IfCondition",
Expand Down Expand Up @@ -51,5 +50,6 @@
}
]
}
]
}
],
"$schema": "../../app.schema"
}
12 changes: 12 additions & 0 deletions SampleBots/ToDoBot/ComposerDialogs/settings/appsettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"MicrosoftAppPassword": "",
"MicrosoftAppId": "",
"luis": {
"name": "",
"authoringKey": "",
"endpointKey": "",
"authoringRegion": "westus",
"defaultLanguage": "en-us",
"environment": "composer"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"MicrosoftAppPassword": "",
"MicrosoftAppId": "",
"luis": {
"name": "TestAgain",
"authoringKey": "",
"endpointKey": "",
"authoringRegion": "westus",
"defaultLanguage": "en-us",
"environment": "composer2"
}
}