Skip to content

Commit ba82644

Browse files
Fix WorkdayDA employee topics: remove redundant inputs, and add response handling (#525)
- WorkdayGetGovernmentIDs: remove unused EmployeeName input/triggers, remove access check, fix scenarioName binding, add empty response condition - WorkdayGetEducation: remove unused EmployeeName input/triggers, remove access check, add empty response condition Co-authored-by: Sai Rugveth Vankayala <savankayala@microsoft.com>
1 parent 1669f18 commit ba82644

2 files changed

Lines changed: 35 additions & 61 deletions

File tree

  • EmployeeSelfServiceAgent/WorkdayDA/EmployeeScenarios

EmployeeSelfServiceAgent/WorkdayDA/EmployeeScenarios/WorkdayGetEducation/topic.yaml

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
kind: AdaptiveDialog
2-
inputs:
3-
- kind: AutomaticTaskInput
4-
propertyName: EmployeeName
5-
description: The name of the person whose employment data is being requested.
6-
entity: PersonNamePrebuiltEntity
7-
shouldPromptUser: false
8-
92
modelDescription: |-
103
Use this topic when the user asks to VIEW or READ THEIR OWN education / academic history / schooling stored in Workday — degree (bachelor's, master's, MBA, PhD), diploma, certificate, school/university/college/institution, alma mater, major, field of study, minor, graduation year/date, GPA, academic qualifications, or credentials.
114
@@ -17,25 +10,8 @@ modelDescription: |-
1710
beginDialog:
1811
kind: OnRecognizedIntent
1912
id: main
20-
intent:
21-
triggerQueries:
22-
- "Show my Education Details "
23-
- "From which school I completed my BS degree Education? "
24-
- "Show my Education Degrees "
25-
- "What was my field of Study during Education? "
26-
- "Show my First Year attended for BS degree Education? "
27-
- "Show my Last Year attended for BS degree Education? "
28-
13+
intent: {}
2914
actions:
30-
- kind: BeginDialog
31-
id: zQU3vE
32-
displayName: Check access
33-
input:
34-
binding:
35-
EmployeeName: =Topic.EmployeeName
36-
37-
dialog: msdyn_copilotforemployeeselfservicedahr.topic.WorkdaySystemAccessCheck
38-
3915
- kind: BeginDialog
4016
id: B7ae9T
4117
displayName: Redirect to Get CommonExecution
@@ -219,11 +195,22 @@ beginDialog:
219195
)
220196
)
221197
222-
- kind: SendActivity
223-
id: sendActivity_educationResponse
224-
activity: |-
225-
Here is your education information:
226-
{Topic.FinalizedEducationData}
198+
- kind: ConditionGroup
199+
id: conditionGroup_PLj70M
200+
conditions:
201+
- id: conditionItem_TCBTE7
202+
condition: =IsBlank(Topic.parsedWorkdayResponse.EducationData)
203+
actions:
204+
- kind: SendActivity
205+
id: sendActivity_jPX7sn
206+
activity: There is no education information listed for you in the system. If this information should be included, you can update it directly in Workday or reach out to HR for assistance.
207+
208+
elseActions:
209+
- kind: SendActivity
210+
id: sendActivity_educationResponse
211+
activity: |-
212+
Here is your education information:
213+
{Topic.FinalizedEducationData}
227214
228215
inputType:
229216
properties:

EmployeeSelfServiceAgent/WorkdayDA/EmployeeScenarios/WorkdayGetGovernmentIDs/topic.yaml

Lines changed: 18 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,18 @@ modelDescription: |-
55
Trigger on "my" government-ID queries: "What is my SSN / PAN / Aadhaar / NI number?", "What's my passport number?", "When does my visa / work permit expire?", "Show my driver's license on file", "What's my tax ID?", "What government IDs are on my Workday profile?", "What's my green card / PR status?".
66
77
Do NOT trigger for general questions about ID applications, renewals, immigration law, or work authorization policy
8-
inputs:
9-
- kind: AutomaticTaskInput
10-
propertyName: EmployeeName
11-
description: The name of the employee whose data is being requested.
12-
entity: PersonNamePrebuiltEntity
13-
shouldPromptUser: false
14-
inputSettings:
15-
repeatCount: 0
16-
178
beginDialog:
189
kind: OnRecognizedIntent
1910
id: main
20-
intent:
21-
triggerQueries:
22-
- What are my Government Ids?
23-
- Which Government ids are available on my profile?
24-
- Show my Government Ids?
25-
- Show me [EmployeeName]'s government Ids
26-
11+
intent: {}
2712
actions:
28-
- kind: BeginDialog
29-
id: GlRaX3
30-
displayName: Check user access
31-
input:
32-
binding:
33-
EmployeeName: =Topic.EmployeeName
34-
35-
dialog: msdyn_copilotforemployeeselfservicedahr.topic.WorkdaySystemAccessCheck
36-
3713
- kind: BeginDialog
3814
id: 3bFDxH
3915
displayName: Redirect to Workday System Get Common Execution
4016
input:
4117
binding:
4218
parameters: ="{""params"":[{""key"":""{Employee_ID}"",""value"":""" & Global.ESS_UserContext_Employee_Id & """},{""key"":""{As_Of_Effective_Date}"",""value"":"""& Text(Today(), "yyyy-MM-dd") &"""}]}"
43-
scenarioName: ="msdyn_HRWorkdayHCMEmployeeGetGovernmentIds"
19+
scenarioName: msdyn_HRWorkdayHCMEmployeeGetGovernmentIds
4420

4521
dialog: msdyn_copilotforemployeeselfservicedahr.topic.WorkdaySystemGetCommonExecution
4622
output:
@@ -140,11 +116,22 @@ beginDialog:
140116
)
141117
)
142118
143-
- kind: SendActivity
144-
id: sendActivity_uxFMLZ
145-
activity: |-
146-
Here is your government ID information:
147-
{Topic.finalizedResponseTableData}
119+
- kind: ConditionGroup
120+
id: conditionGroup_PLj70M
121+
conditions:
122+
- id: conditionItem_TCBTE7
123+
condition: =IsBlank(Topic.parsedWorkdayResponse.GovernmentId)
124+
actions:
125+
- kind: SendActivity
126+
id: sendActivity_jPX7sn
127+
activity: There are no government IDs listed for you in the system. If this information should be included, you can update it directly in Workday or reach out to HR for assistance.
128+
129+
elseActions:
130+
- kind: SendActivity
131+
id: sendActivity_uxFMLZ
132+
activity: |-
133+
Here is your government ID information:
134+
{Topic.finalizedResponseTableData}
148135
149136
inputType:
150137
properties:

0 commit comments

Comments
 (0)