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
49 changes: 30 additions & 19 deletions SampleBots/Interrupt/GetProfile/GetProfile.dialog
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,42 @@
"$type": "Microsoft.AdaptiveDialog",
"$designer": {
"createdAt": "2019-08-02T21:23:09.609Z",
"updatedAt": "2019-08-02T21:41:57.585Z",
"updatedAt": "2019-10-03T01:16:00.266Z",
"id": "622543",
"name": "GetProfile"
},
"autoEndDialog": true,
"defaultResultProperty": "dialog.result",
"recognizer": "GetProfile.lu",
"events": [
{
"$type": "Microsoft.OnBeginDialog",
"$designer": {
"name": "Handle an Event",
"name": "OnBeginDialog",
"id": "151697",
"updatedAt": "2019-08-02T21:23:15.465Z"
"updatedAt": "2019-10-03T01:16:08.941Z"
},
"actions": [
{
"$type": "Microsoft.TextInput",
"$designer": {
"name": "Prompt for text",
"id": "362298",
"updatedAt": "2019-08-06T00:27:14.414Z"
"updatedAt": "2019-10-03T01:24:19.651Z"
},
"outputFormat": "trim",
"allowInterruptions": "always",
"property": "user.profile.name",
"prompt": "What is your name? \\n \\[Suggestions=Why? | No name | Cancel | Reset profile\\]",
"invalidPrompt": "Sorry, '{turn.value}' does not work. I'm looking for 2-150 characters. What is your name? \\n \\[Suggestions=Why? | No name | Cancel | Reset profile\\]",
"maxTurnCount": 3,
"validations": [
"length(turn.value) <= 150"
"length(turn.value) <= 150",
"length(turn.value) > 2"
],
"value": "concat(toUpper(substring(@userName, 0, 1)), substring(@userName, 1))",
"property": "user.profile.name",
"defaultValue": "'Human'",
"alwaysPrompt": false,
"value": "@userName"
"allowInterruptions": "always",
"outputFormat": "trim"
},
{
"$type": "Microsoft.NumberInput",
Expand Down Expand Up @@ -73,11 +76,10 @@
{
"$type": "Microsoft.OnIntent",
"$designer": {
"name": "Handle an Intent",
"name": "Why",
"id": "661298",
"updatedAt": "2019-08-02T21:43:30.949Z"
"updatedAt": "2019-10-03T01:16:12.900Z"
},
"intent": "Why",
"actions": [
{
"$type": "Microsoft.IfCondition",
Expand Down Expand Up @@ -110,16 +112,16 @@
}
]
}
]
],
"intent": "Why"
},
{
"$type": "Microsoft.OnIntent",
"$designer": {
"name": "Handle an Intent",
"name": "NoValue",
"id": "449648",
"updatedAt": "2019-08-02T21:43:34.915Z"
"updatedAt": "2019-10-03T01:16:18.662Z"
},
"intent": "NoValue",
"actions": [
{
"$type": "Microsoft.IfCondition",
Expand Down Expand Up @@ -172,9 +174,18 @@
}
]
}
]
],
"intent": "NoValue"
},
{
"$type": "Microsoft.OnIntent",
"$designer": {
"id": "372804",
"name": "GetProfileInputs",
"updatedAt": "2019-10-03T01:16:42.468Z"
},
"intent": "GetProfileInputs"
}
],
"$schema": "../../BotProject/CSharp/Schemas/app.schema",
"recognizer": "GetProfile.lu"
"$schema": "../../BotProject/CSharp/Schemas/app.schema"
}
47 changes: 24 additions & 23 deletions SampleBots/Interrupt/Main/Main.dialog
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
"$type": "Microsoft.AdaptiveDialog",
"$designer": {
"createdAt": "2019-08-02T20:09:07.865Z",
"updatedAt": "2019-08-02T20:25:15.773Z",
"updatedAt": "2019-10-03T01:15:12.382Z",
"id": "179150",
"name": "Interrupt"
},
"autoEndDialog": true,
"defaultResultProperty": "dialog.result",
"recognizer": "Main.lu",
"generator": "common.lg",
"events": [
{
Expand All @@ -32,11 +34,10 @@
{
"$type": "Microsoft.OnIntent",
"$designer": {
"name": "Handle an Intent",
"name": "GetStarted",
"id": "629539",
"updatedAt": "2019-08-02T20:26:11.592Z"
"updatedAt": "2019-10-03T01:15:34.948Z"
},
"intent": "GetStarted",
"actions": [
{
"$type": "Microsoft.BeginDialog",
Expand All @@ -47,16 +48,16 @@
},
"dialog": "GetProfile"
}
]
],
"intent": "GetStarted"
},
{
"$type": "Microsoft.OnIntent",
"$designer": {
"name": "Handle an Intent",
"name": "ResetProfile",
"id": "921175",
"updatedAt": "2019-08-02T20:26:16.856Z"
"updatedAt": "2019-10-03T01:15:42.533Z"
},
"intent": "ResetProfile",
"actions": [
{
"$type": "Microsoft.EditActions",
Expand Down Expand Up @@ -87,16 +88,16 @@
}
]
}
]
],
"intent": "ResetProfile"
},
{
"$type": "Microsoft.OnIntent",
"$designer": {
"name": "Handle an Intent",
"name": "Cancel",
"id": "870441",
"updatedAt": "2019-08-02T20:26:22.051Z"
"updatedAt": "2019-10-03T01:15:46.949Z"
},
"intent": "Cancel",
"actions": [
{
"$type": "Microsoft.SendActivity",
Expand All @@ -114,16 +115,16 @@
"id": "362033"
}
}
]
],
"intent": "Cancel"
},
{
"$type": "Microsoft.OnIntent",
"$designer": {
"name": "Handle an Intent",
"name": "ShowProfile",
"id": "171791",
"updatedAt": "2019-08-02T20:29:37.653Z"
"updatedAt": "2019-10-03T01:15:51.468Z"
},
"intent": "ShowProfile",
"actions": [
{
"$type": "Microsoft.SendActivity",
Expand Down Expand Up @@ -165,16 +166,16 @@
}
]
}
]
],
"intent": "ShowProfile"
},
{
"$type": "Microsoft.OnIntent",
"$designer": {
"name": "Handle an Intent",
"name": "Help",
"id": "160085",
"updatedAt": "2019-08-06T00:31:55.445Z"
"updatedAt": "2019-10-03T01:15:55.426Z"
},
"intent": "Help",
"actions": [
{
"$type": "Microsoft.SendActivity",
Expand All @@ -185,9 +186,9 @@
},
"activity": "[bfdactivity-924700]"
}
]
],
"intent": "Help"
}
],
"$schema": "../../app.schema",
"recognizer": "Main.lu"
"$schema": "../../app.schema"
}