diff --git a/SampleBots/Interrupt/GetProfile/GetProfile.dialog b/SampleBots/Interrupt/GetProfile/GetProfile.dialog index 61bcabf9e4..5223ab913a 100644 --- a/SampleBots/Interrupt/GetProfile/GetProfile.dialog +++ b/SampleBots/Interrupt/GetProfile/GetProfile.dialog @@ -2,18 +2,20 @@ "$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": [ { @@ -21,20 +23,21 @@ "$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", @@ -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", @@ -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", @@ -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" } diff --git a/SampleBots/Interrupt/Main/Main.dialog b/SampleBots/Interrupt/Main/Main.dialog index 44962bf8ef..c9995c1339 100644 --- a/SampleBots/Interrupt/Main/Main.dialog +++ b/SampleBots/Interrupt/Main/Main.dialog @@ -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": [ { @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -185,9 +186,9 @@ }, "activity": "[bfdactivity-924700]" } - ] + ], + "intent": "Help" } ], - "$schema": "../../app.schema", - "recognizer": "Main.lu" + "$schema": "../../app.schema" }