diff --git a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeAddDependents/topic.yaml b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeAddDependents/topic.yaml index 3ccc06cd..7e1e7b80 100644 --- a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeAddDependents/topic.yaml +++ b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeAddDependents/topic.yaml @@ -23,12 +23,28 @@ beginDialog: intent: {} actions: + # Set Workday URL + - kind: SetVariable + id: set_workday_url + variable: Topic.WorkdayUrl + value: https://impl.workday.com//home.htmld + # Set Workday icon URL - kind: SetVariable id: set_workday_icon_url variable: Topic.WorkdayIconUrl value: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII= + # Intro message + - kind: SetVariable + id: set_intro_msg_text + variable: Topic.introMsgText + value: ="Sure, I can help you with that. Here's where you can add a new dependent. You can also add a dependent on [Workday](" & Topic.WorkdayUrl & "), an HR platform your company uses." + + - kind: SendActivity + id: intro_msg + activity: "{Topic.introMsgText}" + # Step 1: Fetch reference data for relationship types - kind: ConditionGroup id: checkRelationshipTypes @@ -161,28 +177,7 @@ beginDialog: } ) - # Step 5: Show existing dependents and option to add new - - kind: ConditionGroup - id: checkExistingDependents - conditions: - - id: hasDependentsCondition - condition: =CountRows(Topic.dependentsTable) > 0 - actions: - - kind: SendActivity - id: sendExistingDependentsMsg - activity: |- - You currently have **{CountRows(Topic.dependentsTable)}** dependent(s) on file: - - {Concat(Topic.dependentsTable, "• " & FullName & " (" & RelationshipType & ")" & Char(10))} - - Let's add a new dependent. - - elseActions: - - kind: SendActivity - id: sendNoDependentsMsg - activity: You don't have any dependents on file yet. Let's add one now. - - # Step 6: Collect dependent information using Adaptive Card + # Step 5: Collect dependent information using Adaptive Card - kind: AdaptiveCardPrompt id: collectDependentCard displayName: Collect dependent information @@ -192,40 +187,6 @@ beginDialog: '$schema': "http://adaptivecards.io/schemas/adaptive-card.json", version: "1.5", body: [ - { - type: "ColumnSet", - columns: [ - { - type: "Column", - width: "auto", - items: [ - { - type: "Image", - url: Topic.WorkdayIconUrl, - style: "RoundedCorners", - size: "Small", - height: "20px", - width: "20px" - } - ], - verticalContentAlignment: "Center" - }, - { - type: "Column", - width: "auto", - items: [ - { - type: "TextBlock", - text: "", - size: "Small", - weight: "Bolder" - } - ], - verticalContentAlignment: "Center", - spacing: "Small" - } - ] - }, { type: "TextBlock", text: "Add a new dependent", @@ -406,40 +367,6 @@ beginDialog: '$schema': "http://adaptivecards.io/schemas/adaptive-card.json", version: "1.5", body: [ - { - type: "ColumnSet", - columns: [ - { - type: "Column", - width: "auto", - items: [ - { - type: "Image", - url: Topic.WorkdayIconUrl, - style: "RoundedCorners", - size: "Small", - height: "20px", - width: "20px" - } - ], - verticalContentAlignment: "Center" - }, - { - type: "Column", - width: "auto", - items: [ - { - type: "TextBlock", - text: "", - size: "Small", - weight: "Bolder" - } - ], - verticalContentAlignment: "Center", - spacing: "Small" - } - ] - }, { type: "TextBlock", text: "✅ Your new dependent was added", diff --git a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeGetVacationBalance/topic.yaml b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeGetVacationBalance/topic.yaml index 8afcb56f..ea0eb837 100644 --- a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeGetVacationBalance/topic.yaml +++ b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeGetVacationBalance/topic.yaml @@ -28,6 +28,20 @@ beginDialog: - what is my workday vacation balance? actions: + - kind: SetVariable + id: set_workday_url + variable: Topic.WorkdayUrl + value: https://impl.workday.com//home.htmld + + - kind: SetVariable + id: set_intro_msg_text + variable: Topic.introMsgText + value: ="Sure, here's what I found on your time off balance from [Workday](" & Topic.WorkdayUrl & "), an HR platform your company uses." + + - kind: SendActivity + id: intro_msg + activity: "{Topic.introMsgText}" + - kind: SetVariable id: setVariable_8qSSM1 variable: Topic.date diff --git a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeUpdateResidentialAddress/topic.yaml b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeUpdateResidentialAddress/topic.yaml index 4cf39ec1..597a86ba 100644 --- a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeUpdateResidentialAddress/topic.yaml +++ b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeUpdateResidentialAddress/topic.yaml @@ -21,6 +21,28 @@ beginDialog: intent: {} actions: + # Set Workday URL + - kind: SetVariable + id: set_workday_url + variable: Topic.WorkdayUrl + value: https://impl.workday.com//home.htmld + + # Set Workday icon URL + - kind: SetVariable + id: set_workday_icon_url_init + variable: Topic.WorkdayIconUrl + value: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII= + + # Intro message + - kind: SetVariable + id: set_intro_msg_text + variable: Topic.introMsgText + value: ="Sure, I can help you with that. I found your address information in [Workday](" & Topic.WorkdayUrl & "), an HR platform your company uses." + + - kind: SendActivity + id: intro_msg + activity: "{Topic.introMsgText}" + # Step 1: Get current residential address - kind: BeginDialog id: getAddress_BeginDialog @@ -208,12 +230,6 @@ beginDialog: } ) - # Set Workday icon URL - - kind: SetVariable - id: set_workday_icon_url - variable: Topic.WorkdayIconUrl - value: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII= - # Show address selection card - kind: AdaptiveCardPrompt id: selectAddressCard @@ -655,40 +671,6 @@ beginDialog: '$schema': "http://adaptivecards.io/schemas/adaptive-card.json", version: "1.5", body: [ - { - type: "ColumnSet", - columns: [ - { - type: "Column", - width: "auto", - items: [ - { - type: "Image", - url: Topic.WorkdayIconUrl, - style: "RoundedCorners", - size: "Small", - height: "20px", - width: "20px" - } - ], - verticalContentAlignment: "Center" - }, - { - type: "Column", - width: "auto", - items: [ - { - type: "TextBlock", - text: "", - size: "Small", - weight: "Bolder" - } - ], - verticalContentAlignment: "Center", - spacing: "Small" - } - ] - }, { type: "TextBlock", text: "✅ Address updated", diff --git a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayEmployeeRequestTimeOff/topic.yaml b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayEmployeeRequestTimeOff/topic.yaml index 803c9ce7..04494996 100644 --- a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayEmployeeRequestTimeOff/topic.yaml +++ b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayEmployeeRequestTimeOff/topic.yaml @@ -165,7 +165,6 @@ beginDialog: variable: Topic.PlanConfig value: |- =Table( - {PlanID: "PTO_USA", DisplayName: "Paid time off"}, {PlanID: "FH_USA", DisplayName: "Floating holiday"}, {PlanID: "ABSENCE_PLAN-6-159", DisplayName: "Sick leave"}, {PlanID: "ABSENCE_PLAN-6-158", DisplayName: "Vacation"} diff --git a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayManageEmergencyContact/topic.yaml b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayManageEmergencyContact/topic.yaml index 320daf9e..c1873002 100644 --- a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayManageEmergencyContact/topic.yaml +++ b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayManageEmergencyContact/topic.yaml @@ -272,10 +272,15 @@ beginDialog: } ) + - kind: SetVariable + id: set_workday_url_2 + variable: Topic.WorkdayUrl + value: https://impl.workday.com//home.htmld + - kind: SetVariable id: set_intro_msg_text variable: Topic.introMsgText - value: ="Sure, I can help you with that. Here's where you can both update and add emergency contacts. I've identified " & Text(CountRows(Topic.selectionChoices)) & " emergency contact(s) of yours from [Workday](https://impl.workday.com/microsoft_dpt6/d/home.htmld), an HR platform your company uses." + value: ="Sure, I can help you with that. Here's where you can both update and add emergency contacts. I've identified " & Text(CountRows(Topic.selectionChoices)) & " emergency contact(s) of yours from [Workday](" & Topic.WorkdayUrl & "), an HR platform your company uses." - kind: SendActivity id: intro_selection_msg @@ -290,40 +295,6 @@ beginDialog: '$schema': "http://adaptivecards.io/schemas/adaptive-card.json", version: "1.5", body: [ - { - type: "ColumnSet", - columns: [ - { - type: "Column", - width: "auto", - items: [ - { - type: "Image", - url: Topic.WorkdayIconUrl, - style: "RoundedCorners", - size: "Small", - height: "20px", - width: "20px" - } - ], - verticalContentAlignment: "Center" - }, - { - type: "Column", - width: "auto", - items: [ - { - type: "TextBlock", - text: "", - size: "Small", - weight: "Bolder" - } - ], - verticalContentAlignment: "Center", - spacing: "Small" - } - ] - }, { type: "TextBlock", text: "Select an emergency contact to update", @@ -435,40 +406,6 @@ beginDialog: '$schema': "http://adaptivecards.io/schemas/adaptive-card.json", version: "1.5", body: [ - { - type: "ColumnSet", - columns: [ - { - type: "Column", - width: "auto", - items: [ - { - type: "Image", - url: Topic.WorkdayIconUrl, - style: "RoundedCorners", - size: "Small", - height: "20px", - width: "20px" - } - ], - verticalContentAlignment: "Center" - }, - { - type: "Column", - width: "auto", - items: [ - { - type: "TextBlock", - text: "", - size: "Small", - weight: "Bolder" - } - ], - verticalContentAlignment: "Center", - spacing: "Small" - } - ] - }, { type: "TextBlock", text: If(Topic.isUpdateMode, "Update emergency contact", "Add emergency contact"), @@ -942,40 +879,6 @@ beginDialog: '$schema': "http://adaptivecards.io/schemas/adaptive-card.json", version: "1.5", body: [ - { - type: "ColumnSet", - columns: [ - { - type: "Column", - width: "auto", - items: [ - { - type: "Image", - url: Topic.WorkdayIconUrl, - style: "RoundedCorners", - size: "Small", - height: "20px", - width: "20px" - } - ], - verticalContentAlignment: "Center" - }, - { - type: "Column", - width: "auto", - items: [ - { - type: "TextBlock", - text: "", - size: "Small", - weight: "Bolder" - } - ], - verticalContentAlignment: "Center", - spacing: "Small" - } - ] - }, { type: "TextBlock", text: "Confirm deletion", @@ -1077,40 +980,6 @@ beginDialog: '$schema': "http://adaptivecards.io/schemas/adaptive-card.json", version: "1.5", body: [ - { - type: "ColumnSet", - columns: [ - { - type: "Column", - width: "auto", - items: [ - { - type: "Image", - url: Topic.WorkdayIconUrl, - style: "RoundedCorners", - size: "Small", - height: "20px", - width: "20px" - } - ], - verticalContentAlignment: "Center" - }, - { - type: "Column", - width: "auto", - items: [ - { - type: "TextBlock", - text: "", - size: "Small", - weight: "Bolder" - } - ], - verticalContentAlignment: "Center", - spacing: "Small" - } - ] - }, { type: "TextBlock", text: "✅ Emergency contact deleted", @@ -1233,7 +1102,7 @@ beginDialog: - kind: SetVariable id: set_workday_url variable: Topic.WorkdayUrl - value: ="https://impl.workday.com/microsoft_dpt6/d/home.htmld" + value: ="https://impl.workday.com//home.htmld" - kind: SetVariable id: set_success_intro_text @@ -1255,40 +1124,6 @@ beginDialog: '$schema': "http://adaptivecards.io/schemas/adaptive-card.json", version: "1.5", body: [ - { - type: "ColumnSet", - columns: [ - { - type: "Column", - width: "auto", - items: [ - { - type: "Image", - url: Topic.WorkdayIconUrl, - style: "RoundedCorners", - size: "Small", - height: "20px", - width: "20px" - } - ], - verticalContentAlignment: "Center" - }, - { - type: "Column", - width: "auto", - items: [ - { - type: "TextBlock", - text: "", - size: "Small", - weight: "Bolder" - } - ], - verticalContentAlignment: "Center", - spacing: "Small" - } - ] - }, { type: "TextBlock", text: If(Topic.isUpdateMode, "✅ Emergency contact updated", "✅ Emergency contact added"),