-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazuresample_spaceybot.dialog
96 lines (96 loc) · 2.9 KB
/
azuresample_spaceybot.dialog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"$kind": "Microsoft.AdaptiveDialog",
"$designer": {
"$designer": {
"name": "azuresample_spaceybot",
"description": "",
"id": "H0mJns"
}
},
"autoEndDialog": true,
"defaultResultProperty": "dialog.result",
"triggers": [
{
"$kind": "Microsoft.OnConversationUpdateActivity",
"$designer": {
"id": "376720"
},
"actions": [
{
"$kind": "Microsoft.Foreach",
"$designer": {
"id": "518944",
"name": "Loop: for each item"
},
"itemsProperty": "turn.Activity.membersAdded",
"actions": [
{
"$kind": "Microsoft.ConfirmInput",
"$designer": {
"id": "3OCX0n"
},
"defaultLocale": "en-us",
"disabled": false,
"maxTurnCount": 3,
"alwaysPrompt": true,
"allowInterruptions": false,
"prompt": "${ConfirmInput_Prompt_3OCX0n()}",
"unrecognizedPrompt": "",
"invalidPrompt": "",
"choiceOptions": {
"includeNumbers": true,
"inlineOrMore": ", or ",
"inlineOr": " or ",
"inlineSeparator": ", "
},
"property": "user.confirmed"
},
{
"$kind": "Microsoft.IfCondition",
"$designer": {
"id": "9GM21p"
},
"condition": "user.confirmed",
"actions": [
{
"$kind": "Microsoft.HttpRequest",
"$designer": {
"id": "fgs77R"
},
"method": "GET",
"url": "https://api.nasa.gov/planetary/apod?api_key=[put NASA api key here]&count=1",
"body": {},
"contentType": "application/json",
"responseType": "json",
"resultProperty": "dialog.response"
}
],
"elseActions": [
{
"$kind": "Microsoft.SendActivity",
"$designer": {
"id": "5smsVT"
},
"activity": "${SendActivity_5smsVT()}"
}
]
},
{
"$kind": "Microsoft.SendActivity",
"$designer": {
"id": "ocaTgL"
},
"activity": "${SendActivity_ocaTgL()}"
}
],
"value": "dialog.foreach.value",
"index": "dialog.foreach.index"
}
]
}
],
"$schema": "https://raw.githubusercontent.com/microsoft/BotFramework-Composer/stable/Composer/packages/server/schemas/sdk.schema",
"generator": "azuresample_spaceybot.lg",
"id": "azuresample_spaceybot",
"recognizer": "azuresample_spaceybot.lu.qna"
}