Skip to content

Commit

Permalink
some msg
Browse files Browse the repository at this point in the history
  • Loading branch information
amangit007 committed Feb 19, 2024
1 parent 6da6f46 commit 6edb950
Show file tree
Hide file tree
Showing 12 changed files with 320 additions and 10 deletions.
86 changes: 86 additions & 0 deletions Empty.dialog
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -387,6 +412,13 @@
},
"intent": "array-del",
"actions": [
{
"$kind": "Microsoft.SendActivity",
"$designer": {
"id": "f3d23N"
},
"activity": "${SendActivity_f3d23N()}"
},
{
"$kind": "Microsoft.SetProperty",
"$designer": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -464,6 +546,10 @@
{
"intent": "array-del",
"pattern": "popper"
},
{
"intent": "lemon",
"pattern": "lemon"
}
]
}
Expand Down
Empty file.
67 changes: 67 additions & 0 deletions dialogs/lemond/language-generation/en-us/lemond.en-us.lg
Original file line number Diff line number Diff line change
@@ -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, ",")}
```
Empty file.
106 changes: 106 additions & 0 deletions dialogs/lemond/lemond.dialog
Original file line number Diff line number Diff line change
@@ -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"
}
8 changes: 8 additions & 0 deletions dialogs/lemond/recognizers/lemond.en-us.lu.dialog
Original file line number Diff line number Diff line change
@@ -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"
}
5 changes: 5 additions & 0 deletions dialogs/lemond/recognizers/lemond.lu.dialog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$kind": "Microsoft.MultiLanguageRecognizer",
"id": "LUIS_lemond",
"recognizers": {}
}
4 changes: 4 additions & 0 deletions dialogs/lemond/recognizers/lemond.lu.qna.dialog
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$kind": "Microsoft.CrossTrainedRecognizerSet",
"recognizers": []
}
Empty file.
Empty file.
37 changes: 36 additions & 1 deletion language-generation/en-us/Empty.en-us.lg
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,39 @@ the response is ${dialog.arr1}```
]

# SendActivity_pMIW8D_text()
- activity value : ${turn}
- 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
17 changes: 8 additions & 9 deletions settings/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand All @@ -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,
Expand Down

0 comments on commit 6edb950

Please sign in to comment.