diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/AddToDo/AddToDo.dialog b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/AddToDo/AddToDo.dialog
new file mode 100644
index 0000000000..5ee4e61c45
--- /dev/null
+++ b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/AddToDo/AddToDo.dialog
@@ -0,0 +1,48 @@
+{
+ "$type": "Microsoft.AdaptiveDialog",
+ "$designer": {
+ "id": "808722"
+ },
+ "autoEndDialog": true,
+ "defaultResultProperty": "dialog.result",
+ "triggers": [
+ {
+ "$type": "Microsoft.OnBeginDialog",
+ "$designer": {
+ "id": "335456"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.TextInput",
+ "$designer": {
+ "id": "298897"
+ },
+ "property": "dialog.todo",
+ "prompt": "OK, please enter the title of your todo.",
+ "maxTurnCount": 3,
+ "value": "=@title",
+ "alwaysPrompt": false,
+ "allowInterruptions": "true"
+ },
+ {
+ "$type": "Microsoft.EditArray",
+ "$designer": {
+ "id": "567087"
+ },
+ "changeType": "push",
+ "itemsProperty": "user.todos",
+ "value": "=dialog.todo"
+ },
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "116673"
+ },
+ "activity": "${bfdactivity-116673()}"
+ }
+ ]
+ }
+ ],
+ "generator": "AddToDo.lg",
+ "$schema": "https://raw.githubusercontent.com/microsoft/BotFramework-Composer/stable/Composer/packages/server/schemas/sdk.schema"
+}
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/AddToDo/AddToDo.lg b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/AddToDo/AddToDo.lg
new file mode 100644
index 0000000000..de1e038fa7
--- /dev/null
+++ b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/AddToDo/AddToDo.lg
@@ -0,0 +1,4 @@
+[import](common.lg)
+
+# bfdactivity-116673
+-Successfully added a todo named ${dialog.todo}
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/AddToDo/AddToDo.lu b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/AddToDo/AddToDo.lu
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ClearToDos/ClearToDos.dialog b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ClearToDos/ClearToDos.dialog
new file mode 100644
index 0000000000..4038bfaaa8
--- /dev/null
+++ b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ClearToDos/ClearToDos.dialog
@@ -0,0 +1,54 @@
+{
+ "$type": "Microsoft.AdaptiveDialog",
+ "$designer": {
+ "id": "316336"
+ },
+ "autoEndDialog": true,
+ "defaultResultProperty": "dialog.result",
+ "triggers": [
+ {
+ "$type": "Microsoft.OnBeginDialog",
+ "$designer": {
+ "id": "480162"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.EditArray",
+ "$designer": {
+ "id": "832307"
+ },
+ "changeType": "Clear",
+ "itemsProperty": "user.todos",
+ "resultProperty": "dialog.cleared"
+ },
+ {
+ "$type": "Microsoft.IfCondition",
+ "$designer": {
+ "id": "983761"
+ },
+ "condition": "dialog.cleared",
+ "actions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "832307"
+ },
+ "activity": "${bfdactivity-832307()}"
+ }
+ ],
+ "elseActions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "983761"
+ },
+ "activity": "${bfdactivity-983761()}"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "generator": "ClearToDos.lg",
+ "$schema": "https://raw.githubusercontent.com/microsoft/BotFramework-Composer/stable/Composer/packages/server/schemas/sdk.schema"
+}
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ClearToDos/ClearToDos.lg b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ClearToDos/ClearToDos.lg
new file mode 100644
index 0000000000..6f87860ae7
--- /dev/null
+++ b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ClearToDos/ClearToDos.lg
@@ -0,0 +1,7 @@
+[import](common.lg)
+
+# bfdactivity-832307
+-Successfully cleared items in the Todo List.
+
+# bfdactivity-983761
+-You don't have any items in the Todo List.
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ClearToDos/ClearToDos.lu b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ClearToDos/ClearToDos.lu
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/DeleteToDo/DeleteToDo.dialog b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/DeleteToDo/DeleteToDo.dialog
new file mode 100644
index 0000000000..a4f151bec9
--- /dev/null
+++ b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/DeleteToDo/DeleteToDo.dialog
@@ -0,0 +1,67 @@
+{
+ "$type": "Microsoft.AdaptiveDialog",
+ "$designer": {
+ "id": "114909"
+ },
+ "autoEndDialog": true,
+ "defaultResultProperty": "dialog.result",
+ "triggers": [
+ {
+ "$type": "Microsoft.OnBeginDialog",
+ "$designer": {
+ "id": "768658"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.TextInput",
+ "$designer": {
+ "id": "870620"
+ },
+ "property": "dialog.todo",
+ "prompt": "OK, please enter the title of the todo you want to remove.",
+ "maxTurnCount": 3,
+ "value": "=@title",
+ "alwaysPrompt": false,
+ "allowInterruptions": "false"
+ },
+ {
+ "$type": "Microsoft.EditArray",
+ "$designer": {
+ "id": "492096"
+ },
+ "changeType": "Remove",
+ "itemsProperty": "user.todos",
+ "resultProperty": "dialog.removed",
+ "value": "=dialog.todo"
+ },
+ {
+ "$type": "Microsoft.IfCondition",
+ "$designer": {
+ "id": "549615"
+ },
+ "condition": "dialog.removed",
+ "actions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "725469"
+ },
+ "activity": "${bfdactivity-725469()}"
+ }
+ ],
+ "elseActions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "549615"
+ },
+ "activity": "${bfdactivity-549615()}"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "generator": "DeleteToDo.lg",
+ "$schema": "https://raw.githubusercontent.com/microsoft/BotFramework-Composer/stable/Composer/packages/server/schemas/sdk.schema"
+}
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/DeleteToDo/DeleteToDo.lg b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/DeleteToDo/DeleteToDo.lg
new file mode 100644
index 0000000000..883fe4dde6
--- /dev/null
+++ b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/DeleteToDo/DeleteToDo.lg
@@ -0,0 +1,10 @@
+[import](common.lg)
+
+# bfdactivity-725469
+-Successfully removed a todo named ${dialog.todo}
+
+# bfdactivity-549615
+-${dialog.todo} is not in the Todo List
+
+# bfdprompt-870620()
+- OK, please enter the title of the todo you want to remove.
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/DeleteToDo/DeleteToDo.lu b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/DeleteToDo/DeleteToDo.lu
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/Main/Main.dialog b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/Main/Main.dialog
new file mode 100644
index 0000000000..bf4c4f9df0
--- /dev/null
+++ b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/Main/Main.dialog
@@ -0,0 +1,202 @@
+{
+ "$type": "Microsoft.AdaptiveDialog",
+ "$designer": {
+ "id": "288769",
+ "description": "This is a bot that demonstrates how to manage a ToDo list using Regular Expressions."
+ },
+ "autoEndDialog": false,
+ "defaultResultProperty": "dialog.result",
+ "recognizer": {
+ "$kind": "Microsoft.RecognizerSet",
+ "recognizers": [
+ {
+ "$kind": "Microsoft.MultiLanguageRecognizer",
+ "recognizers": {
+ "en-us": {
+ "$kind": "Microsoft.CrossTrainedRecognizerSet",
+ "recognizers": [
+ {
+ "$kind": "Microsoft.RegexRecognizer",
+ "id": "regex",
+ "intents": [
+ {
+ "intent": "AddIntent",
+ "pattern": "(?i)(?:add|create) .*(?:to-do|todo|task)(?: )?(?:named (?
.*))?"
+ },
+ {
+ "intent": "ClearIntent",
+ "pattern": "(?i)(?:delete|remove|clear) (?:all|every) (?:to-dos|todos|tasks)"
+ },
+ {
+ "intent": "DeleteIntent",
+ "pattern": "(?i)(?:delete|remove|clear) .*(?:to-do|todo|task)(?: )?(?:named (?.*))?"
+ },
+ {
+ "intent": "ShowIntent",
+ "pattern": "(?i)(?:show|see|view) .*(?:to-do|todo|task)"
+ },
+ {
+ "intent": "HelpIntent",
+ "pattern": "(?i)help"
+ },
+ {
+ "intent": "CancelIntent",
+ "pattern": "(?i)cancel|never mind"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "$kind": "Microsoft.ValueRecognizer"
+ }
+ ]
+ },
+ "generator": "Main.lg",
+ "triggers": [
+ {
+ "$type": "Microsoft.OnConversationUpdateActivity",
+ "$designer": {
+ "id": "376720"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.Foreach",
+ "$designer": {
+ "id": "518944",
+ "name": "Loop: for each item"
+ },
+ "itemsProperty": "turn.Activity.membersAdded",
+ "actions": [
+ {
+ "$type": "Microsoft.IfCondition",
+ "$designer": {
+ "id": "641773",
+ "name": "Branch: if/else"
+ },
+ "condition": "string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)",
+ "actions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "157674",
+ "name": "Send a response"
+ },
+ "activity": "${bfdactivity-157674()}"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "$type": "Microsoft.OnIntent",
+ "$designer": {
+ "id": "064505"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.BeginDialog",
+ "dialog": "AddToDo"
+ }
+ ],
+ "intent": "AddIntent"
+ },
+ {
+ "$type": "Microsoft.OnIntent",
+ "$designer": {
+ "id": "114961"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.BeginDialog",
+ "dialog": "DeleteToDo",
+ "$designer": {
+ "id": "978613"
+ }
+ }
+ ],
+ "intent": "DeleteIntent"
+ },
+ {
+ "$type": "Microsoft.OnIntent",
+ "$designer": {
+ "id": "088050"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.BeginDialog",
+ "dialog": "ClearToDos"
+ }
+ ],
+ "intent": "ClearIntent"
+ },
+ {
+ "$type": "Microsoft.OnIntent",
+ "$designer": {
+ "id": "633942"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "696707"
+ },
+ "activity": "${bfdactivity-696707()}"
+ }
+ ],
+ "intent": "HelpIntent"
+ },
+ {
+ "$type": "Microsoft.OnIntent",
+ "$designer": {
+ "id": "794124"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.BeginDialog",
+ "dialog": "ShowToDos"
+ }
+ ],
+ "intent": "ShowIntent"
+ },
+ {
+ "$type": "Microsoft.OnIntent",
+ "$designer": {
+ "id": "179728"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "677440"
+ },
+ "activity": "ok."
+ },
+ {
+ "$type": "Microsoft.EndDialog"
+ }
+ ],
+ "intent": "CancelIntent"
+ },
+ {
+ "$type": "Microsoft.OnUnknownIntent",
+ "$designer": {
+ "id": "677447"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "677448"
+ },
+ "activity": "Hi! I'm a ToDo bot. Say \"add a todo named first\" to get started."
+ }
+ ]
+ }
+ ],
+ "$schema": "https://raw.githubusercontent.com/microsoft/BotFramework-Composer/stable/Composer/packages/server/schemas/sdk.schema"
+}
\ No newline at end of file
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/Main/Main.lg b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/Main/Main.lg
new file mode 100644
index 0000000000..46c46aa61a
--- /dev/null
+++ b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/Main/Main.lg
@@ -0,0 +1,10 @@
+[import](common.lg)
+
+# bfdactivity-696707
+-${help()}
+
+# bfdactivity-157674()
+- Hi! I'm a ToDo bot. Say "add a todo named first" to get started.
+
+# foo
+- You are so smart!
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/Main/Main.lu b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/Main/Main.lu
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ShowToDos/ShowToDos.dialog b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ShowToDos/ShowToDos.dialog
new file mode 100644
index 0000000000..869ecbbb98
--- /dev/null
+++ b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ShowToDos/ShowToDos.dialog
@@ -0,0 +1,47 @@
+{
+ "$type": "Microsoft.AdaptiveDialog",
+ "$designer": {
+ "id": "709692"
+ },
+ "autoEndDialog": true,
+ "defaultResultProperty": "dialog.result",
+ "triggers": [
+ {
+ "$type": "Microsoft.OnBeginDialog",
+ "$designer": {
+ "id": "783343"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.IfCondition",
+ "$designer": {
+ "id": "662084"
+ },
+ "condition": "user.todos == null",
+ "actions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "339580",
+ "name": "Send an Activity"
+ },
+ "activity": "${bfdactivity-339580()}"
+ }
+ ],
+ "elseActions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "662084",
+ "name": "Send an Activity"
+ },
+ "activity": "${bfdactivity-662084()}"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "generator": "ShowToDos.lg",
+ "$schema": "https://raw.githubusercontent.com/microsoft/BotFramework-Composer/stable/Composer/packages/server/schemas/sdk.schema"
+}
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ShowToDos/ShowToDos.lg b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ShowToDos/ShowToDos.lg
new file mode 100644
index 0000000000..9983313454
--- /dev/null
+++ b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ShowToDos/ShowToDos.lg
@@ -0,0 +1,8 @@
+[import](common.lg)
+
+
+# bfdactivity-339580
+-You have no todos.
+
+# bfdactivity-662084
+-${ShowTodo()}
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ShowToDos/ShowToDos.lu b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/ShowToDos/ShowToDos.lu
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/common/common.lg b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/common/common.lg
new file mode 100644
index 0000000000..951d3595ca
--- /dev/null
+++ b/Composer/packages/server/assets/projects/TodoRecognizerSetSample/ComposerDialogs/common/common.lg
@@ -0,0 +1,39 @@
+# Hello
+-${Welcome(time)} ${name}
+
+# Welcome(time)
+-IF:${time == 'morning'}
+ - Good morning
+-ELSEIF:${time == 'evening'}
+ - Good evening
+-ELSE:
+ - How are you doing,
+
+# Exit
+-Thanks for using todo bot.
+
+# Greeting
+-What's up bro
+
+# ShowTodo
+-IF:${count(user.todos) > 0}
+-```
+${HelperFunction()}
+${join(foreach(user.todos, x, showSingleTodo(x)), '\n')}
+```
+-ELSE:
+-You don't have any todos.
+
+# showSingleTodo(x)
+-* ${x}
+
+# HelperFunction
+- IF: ${count(user.todos) == 1}
+ - Your most recent ${count(user.todos)} task is
+- ELSE:
+ - Your most recent ${count(user.todos)} tasks are
+
+# help
+-I can add a todo, show todos, remove a todo, and clear all todos
+-I can help you yes I can
+-Help, we don't need no stinkin' help!
\ No newline at end of file
diff --git a/Composer/packages/server/assets/projects/TodoSample/ComposerDialogs/Main/Main.dialog b/Composer/packages/server/assets/projects/TodoSample/ComposerDialogs/Main/Main.dialog
index 2cca015df5..80fc61097e 100644
--- a/Composer/packages/server/assets/projects/TodoSample/ComposerDialogs/Main/Main.dialog
+++ b/Composer/packages/server/assets/projects/TodoSample/ComposerDialogs/Main/Main.dialog
@@ -1,212 +1,182 @@
{
- "$type": "Microsoft.AdaptiveDialog",
+ "$type": "Microsoft.AdaptiveDialog",
+ "$designer": {
+ "id": "288769",
+ "description": "This is a bot that demonstrates how to manage a ToDo list using Regular Expressions."
+ },
+ "autoEndDialog": false,
+ "defaultResultProperty": "dialog.result",
+ "recognizer": {
+ "$kind": "Microsoft.RegexRecognizer",
+ "id": "regex",
+ "intents": [
+ {
+ "intent": "AddIntent",
+ "pattern": "(?i)(?:add|create) .*(?:to-do|todo|task)(?: )?(?:named (?.*))?"
+ },
+ {
+ "intent": "ClearIntent",
+ "pattern": "(?i)(?:delete|remove|clear) (?:all|every) (?:to-dos|todos|tasks)"
+ },
+ {
+ "intent": "DeleteIntent",
+ "pattern": "(?i)(?:delete|remove|clear) .*(?:to-do|todo|task)(?: )?(?:named (?.*))?"
+ },
+ {
+ "intent": "ShowIntent",
+ "pattern": "(?i)(?:show|see|view) .*(?:to-do|todo|task)"
+ },
+ {
+ "intent": "HelpIntent",
+ "pattern": "(?i)help"
+ },
+ {
+ "intent": "CancelIntent",
+ "pattern": "(?i)cancel|never mind"
+ }
+ ]
+ },
+ "generator": "Main.lg",
+ "triggers": [
+ {
+ "$type": "Microsoft.OnConversationUpdateActivity",
"$designer": {
- "id": "288769",
- "description": "This is a bot that demonstrates how to manage a ToDo list using Regular Expressions."
+ "id": "376720"
},
- "autoEndDialog": false,
- "defaultResultProperty": "dialog.result",
- "recognizer": {
- "$kind": "Microsoft.RecognizerSet",
- "recognizers": [
- {
- "$kind": "Microsoft.MultiLanguageRecognizer",
- "recognizers": {
- "en-us": {
- "$kind": "Microsoft.CrossTrainedRecognizerSet",
- "recognizers": [
- {
- "$kind": "Microsoft.RegexRecognizer",
- "id": "regex",
- "intents": [
- {
- "intent": "AddIntent",
- "pattern": "(?i)(?:add|create) .*(?:to-do|todo|task)(?: )?(?:named (?.*))?"
- },
- {
- "intent": "ClearIntent",
- "pattern": "(?i)(?:delete|remove|clear) (?:all|every) (?:to-dos|todos|tasks)"
- },
- {
- "intent": "DeleteIntent",
- "pattern": "(?i)(?:delete|remove|clear) .*(?:to-do|todo|task)(?: )?(?:named (?.*))?"
- },
- {
- "intent": "ShowIntent",
- "pattern": "(?i)(?:show|see|view) .*(?:to-do|todo|task)"
- },
- {
- "intent": "HelpIntent",
- "pattern": "(?i)help"
- },
- {
- "intent": "CancelIntent",
- "pattern": "(?i)cancel|never mind"
- }
- ]
- },
- {
- "$kind": "Microsoft.RegexRecognizer",
- "id": "dummy",
- "intents": [
- {
- "intent": "dummy",
- "pattern": "dummy"
- }
- ]
- }
- ]
- }
- }
- },
- {
- "$kind": "Microsoft.ValueRecognizer"
- }
- ]
- },
- "generator": "Main.lg",
- "triggers": [
- {
- "$type": "Microsoft.OnConversationUpdateActivity",
- "$designer": {
- "id": "376720"
- },
- "actions": [
- {
- "$type": "Microsoft.Foreach",
- "$designer": {
- "id": "518944",
- "name": "Loop: for each item"
- },
- "itemsProperty": "turn.Activity.membersAdded",
- "actions": [
- {
- "$type": "Microsoft.IfCondition",
- "$designer": {
- "id": "641773",
- "name": "Branch: if/else"
- },
- "condition": "string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)",
- "actions": [
- {
- "$type": "Microsoft.SendActivity",
- "$designer": {
- "id": "157674",
- "name": "Send a response"
- },
- "activity": "${bfdactivity-157674()}"
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "$type": "Microsoft.OnIntent",
- "$designer": {
- "id": "064505"
- },
- "actions": [
- {
- "$type": "Microsoft.BeginDialog",
- "dialog": "AddToDo"
- }
- ],
- "intent": "AddIntent"
- },
- {
- "$type": "Microsoft.OnIntent",
- "$designer": {
- "id": "114961"
- },
- "actions": [
- {
- "$type": "Microsoft.BeginDialog",
- "dialog": "DeleteToDo",
- "$designer": {
- "id": "978613"
- }
- }
- ],
- "intent": "DeleteIntent"
- },
- {
- "$type": "Microsoft.OnIntent",
- "$designer": {
- "id": "088050"
- },
- "actions": [
- {
- "$type": "Microsoft.BeginDialog",
- "dialog": "ClearToDos"
- }
- ],
- "intent": "ClearIntent"
- },
- {
- "$type": "Microsoft.OnIntent",
- "$designer": {
- "id": "633942"
- },
- "actions": [
- {
- "$type": "Microsoft.SendActivity",
- "$designer": {
- "id": "696707"
- },
- "activity": "${bfdactivity-696707()}"
- }
- ],
- "intent": "HelpIntent"
- },
- {
- "$type": "Microsoft.OnIntent",
- "$designer": {
- "id": "794124"
- },
- "actions": [
- {
- "$type": "Microsoft.BeginDialog",
- "dialog": "ShowToDos"
- }
- ],
- "intent": "ShowIntent"
+ "actions": [
+ {
+ "$type": "Microsoft.Foreach",
+ "$designer": {
+ "id": "518944",
+ "name": "Loop: for each item"
},
- {
- "$type": "Microsoft.OnIntent",
+ "itemsProperty": "turn.Activity.membersAdded",
+ "actions": [
+ {
+ "$type": "Microsoft.IfCondition",
"$designer": {
- "id": "179728"
+ "id": "641773",
+ "name": "Branch: if/else"
},
+ "condition": "string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)",
"actions": [
- {
- "$type": "Microsoft.SendActivity",
- "$designer": {
- "id": "677440"
- },
- "activity": "ok."
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "157674",
+ "name": "Send a response"
},
- {
- "$type": "Microsoft.EndDialog"
- }
- ],
- "intent": "CancelIntent"
- },
- {
- "$type": "Microsoft.OnUnknownIntent",
- "$designer": {
- "id": "677447"
- },
- "actions": [
- {
- "$type": "Microsoft.SendActivity",
- "$designer": {
- "id": "677448"
- },
- "activity": "Hi! I'm a ToDo bot. Say \"add a todo named first\" to get started."
- }
+ "activity": "${bfdactivity-157674()}"
+ }
]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "$type": "Microsoft.OnIntent",
+ "$designer": {
+ "id": "064505"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.BeginDialog",
+ "dialog": "AddToDo"
+ }
+ ],
+ "intent": "AddIntent"
+ },
+ {
+ "$type": "Microsoft.OnIntent",
+ "$designer": {
+ "id": "114961"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.BeginDialog",
+ "dialog": "DeleteToDo",
+ "$designer": {
+ "id": "978613"
}
+ }
],
- "$schema": "https://raw.githubusercontent.com/microsoft/BotFramework-Composer/stable/Composer/packages/server/schemas/sdk.schema"
-}
\ No newline at end of file
+ "intent": "DeleteIntent"
+ },
+ {
+ "$type": "Microsoft.OnIntent",
+ "$designer": {
+ "id": "088050"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.BeginDialog",
+ "dialog": "ClearToDos"
+ }
+ ],
+ "intent": "ClearIntent"
+ },
+ {
+ "$type": "Microsoft.OnIntent",
+ "$designer": {
+ "id": "633942"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "696707"
+ },
+ "activity": "${bfdactivity-696707()}"
+ }
+ ],
+ "intent": "HelpIntent"
+ },
+ {
+ "$type": "Microsoft.OnIntent",
+ "$designer": {
+ "id": "794124"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.BeginDialog",
+ "dialog": "ShowToDos"
+ }
+ ],
+ "intent": "ShowIntent"
+ },
+ {
+ "$type": "Microsoft.OnIntent",
+ "$designer": {
+ "id": "179728"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "677440"
+ },
+ "activity": "ok."
+ },
+ {
+ "$type": "Microsoft.EndDialog"
+ }
+ ],
+ "intent": "CancelIntent"
+ },
+ {
+ "$type": "Microsoft.OnUnknownIntent",
+ "$designer": {
+ "id": "677447"
+ },
+ "actions": [
+ {
+ "$type": "Microsoft.SendActivity",
+ "$designer": {
+ "id": "677448"
+ },
+ "activity": "Hi! I'm a ToDo bot. Say \"add a todo named first\" to get started."
+ }
+ ]
+ }
+], "$schema": "https://raw.githubusercontent.com/microsoft/BotFramework-Composer/stable/Composer/packages/server/schemas/sdk.schema" }