-
Notifications
You must be signed in to change notification settings - Fork 2
/
fallback.yaml
68 lines (59 loc) · 1.93 KB
/
fallback.yaml
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
kind: AdaptiveDialog
beginDialog:
kind: OnUnknownIntent
id: main
actions:
- kind: ConditionGroup
id: Q91cOJ
conditions:
- id: C8L5xZ
condition: =!IsBlank(Global.FullDialog)
elseActions:
- kind: SetVariable
id: sD69u5
variable: Global.FullDialog
value: "=\"\""
- kind: InvokeFlowAction
id: invokeFlowAction_8IXGnn
input:
binding:
text: =Substitute(System.Activity.Text,"""","\""")
text_1: =Global.FullDialog
output:
binding:
generatedanswer: Topic.Generatedanswer
originalunrecognizedtriggerphrase: Topic.OriginalUnrecognizedTriggerPhrase
flowId: 46bfc0e0-cf68-ee11-9ae7-000d3a5c657e
- kind: SendActivity
id: 1e7GXm
activity: "{Topic.Generatedanswer}"
- kind: ConditionGroup
id: conditionGroup_4UgqoJ
conditions:
- id: conditionItem_Z2MsM2
condition: =Topic.OriginalUnrecognizedTriggerPhrase = "action done"
actions:
- kind: SetVariable
id: setVariable_9i3PYB
variable: Global.FullDialog
value: "=\"\""
- kind: SetVariable
id: setVariable_ZMuPlS
variable: Topic.OriginalUnrecognizedTriggerPhrase
value: "=\"\""
- kind: SetVariable
id: LdqZIw
variable: Global.FullDialog
value: |-
=Global.FullDialog
& "{""role"": ""user"", ""content"": """ & Topic.OriginalUnrecognizedTriggerPhrase & """},"
& "{""role"": ""assistant"", ""content"": """ & Substitute(Topic.Generatedanswer,"""","\""") & """},"
- kind: SendActivity
id: sendActivity_paIZAn
activity:
text:
- _You can ask a follow-up question directly or type "start over" for a new topic._
quickReplies:
- kind: MessageBack
title: Start over
text: Start over