1
+ {
2
+ "definition" : {
3
+ "$schema" : " https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#" ,
4
+ "actions" : {
5
+ "Check_if_NYSE_and_NASDAQ_are_open" : {
6
+ "type" : " Response" ,
7
+ "kind" : " Http" ,
8
+ "inputs" : {
9
+ "statusCode" : 200
10
+ },
11
+ "runAfter" : {}
12
+ },
13
+ "Az_Function_with_Semantic_Kernel_and_Cog_Search_to_invoke_LLM" : {
14
+ "type" : " Function" ,
15
+ "inputs" : {
16
+ "method" : " " ,
17
+ "function" : {
18
+ "connectionName" : " "
19
+ }
20
+ },
21
+ "runAfter" : {
22
+ "Populate_prompt_template_with_structured_data" : [
23
+ " SUCCEEDED"
24
+ ]
25
+ }
26
+ },
27
+ "Populate_prompt_template_with_structured_data" : {
28
+ "type" : " Join" ,
29
+ "inputs" : {
30
+ "from" : " " ,
31
+ "joinWith" : " "
32
+ },
33
+ "runAfter" : {
34
+ "Open_for_trading" : [
35
+ " SUCCEEDED"
36
+ ]
37
+ }
38
+ },
39
+ "Validate_LLM_JSON" : {
40
+ "type" : " ParseJson" ,
41
+ "inputs" : {
42
+ "content" : " " ,
43
+ "schema" : " "
44
+ },
45
+ "runAfter" : {
46
+ "Az_Function_with_Semantic_Kernel_and_Cog_Search_to_invoke_LLM" : [
47
+ " SUCCEEDED"
48
+ ]
49
+ }
50
+ },
51
+ "Fallback_and_retry" : {
52
+ "type" : " If" ,
53
+ "expression" : {
54
+ "and" : [
55
+ {
56
+ "equals" : [
57
+ " " ,
58
+ " "
59
+ ]
60
+ }
61
+ ]
62
+ },
63
+ "actions" : {
64
+ "Retry_logic" : {
65
+ "type" : " Workflow" ,
66
+ "inputs" : {
67
+ "host" : {
68
+ "workflow" : {
69
+ "id" : " "
70
+ }
71
+ }
72
+ }
73
+ }
74
+ },
75
+ "else" : {
76
+ "actions" : {
77
+ "Log" : {
78
+ "type" : " JavaScriptCode" ,
79
+ "inputs" : {
80
+ "code" : " "
81
+ }
82
+ }
83
+ }
84
+ },
85
+ "runAfter" : {
86
+ "Validate_LLM_JSON" : [
87
+ " FAILED" ,
88
+ " TIMEDOUT"
89
+ ]
90
+ }
91
+ },
92
+ "Send_user_approval_email" : {
93
+ "type" : " ServiceProvider" ,
94
+ "inputs" : {
95
+ "parameters" : {
96
+ "from" : " " ,
97
+ "to" : " " ,
98
+ "importance" : " Normal"
99
+ },
100
+ "serviceProviderConfiguration" : {
101
+ "connectionName" : " " ,
102
+ "operationId" : " sendEmail" ,
103
+ "serviceProviderId" : " /serviceProviders/Smtp"
104
+ }
105
+ },
106
+ "runAfter" : {
107
+ "Validate_LLM_JSON" : [
108
+ " SUCCEEDED"
109
+ ]
110
+ }
111
+ },
112
+ "When_a_new_email_arrives_(V3)" : {
113
+ "type" : " ApiConnectionNotification" ,
114
+ "inputs" : {
115
+ "host" : {
116
+ "connection" : {
117
+ "referenceName" : null
118
+ }
119
+ },
120
+ "fetch" : {
121
+ "pathTemplate" : {
122
+ "template" : " /v3/Mail/OnNewEmail"
123
+ },
124
+ "method" : " get" ,
125
+ "queries" : {
126
+ "importance" : " Any" ,
127
+ "fetchOnlyWithAttachment" : false ,
128
+ "includeAttachments" : false ,
129
+ "folderPath" : " Inbox"
130
+ }
131
+ },
132
+ "subscribe" : {
133
+ "body" : {
134
+ "NotificationUrl" : " @{listCallbackUrl()}"
135
+ },
136
+ "pathTemplate" : {
137
+ "template" : " /GraphMailSubscriptionPoke/$subscriptions"
138
+ },
139
+ "method" : " post" ,
140
+ "queries" : {
141
+ "importance" : " Any" ,
142
+ "fetchOnlyWithAttachment" : false ,
143
+ "folderPath" : " Inbox"
144
+ }
145
+ }
146
+ },
147
+ "runAfter" : {}
148
+ },
149
+ "Parse_for_approval" : {
150
+ "type" : " InvokeFunction" ,
151
+ "inputs" : {
152
+ "functionName" : " "
153
+ },
154
+ "runAfter" : {
155
+ "When_a_new_email_arrives_(V3)" : [
156
+ " SUCCEEDED"
157
+ ]
158
+ }
159
+ },
160
+ "If_approved" : {
161
+ "type" : " Scope" ,
162
+ "actions" : {
163
+ "Service_Bus_-_start_transaction_to_place_a_trade" : {
164
+ "type" : " ServiceProvider" ,
165
+ "inputs" : {
166
+ "parameters" : {
167
+ "entityName" : " "
168
+ },
169
+ "serviceProviderConfiguration" : {
170
+ "connectionName" : " " ,
171
+ "operationId" : " sendMessage" ,
172
+ "serviceProviderId" : " /serviceProviders/serviceBus"
173
+ }
174
+ }
175
+ }
176
+ },
177
+ "runAfter" : {
178
+ "Parse_for_approval" : [
179
+ " SUCCEEDED"
180
+ ]
181
+ }
182
+ },
183
+ "If_denied_or_replied_with_no" : {
184
+ "type" : " Scope" ,
185
+ "actions" : {
186
+ "Call_a_local_function_in_this_logic_app_1" : {
187
+ "type" : " InvokeFunction" ,
188
+ "inputs" : {
189
+ "functionName" : " "
190
+ }
191
+ }
192
+ },
193
+ "runAfter" : {
194
+ "Parse_for_approval" : [
195
+ " SUCCEEDED"
196
+ ],
197
+ "When_a_new_email_arrives_(V3)" : [
198
+ " SUCCEEDED"
199
+ ]
200
+ }
201
+ },
202
+ "Open_for_trading" : {
203
+ "type" : " Scope" ,
204
+ "actions" : {
205
+ "Get_user_preferences_from_existing_API" : {
206
+ "type" : " Response" ,
207
+ "kind" : " Http" ,
208
+ "inputs" : {
209
+ "statusCode" : 200
210
+ }
211
+ },
212
+ "Transform_request" : {
213
+ "type" : " Xslt" ,
214
+ "kind" : " DataMapper" ,
215
+ "inputs" : {
216
+ "content" : " " ,
217
+ "map" : {
218
+ "source" : " LogicApp" ,
219
+ "name" : " "
220
+ }
221
+ },
222
+ "runAfter" : {
223
+ "Get_user_preferences_from_existing_API" : [
224
+ " SUCCEEDED"
225
+ ]
226
+ }
227
+ },
228
+ "Get_stock_investment_thesis" : {
229
+ "type" : " ServiceProvider" ,
230
+ "inputs" : {
231
+ "parameters" : {
232
+ "databaseId" : " adsf" ,
233
+ "containerId" : " asdf" ,
234
+ "queryText" : " asdf"
235
+ },
236
+ "serviceProviderConfiguration" : {
237
+ "connectionName" : " AzureCosmosDB" ,
238
+ "operationId" : " QueryDocuments" ,
239
+ "serviceProviderId" : " /serviceProviders/AzureCosmosDB"
240
+ }
241
+ }
242
+ },
243
+ "Current_portfolio_allocation_(SQL)" : {
244
+ "type" : " ApiConnection" ,
245
+ "inputs" : {
246
+ "host" : {
247
+ "connection" : {
248
+ "referenceName" : " sql-2"
249
+ }
250
+ },
251
+ "method" : " post" ,
252
+ "path" : " /v2/datasets/@{encodeURIComponent(encodeURIComponent('rty'))},@{encodeURIComponent(encodeURIComponent('rty'))}/query/sql"
253
+ }
254
+ },
255
+ "Bing_-_Get_company_financial_news" : {
256
+ "type" : " ApiConnection" ,
257
+ "inputs" : {
258
+ "host" : {
259
+ "connection" : {
260
+ "referenceName" : " bingsearch"
261
+ }
262
+ },
263
+ "method" : " get" ,
264
+ "path" : " /news/search" ,
265
+ "queries" : {
266
+ "q" : " SDF" ,
267
+ "mkt" : " en-US" ,
268
+ "safeSearch" : " Moderate" ,
269
+ "count" : " 20"
270
+ }
271
+ }
272
+ },
273
+ "Mainframe_lookup_-_customer_info" : {
274
+ "type" : " ApiConnection" ,
275
+ "inputs" : {
276
+ "host" : {
277
+ "connection" : {
278
+ "referenceName" : " kyndrylmainframe"
279
+ }
280
+ },
281
+ "method" : " get" ,
282
+ "path" : " /customernumber/custnum/@{encodeURIComponent('34')}"
283
+ }
284
+ },
285
+ "Transform_XML" : {
286
+ "type" : " Xslt" ,
287
+ "inputs" : {
288
+ "content" : " " ,
289
+ "map" : {
290
+ "source" : " LogicApp" ,
291
+ "name" : " "
292
+ }
293
+ },
294
+ "runAfter" : {
295
+ "Mainframe_lookup_-_customer_info" : [
296
+ " SUCCEEDED"
297
+ ]
298
+ }
299
+ },
300
+ "JSON_to_text" : {
301
+ "type" : " ParseJson" ,
302
+ "inputs" : {
303
+ "content" : " asdf" ,
304
+ "schema" : {}
305
+ },
306
+ "runAfter" : {
307
+ "Bing_-_Get_company_financial_news" : [
308
+ " SUCCEEDED"
309
+ ]
310
+ }
311
+ }
312
+ },
313
+ "runAfter" : {
314
+ "Check_if_NYSE_and_NASDAQ_are_open" : [
315
+ " SUCCEEDED"
316
+ ]
317
+ }
318
+ }
319
+ },
320
+ "contentVersion" : " 1.0.0.0" ,
321
+ "outputs" : {},
322
+ "triggers" : {
323
+ "Every_weekend_2_hours_after_stock_market_opens" : {
324
+ "type" : " Batch" ,
325
+ "inputs" : {
326
+ "mode" : " Inline" ,
327
+ "configurations" : {
328
+ "auto-invest" : {
329
+ "releaseCriteria" : {
330
+ "recurrence" : {}
331
+ }
332
+ }
333
+ }
334
+ }
335
+ }
336
+ }
337
+ },
338
+ "connectionReferences" : {
339
+ "AzureCosmosDB" : {
340
+ "api" : {
341
+ "id" : " /serviceProviders/AzureCosmosDB"
342
+ },
343
+ "connection" : {
344
+ "id" : " /serviceProviders/AzureCosmosDB/connections/AzureCosmosDB"
345
+ },
346
+ "connectionName" : " AzureCosmosDB" ,
347
+ "authentication" : {
348
+ "type" : " ManagedServiceIdentity"
349
+ }
350
+ },
351
+ "sql-2" : {
352
+ "api" : {
353
+ "id" : " /subscriptions/a6029ed2-6d00-4f88-a6a1-5fc071aa5ee7/providers/Microsoft.Web/locations/southcentralus/managedApis/sql"
354
+ },
355
+ "connection" : {
356
+ "id" : " /subscriptions/a6029ed2-6d00-4f88-a6a1-5fc071aa5ee7/resourceGroups/miyagi/providers/Microsoft.Web/connections/sql"
357
+ },
358
+ "connectionName" : " sql" ,
359
+ "authentication" : {
360
+ "type" : " ManagedServiceIdentity"
361
+ }
362
+ },
363
+ "bingsearch" : {
364
+ "api" : {
365
+ "id" : " /subscriptions/a6029ed2-6d00-4f88-a6a1-5fc071aa5ee7/providers/Microsoft.Web/locations/southcentralus/managedApis/bingsearch"
366
+ },
367
+ "connection" : {
368
+ "id" : " /subscriptions/a6029ed2-6d00-4f88-a6a1-5fc071aa5ee7/resourceGroups/miyagi/providers/Microsoft.Web/connections/bingsearch"
369
+ },
370
+ "connectionName" : " bingsearch" ,
371
+ "authentication" : {
372
+ "type" : " ManagedServiceIdentity"
373
+ }
374
+ },
375
+ "kyndrylmainframe" : {
376
+ "api" : {
377
+ "id" : " /subscriptions/a6029ed2-6d00-4f88-a6a1-5fc071aa5ee7/providers/Microsoft.Web/locations/southcentralus/managedApis/kyndrylmainframe"
378
+ },
379
+ "connection" : {
380
+ "id" : " /subscriptions/a6029ed2-6d00-4f88-a6a1-5fc071aa5ee7/resourceGroups/miyagi/providers/Microsoft.Web/connections/kyndrylmainframe"
381
+ },
382
+ "connectionName" : " kyndrylmainframe" ,
383
+ "authentication" : {
384
+ "type" : " ManagedServiceIdentity"
385
+ }
386
+ }
387
+ },
388
+ "parameters" : {}
389
+ }
0 commit comments