-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from Azure-Samples/gk/chat-copilot-update
- Loading branch information
Showing
13 changed files
with
434 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,389 @@ | ||
{ | ||
"definition": { | ||
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", | ||
"actions": { | ||
"Check_if_NYSE_and_NASDAQ_are_open": { | ||
"type": "Response", | ||
"kind": "Http", | ||
"inputs": { | ||
"statusCode": 200 | ||
}, | ||
"runAfter": {} | ||
}, | ||
"Az_Function_with_Semantic_Kernel_and_Cog_Search_to_invoke_LLM": { | ||
"type": "Function", | ||
"inputs": { | ||
"method": "", | ||
"function": { | ||
"connectionName": "" | ||
} | ||
}, | ||
"runAfter": { | ||
"Populate_prompt_template_with_structured_data": [ | ||
"SUCCEEDED" | ||
] | ||
} | ||
}, | ||
"Populate_prompt_template_with_structured_data": { | ||
"type": "Join", | ||
"inputs": { | ||
"from": "", | ||
"joinWith": "" | ||
}, | ||
"runAfter": { | ||
"Open_for_trading": [ | ||
"SUCCEEDED" | ||
] | ||
} | ||
}, | ||
"Validate_LLM_JSON": { | ||
"type": "ParseJson", | ||
"inputs": { | ||
"content": "", | ||
"schema": "" | ||
}, | ||
"runAfter": { | ||
"Az_Function_with_Semantic_Kernel_and_Cog_Search_to_invoke_LLM": [ | ||
"SUCCEEDED" | ||
] | ||
} | ||
}, | ||
"Fallback_and_retry": { | ||
"type": "If", | ||
"expression": { | ||
"and": [ | ||
{ | ||
"equals": [ | ||
"", | ||
"" | ||
] | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"Retry_logic": { | ||
"type": "Workflow", | ||
"inputs": { | ||
"host": { | ||
"workflow": { | ||
"id": "" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"else": { | ||
"actions": { | ||
"Log": { | ||
"type": "JavaScriptCode", | ||
"inputs": { | ||
"code": "" | ||
} | ||
} | ||
} | ||
}, | ||
"runAfter": { | ||
"Validate_LLM_JSON": [ | ||
"FAILED", | ||
"TIMEDOUT" | ||
] | ||
} | ||
}, | ||
"Send_user_approval_email": { | ||
"type": "ServiceProvider", | ||
"inputs": { | ||
"parameters": { | ||
"from": "", | ||
"to": "", | ||
"importance": "Normal" | ||
}, | ||
"serviceProviderConfiguration": { | ||
"connectionName": "", | ||
"operationId": "sendEmail", | ||
"serviceProviderId": "/serviceProviders/Smtp" | ||
} | ||
}, | ||
"runAfter": { | ||
"Validate_LLM_JSON": [ | ||
"SUCCEEDED" | ||
] | ||
} | ||
}, | ||
"When_a_new_email_arrives_(V3)": { | ||
"type": "ApiConnectionNotification", | ||
"inputs": { | ||
"host": { | ||
"connection": { | ||
"referenceName": null | ||
} | ||
}, | ||
"fetch": { | ||
"pathTemplate": { | ||
"template": "/v3/Mail/OnNewEmail" | ||
}, | ||
"method": "get", | ||
"queries": { | ||
"importance": "Any", | ||
"fetchOnlyWithAttachment": false, | ||
"includeAttachments": false, | ||
"folderPath": "Inbox" | ||
} | ||
}, | ||
"subscribe": { | ||
"body": { | ||
"NotificationUrl": "@{listCallbackUrl()}" | ||
}, | ||
"pathTemplate": { | ||
"template": "/GraphMailSubscriptionPoke/$subscriptions" | ||
}, | ||
"method": "post", | ||
"queries": { | ||
"importance": "Any", | ||
"fetchOnlyWithAttachment": false, | ||
"folderPath": "Inbox" | ||
} | ||
} | ||
}, | ||
"runAfter": {} | ||
}, | ||
"Parse_for_approval": { | ||
"type": "InvokeFunction", | ||
"inputs": { | ||
"functionName": "" | ||
}, | ||
"runAfter": { | ||
"When_a_new_email_arrives_(V3)": [ | ||
"SUCCEEDED" | ||
] | ||
} | ||
}, | ||
"If_approved": { | ||
"type": "Scope", | ||
"actions": { | ||
"Service_Bus_-_start_transaction_to_place_a_trade": { | ||
"type": "ServiceProvider", | ||
"inputs": { | ||
"parameters": { | ||
"entityName": "" | ||
}, | ||
"serviceProviderConfiguration": { | ||
"connectionName": "", | ||
"operationId": "sendMessage", | ||
"serviceProviderId": "/serviceProviders/serviceBus" | ||
} | ||
} | ||
} | ||
}, | ||
"runAfter": { | ||
"Parse_for_approval": [ | ||
"SUCCEEDED" | ||
] | ||
} | ||
}, | ||
"If_denied_or_replied_with_no": { | ||
"type": "Scope", | ||
"actions": { | ||
"Call_a_local_function_in_this_logic_app_1": { | ||
"type": "InvokeFunction", | ||
"inputs": { | ||
"functionName": "" | ||
} | ||
} | ||
}, | ||
"runAfter": { | ||
"Parse_for_approval": [ | ||
"SUCCEEDED" | ||
], | ||
"When_a_new_email_arrives_(V3)": [ | ||
"SUCCEEDED" | ||
] | ||
} | ||
}, | ||
"Open_for_trading": { | ||
"type": "Scope", | ||
"actions": { | ||
"Get_user_preferences_from_existing_API": { | ||
"type": "Response", | ||
"kind": "Http", | ||
"inputs": { | ||
"statusCode": 200 | ||
} | ||
}, | ||
"Transform_request": { | ||
"type": "Xslt", | ||
"kind": "DataMapper", | ||
"inputs": { | ||
"content": "", | ||
"map": { | ||
"source": "LogicApp", | ||
"name": "" | ||
} | ||
}, | ||
"runAfter": { | ||
"Get_user_preferences_from_existing_API": [ | ||
"SUCCEEDED" | ||
] | ||
} | ||
}, | ||
"Get_stock_investment_thesis": { | ||
"type": "ServiceProvider", | ||
"inputs": { | ||
"parameters": { | ||
"databaseId": "adsf", | ||
"containerId": "asdf", | ||
"queryText": "asdf" | ||
}, | ||
"serviceProviderConfiguration": { | ||
"connectionName": "AzureCosmosDB", | ||
"operationId": "QueryDocuments", | ||
"serviceProviderId": "/serviceProviders/AzureCosmosDB" | ||
} | ||
} | ||
}, | ||
"Current_portfolio_allocation_(SQL)": { | ||
"type": "ApiConnection", | ||
"inputs": { | ||
"host": { | ||
"connection": { | ||
"referenceName": "sql-2" | ||
} | ||
}, | ||
"method": "post", | ||
"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('rty'))},@{encodeURIComponent(encodeURIComponent('rty'))}/query/sql" | ||
} | ||
}, | ||
"Bing_-_Get_company_financial_news": { | ||
"type": "ApiConnection", | ||
"inputs": { | ||
"host": { | ||
"connection": { | ||
"referenceName": "bingsearch" | ||
} | ||
}, | ||
"method": "get", | ||
"path": "/news/search", | ||
"queries": { | ||
"q": "SDF", | ||
"mkt": "en-US", | ||
"safeSearch": "Moderate", | ||
"count": "20" | ||
} | ||
} | ||
}, | ||
"Mainframe_lookup_-_customer_info": { | ||
"type": "ApiConnection", | ||
"inputs": { | ||
"host": { | ||
"connection": { | ||
"referenceName": "kyndrylmainframe" | ||
} | ||
}, | ||
"method": "get", | ||
"path": "/customernumber/custnum/@{encodeURIComponent('34')}" | ||
} | ||
}, | ||
"Transform_XML": { | ||
"type": "Xslt", | ||
"inputs": { | ||
"content": "", | ||
"map": { | ||
"source": "LogicApp", | ||
"name": "" | ||
} | ||
}, | ||
"runAfter": { | ||
"Mainframe_lookup_-_customer_info": [ | ||
"SUCCEEDED" | ||
] | ||
} | ||
}, | ||
"JSON_to_text": { | ||
"type": "ParseJson", | ||
"inputs": { | ||
"content": "asdf", | ||
"schema": {} | ||
}, | ||
"runAfter": { | ||
"Bing_-_Get_company_financial_news": [ | ||
"SUCCEEDED" | ||
] | ||
} | ||
} | ||
}, | ||
"runAfter": { | ||
"Check_if_NYSE_and_NASDAQ_are_open": [ | ||
"SUCCEEDED" | ||
] | ||
} | ||
} | ||
}, | ||
"contentVersion": "1.0.0.0", | ||
"outputs": {}, | ||
"triggers": { | ||
"Every_weekend_2_hours_after_stock_market_opens": { | ||
"type": "Batch", | ||
"inputs": { | ||
"mode": "Inline", | ||
"configurations": { | ||
"auto-invest": { | ||
"releaseCriteria": { | ||
"recurrence": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"connectionReferences": { | ||
"AzureCosmosDB": { | ||
"api": { | ||
"id": "/serviceProviders/AzureCosmosDB" | ||
}, | ||
"connection": { | ||
"id": "/serviceProviders/AzureCosmosDB/connections/AzureCosmosDB" | ||
}, | ||
"connectionName": "AzureCosmosDB", | ||
"authentication": { | ||
"type": "ManagedServiceIdentity" | ||
} | ||
}, | ||
"sql-2": { | ||
"api": { | ||
"id": "/subscriptions/a6029ed2-6d00-4f88-a6a1-5fc071aa5ee7/providers/Microsoft.Web/locations/southcentralus/managedApis/sql" | ||
}, | ||
"connection": { | ||
"id": "/subscriptions/a6029ed2-6d00-4f88-a6a1-5fc071aa5ee7/resourceGroups/miyagi/providers/Microsoft.Web/connections/sql" | ||
}, | ||
"connectionName": "sql", | ||
"authentication": { | ||
"type": "ManagedServiceIdentity" | ||
} | ||
}, | ||
"bingsearch": { | ||
"api": { | ||
"id": "/subscriptions/a6029ed2-6d00-4f88-a6a1-5fc071aa5ee7/providers/Microsoft.Web/locations/southcentralus/managedApis/bingsearch" | ||
}, | ||
"connection": { | ||
"id": "/subscriptions/a6029ed2-6d00-4f88-a6a1-5fc071aa5ee7/resourceGroups/miyagi/providers/Microsoft.Web/connections/bingsearch" | ||
}, | ||
"connectionName": "bingsearch", | ||
"authentication": { | ||
"type": "ManagedServiceIdentity" | ||
} | ||
}, | ||
"kyndrylmainframe": { | ||
"api": { | ||
"id": "/subscriptions/a6029ed2-6d00-4f88-a6a1-5fc071aa5ee7/providers/Microsoft.Web/locations/southcentralus/managedApis/kyndrylmainframe" | ||
}, | ||
"connection": { | ||
"id": "/subscriptions/a6029ed2-6d00-4f88-a6a1-5fc071aa5ee7/resourceGroups/miyagi/providers/Microsoft.Web/connections/kyndrylmainframe" | ||
}, | ||
"connectionName": "kyndrylmainframe", | ||
"authentication": { | ||
"type": "ManagedServiceIdentity" | ||
} | ||
} | ||
}, | ||
"parameters": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"sdk": { | ||
"version": "8.0.0", | ||
"rollForward": "latestMajor", | ||
"allowPrerelease": true | ||
} | ||
} |
Oops, something went wrong.