From 6edb950b401dedff7292e9b5b62fe28b77927599 Mon Sep 17 00:00:00 2001 From: Aman Sharma Date: Tue, 20 Feb 2024 00:05:12 +0530 Subject: [PATCH] some msg --- Empty.dialog | 86 ++++++++++++++ .../knowledge-base/en-us/lemond.en-us.qna | 0 .../language-generation/en-us/lemond.en-us.lg | 67 +++++++++++ .../en-us/lemond.en-us.lu | 0 dialogs/lemond/lemond.dialog | 106 ++++++++++++++++++ .../lemond/recognizers/lemond.en-us.lu.dialog | 8 ++ dialogs/lemond/recognizers/lemond.lu.dialog | 5 + .../lemond/recognizers/lemond.lu.qna.dialog | 4 + generated/interruption/lemond.en-us.lu | 0 generated/interruption/lemond.en-us.qna | 0 language-generation/en-us/Empty.en-us.lg | 37 +++++- settings/appsettings.json | 17 ++- 12 files changed, 320 insertions(+), 10 deletions(-) create mode 100644 dialogs/lemond/knowledge-base/en-us/lemond.en-us.qna create mode 100644 dialogs/lemond/language-generation/en-us/lemond.en-us.lg create mode 100644 dialogs/lemond/language-understanding/en-us/lemond.en-us.lu create mode 100644 dialogs/lemond/lemond.dialog create mode 100644 dialogs/lemond/recognizers/lemond.en-us.lu.dialog create mode 100644 dialogs/lemond/recognizers/lemond.lu.dialog create mode 100644 dialogs/lemond/recognizers/lemond.lu.qna.dialog create mode 100644 generated/interruption/lemond.en-us.lu create mode 100644 generated/interruption/lemond.en-us.qna diff --git a/Empty.dialog b/Empty.dialog index 2e8cbfb..65be31b 100644 --- a/Empty.dialog +++ b/Empty.dialog @@ -33,6 +33,13 @@ }, "condition": "=string(dialog.foreach.value.id) != string(turn.Activity.Recipient.id)", "actions": [ + { + "$kind": "Microsoft.SendActivity", + "$designer": { + "id": "ubI6QW" + }, + "activity": "${SendActivity_ubI6QW()}" + }, { "$kind": "Microsoft.SendActivity", "$designer": { @@ -247,6 +254,24 @@ } ] }, + { + "$kind": "Microsoft.LogAction", + "$designer": { + "id": "qjyebT" + }, + "text": "${LogAction_Text_qjyebT()}", + "label": "Debugger", + "traceActivity": true + }, + { + "$kind": "Microsoft.TraceActivity", + "$designer": { + "id": "FjN1OY" + }, + "name": "Mytracename", + "label": "mytracelabel", + "value": "=dialog.metajson" + }, { "$kind": "Microsoft.SendActivity", "$designer": { @@ -387,6 +412,13 @@ }, "intent": "array-del", "actions": [ + { + "$kind": "Microsoft.SendActivity", + "$designer": { + "id": "f3d23N" + }, + "activity": "${SendActivity_f3d23N()}" + }, { "$kind": "Microsoft.SetProperty", "$designer": { @@ -434,6 +466,56 @@ "activity": "${SendActivity_HpjZCt()}" } ] + }, + { + "$kind": "Microsoft.OnEventActivity", + "$designer": { + "id": "X5LX4G", + "name": "Event received (Event activity)" + }, + "condition": "=turn.activity.name=='loginevent'", + "actions": [ + { + "$kind": "Microsoft.SendActivity", + "$designer": { + "id": "phI2zz" + }, + "activity": "${SendActivity_phI2zz()}" + }, + { + "$kind": "Microsoft.SendActivity", + "$designer": { + "id": "clz1zb" + }, + "activity": "${SendActivity_clz1zb()}" + }, + { + "$kind": "Microsoft.BeginDialog", + "$designer": { + "id": "0GXuVX" + }, + "activityProcessed": true, + "dialog": "lemond" + } + ] + }, + { + "$kind": "Microsoft.OnIntent", + "$designer": { + "id": "RE2Jm3", + "name": "lemon" + }, + "intent": "lemon", + "actions": [ + { + "$kind": "Microsoft.BeginDialog", + "$designer": { + "id": "F96cb7" + }, + "activityProcessed": true, + "dialog": "lemond" + } + ] } ], "generator": "Empty.lg", @@ -464,6 +546,10 @@ { "intent": "array-del", "pattern": "popper" + }, + { + "intent": "lemon", + "pattern": "lemon" } ] } diff --git a/dialogs/lemond/knowledge-base/en-us/lemond.en-us.qna b/dialogs/lemond/knowledge-base/en-us/lemond.en-us.qna new file mode 100644 index 0000000..e69de29 diff --git a/dialogs/lemond/language-generation/en-us/lemond.en-us.lg b/dialogs/lemond/language-generation/en-us/lemond.en-us.lg new file mode 100644 index 0000000..96bd794 --- /dev/null +++ b/dialogs/lemond/language-generation/en-us/lemond.en-us.lg @@ -0,0 +1,67 @@ +[import](common.lg) + +# SendActivity_mPMhVV() +[Activity + Text = ${SendActivity_mPMhVV_text()} +] + +# SendActivity_mPMhVV_text() +- The turn data is ${turn} +# SendActivity_2NELC1() +[Activity + Text = ${SendActivity_2NELC1_text()} +] + +# SendActivity_2NELC1_text() +- You are in lemond +# TextInput_Prompt_9bbjlU() +[Activity + Attachments = ${json(TextInput_Prompt_9bbjlU_attachment_K3d4D9())} +] + +# TextInput_Prompt_9bbjlU_attachment_K3d4D9() +> To learn more Adaptive Cards format, read the documentation at +> https://docs.microsoft.com/en-us/adaptive-cards/getting-started/bots +- ```{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.3", + "body": [ + { + "type": "Input.ChoiceSet", + "id": "myMultiColor", + "label": "What color do you want? (isMultiSelect:false, style:compact)", + "value": "1", + "choices": [ + { + "title": "Red", + "value": "1" + }, + { + "title": "Green", + "value": "2" + }, + { + "title": "Blue", + "value": "3" + } + ], + "isMultiSelect": true + } + ], + "actions": [ + { + "type": "Action.Submit", + "title": "OK" + } + ] +}``` +# SendActivity_N55iwh() +[Activity + Text = ${SendActivity_N55iwh_text()} +] + +# SendActivity_N55iwh_text() +- ```the selected data= +${split(dialog.multiselect, ",")} +``` \ No newline at end of file diff --git a/dialogs/lemond/language-understanding/en-us/lemond.en-us.lu b/dialogs/lemond/language-understanding/en-us/lemond.en-us.lu new file mode 100644 index 0000000..e69de29 diff --git a/dialogs/lemond/lemond.dialog b/dialogs/lemond/lemond.dialog new file mode 100644 index 0000000..a9629da --- /dev/null +++ b/dialogs/lemond/lemond.dialog @@ -0,0 +1,106 @@ +{ + "$kind": "Microsoft.AdaptiveDialog", + "$designer": { + "id": "BGjg5x", + "name": "lemond", + "comment": "" + }, + "autoEndDialog": true, + "defaultResultProperty": "dialog.result", + "triggers": [ + { + "$kind": "Microsoft.OnBeginDialog", + "$designer": { + "name": "BeginDialog", + "description": "", + "id": "fItYv6" + }, + "actions": [ + { + "$kind": "Microsoft.SendActivity", + "$designer": { + "id": "mPMhVV" + }, + "activity": "${SendActivity_mPMhVV()}" + }, + { + "$kind": "Microsoft.SendActivity", + "$designer": { + "id": "2NELC1" + }, + "activity": "${SendActivity_2NELC1()}" + }, + { + "$kind": "Microsoft.SetProperty", + "$designer": { + "id": "guKgJL" + }, + "property": "dialog.tracedata", + "value": [ + { + "title": "Some Date1", + "value": "1", + "field": [ + { + "title": "Some Date", + "value": 0, + "ask_prompt": "enter the date", + "api_name": "expiry__c", + "type": "date" + } + ] + }, + { + "title": "Some text1", + "value": "2", + "field": [ + { + "title": "Some text", + "value": "", + "ask_prompt": "enter the text information", + "api_name": "text_c", + "type": "string" + } + ] + } + ] + }, + { + "$kind": "Microsoft.TraceActivity", + "$designer": { + "id": "jSZ9L3" + }, + "name": "TraceDataName", + "label": "TraceDateLabel", + "value": "=dialog.tracedata" + }, + { + "$kind": "Microsoft.TextInput", + "$designer": { + "id": "9bbjlU" + }, + "disabled": false, + "maxTurnCount": 3, + "alwaysPrompt": false, + "allowInterruptions": false, + "unrecognizedPrompt": "", + "invalidPrompt": "", + "defaultValueResponse": "", + "prompt": "${TextInput_Prompt_9bbjlU()}", + "property": "dialog.multiselect", + "value": "=turn.activity.value.myMultiColor" + }, + { + "$kind": "Microsoft.SendActivity", + "$designer": { + "id": "N55iwh" + }, + "activity": "${SendActivity_N55iwh()}" + } + ] + } + ], + "generator": "lemond.lg", + "recognizer": "lemond.lu.qna", + "id": "lemond" +} diff --git a/dialogs/lemond/recognizers/lemond.en-us.lu.dialog b/dialogs/lemond/recognizers/lemond.en-us.lu.dialog new file mode 100644 index 0000000..60ff4c9 --- /dev/null +++ b/dialogs/lemond/recognizers/lemond.en-us.lu.dialog @@ -0,0 +1,8 @@ +{ + "$kind": "Microsoft.LuisRecognizer", + "id": "LUIS_lemond", + "applicationId": "=settings.luis.lemond_en_us_lu.appId", + "version": "=settings.luis.lemond_en_us_lu.version", + "endpoint": "=settings.luis.endpoint", + "endpointKey": "=settings.luis.endpointKey" +} diff --git a/dialogs/lemond/recognizers/lemond.lu.dialog b/dialogs/lemond/recognizers/lemond.lu.dialog new file mode 100644 index 0000000..5e26af5 --- /dev/null +++ b/dialogs/lemond/recognizers/lemond.lu.dialog @@ -0,0 +1,5 @@ +{ + "$kind": "Microsoft.MultiLanguageRecognizer", + "id": "LUIS_lemond", + "recognizers": {} +} diff --git a/dialogs/lemond/recognizers/lemond.lu.qna.dialog b/dialogs/lemond/recognizers/lemond.lu.qna.dialog new file mode 100644 index 0000000..80b77f0 --- /dev/null +++ b/dialogs/lemond/recognizers/lemond.lu.qna.dialog @@ -0,0 +1,4 @@ +{ + "$kind": "Microsoft.CrossTrainedRecognizerSet", + "recognizers": [] +} diff --git a/generated/interruption/lemond.en-us.lu b/generated/interruption/lemond.en-us.lu new file mode 100644 index 0000000..e69de29 diff --git a/generated/interruption/lemond.en-us.qna b/generated/interruption/lemond.en-us.qna new file mode 100644 index 0000000..e69de29 diff --git a/language-generation/en-us/Empty.en-us.lg b/language-generation/en-us/Empty.en-us.lg index 097f169..cacd635 100644 --- a/language-generation/en-us/Empty.en-us.lg +++ b/language-generation/en-us/Empty.en-us.lg @@ -212,4 +212,39 @@ the response is ${dialog.arr1}``` ] # SendActivity_pMIW8D_text() -- activity value : ${turn} \ No newline at end of file +- activity value : ${turn} +# SendActivity_ubI6QW() +[Activity + Text = ${SendActivity_ubI6QW_text()} +] + +# SendActivity_ubI6QW_text() +- first turn data is : ${turn} +# SendActivity_phI2zz() +[Activity + Text = ${SendActivity_phI2zz_text()} +] + +# SendActivity_phI2zz_text() +- ${turn} +# SendActivity_f3d23N() +[Activity + Text = ${SendActivity_f3d23N_text()} +] + +# SendActivity_f3d23N_text() +- this is array deletion +# LogAction_Text_qjyebT() +[Activity + Text = ${LogAction_Text_qjyebT_text()} +] + +# LogAction_Text_qjyebT_text() +- the debugging data is ${dialog.metajson} +# SendActivity_clz1zb() +[Activity + Text = ${SendActivity_clz1zb_text()} +] + +# SendActivity_clz1zb_text() +- this is custom activity \ No newline at end of file diff --git a/settings/appsettings.json b/settings/appsettings.json index 2e7ff42..880f1d0 100644 --- a/settings/appsettings.json +++ b/settings/appsettings.json @@ -30,15 +30,10 @@ "environment": "composer", "name": "Empty" }, - "MicrosoftAppId": "", - "publishTargets": [ - { - "name": "mybot", - "type": "azurePublish", - "configuration": "{\"name\":\"comp-aman-bot\",\"environment\":\"dev\",\"tenantId\":\"d787bdb1-cb73-483a-bf57-a44a73bfc66e\",\"hostname\":\"demo-sec-app\",\"runtimeIdentifier\":\"linux-x64\",\"resourceGroup\":\"bot-serv-westus\",\"botName\":\"dev-bot-handle\",\"subscriptionId\":\"ba288277-f268-4139-b0e5-33285a2db2c3\",\"region\":\"East US\",\"appServiceOperatingSystem\":\"linux\",\"scmHostDomain\":\"\",\"settings\":{\"applicationInsights\":{\"InstrumentationKey\":\"a2842398-ca7f-405e-aec5-3c3c7215987a\",\"connectionString\":\"InstrumentationKey=a2842398-ca7f-405e-aec5-3c3c7215987a;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/\"},\"blobStorage\":{\"connectionString\":\"DefaultEndpointsProtocol=https;AccountName=devbotamanstg;AccountKey=IQ0hbZWLw9lT3J3GSOFFFR+C0wWm3nZ4IUrf5U2W5S6FQKeqprYL1E4ErS2l9UhZYouV6kzBdYHC+AStCGGC4A==;EndpointSuffix=core.windows.net\",\"container\":\"transc\"},\"MicrosoftAppId\":\"9dc0aee3-4bae-4ba9-80f0-35f9b949cc4a\",\"MicrosoftAppPassword\":\"J208Q~E_HW0qdSi3sldClyYO4qsQ7g6lmbrUfc.P\"}}", - "lastPublished": "2024-02-17T17:19:25.714Z" - } - ], + "MicrosoftAppId": "9dc0aee3-4bae-4ba9-80f0-35f9b949cc4a", + "MicrosoftAppType": "MultiTenant", + "MicrosoftAppPassword": "J208Q~E_HW0qdSi3sldClyYO4qsQ7g6lmbrUfc.P", + "publishTargets": [], "qna": { "hostname": "", "knowledgebaseid": "", @@ -51,6 +46,10 @@ "path": "../" }, "runtimeSettings": { + "blobTranscript": { + "connectionString": "DefaultEndpointsProtocol=https;AccountName=devbotamanstg;AccountKey=IQ0hbZWLw9lT3J3GSOFFFR+C0wWm3nZ4IUrf5U2W5S6FQKeqprYL1E4ErS2l9UhZYouV6kzBdYHC+AStCGGC4A==;EndpointSuffix=core.windows.net", + "containerName": "transcripts" + }, "adapters": [], "features": { "removeRecipientMentions": false,