-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfallback.yaml
152 lines (127 loc) · 3.95 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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
kind: AdaptiveDialog
beginDialog:
kind: OnRecognizedIntent
id: main
intent:
displayName: FlightData (Copy)
triggerQueries:
- openai
- sflight
- flightdemo
- flight demo
actions:
- kind: SendActivity
id: sendActivity_OQvm9W
activity: **Welcome to the SAP Flight Demo Data Information Bot! I'm here to assist you in extracting valuable insights from the flight demo data with utmost precision and efficiency.**
- kind: Question
id: question_rnYcpD
interruptionPolicy:
allowInterruption: true
alwaysPrompt: true
variable: Topic.Model
prompt: Which model should be used?
entity:
kind: EmbeddedEntity
definition:
kind: ClosedListEntity
items:
- id: GPT-3.5-Turbo
displayName: gpt-3.5-turbo
- id: gpt-4
displayName: gpt-4
- kind: SetVariable
id: setVariable_Sq1jxG
variable: Topic.PromptHistory
value: "\" \""
- kind: SetVariable
id: setVariable_K6E5Wi
variable: Topic.PromptHistory
value: =Text(Blank())
- kind: ClearAllVariables
id: 40sVpX
- kind: Question
id: question_JDJLbn
interruptionPolicy:
allowInterruption: true
alwaysPrompt: true
variable: Topic.Question
prompt: What would you like to know about your data?
entity: StringPrebuiltEntity
- kind: SetVariable
id: setVariable_CTP3Eh
variable: Topic.PromptHistory
value: =Topic.PromptHistory & " " & Topic.Question
- kind: InvokeFlowAction
id: invokeFlowAction_SEk4nT
input:
binding:
text: =Topic.PromptHistory
text_1: =Lower(Text(Topic.Model))
output:
binding:
ac_answer: Topic.AC_Answer
ac_url: Topic.AC_URL
outcome: Topic.Outcome
sqloutputtable: Topic.SQLOutputTable
flowId: ed99445b-1257-ee11-be6f-000d3a463168
- kind: SendActivity
id: sendActivity_ny211G
activity:
attachments:
- kind: AdaptiveCardTemplate
cardContent: =Topic.AC_Answer
- kind: SendActivity
id: sendActivity_Ucva5q
activity: "{Topic.SQLOutputTable}"
- kind: SendActivity
id: sendActivity_utKjcl
activity:
attachments:
- kind: AdaptiveCardTemplate
cardContent: =Topic.AC_URL
- kind: Question
id: question_oWSZjR
interruptionPolicy:
allowInterruption: true
alwaysPrompt: true
variable: init:Topic.Var1
prompt: Do you have a follow-up question?
entity:
kind: EmbeddedEntity
definition:
kind: ClosedListEntity
items:
- id: YES
displayName: Yes
- id: No, let's start a new topic.
displayName: No, let's start a new topic.
- kind: ConditionGroup
id: conditionGroup_zsZORg
conditions:
- id: conditionItem_rEnMnB
condition: =Topic.Var1 = 'cr4af_conversationWithMySapData.topic.FlightDataChatGPT.main.question_oWSZjR'.YES
actions:
- kind: SetVariable
id: setVariable_zrIVXD
variable: Topic.PromptHistory
value: "=\"The previous discussions had this outcome: \" & Topic.PromptHistory & \" \" & Topic.Outcome & Char(10) & Char(10) & \"Follow-up question: \""
- id: conditionItem_d5PYxR
condition: =Topic.Var1 <> 'cr4af_conversationWithMySapData.topic.FlightDataChatGPT.main.question_oWSZjR'.YES
actions:
- kind: BeginDialog
id: ypXwd1
dialog: cr4af_conversationWithMySapData.topic.Greeting
- kind: GotoAction
id: 5gg7nR
actionId: question_JDJLbn
inputType:
properties:
Explanation:
displayName: Explanation
type: String
Explanation2:
displayName: Explanation2
type: String
SQL:
displayName: SQL
type: String