You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayManageEmergencyContact/msdyn_HRWorkdayHCMEmployeeGetEmergencyContactInfo.xml
Copy file name to clipboardExpand all lines: EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayManageEmergencyContact/topic.yaml
+98-19Lines changed: 98 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -2,26 +2,13 @@ kind: AdaptiveDialog
2
2
inputs:
3
3
- kind: AutomaticTaskInput
4
4
propertyName: InputAction
5
-
description: "Look for keywords 'add', 'new', or 'create' in the user's request. If found, extract 'add'. Otherwise extract 'manage'."
5
+
description: "Look for keywords 'add', 'new', or 'create' in the user's request. If found, extract 'add'. Look for keywords 'get', 'view', 'show', 'list', 'see', 'display', or 'what are' in the user's request. If found, extract 'get'. Otherwise extract 'manage'."
6
6
entity: StringPrebuiltEntity
7
7
shouldPromptUser: false
8
8
9
9
modelDescription: |-
10
-
You will respond to requests related to managing emergency contacts for the user making the request.
11
-
This includes adding new emergency contacts or updating existing ones.
12
-
All emergency contact operations are submitted to Workday (Human_Resources) and pertain exclusively to the requesting user.
13
-
This data exclusively belongs to the user making the request. Do not respond to questions about other people's data.
14
-
15
-
Example invalid requests:
16
-
"Manage emergency contact for my manager"
17
-
"Update emergency contact for my colleague"
18
-
19
-
Example valid requests:
20
-
"Manage my emergency contacts"
21
-
"Update my emergency contact"
22
-
"Add or update emergency contact"
23
-
"Change my emergency contact information"
24
-
"Add a new emergency contact"
10
+
Manage emergency contacts for the requesting user only. Supports add and update via Workday (Human_Resources). Reject requests about other people's data.
11
+
Formatting: ALWAYS display contacts in a markdown table with columns: Name, Relationship, Phone, Address. Mark primary with ★. Sort primary first, then by priority. Use "—" for missing fields. Heading: "Your emergency contacts" with divider. Never use bullet lists. Hide internal IDs (WID, Priority number, Country Codes). Show ALL contacts.
# Detect if user wants to view contacts only (get/view/show/list)
55
+
- kind: SetVariable
56
+
id: set_is_view_only
57
+
variable: Topic.isViewOnly
58
+
value: =(!IsBlank(Topic.InputAction) && "get" in Lower(Topic.InputAction)) || "get" in Lower(System.Activity.Text) || "view" in Lower(System.Activity.Text) || "show" in Lower(System.Activity.Text) || "list" in Lower(System.Activity.Text) || "see my" in Lower(System.Activity.Text) || "what are" in Lower(System.Activity.Text) || "display" in Lower(System.Activity.Text)
59
+
67
60
# Check if user explicitly wants to add a new contact - skip loading existing contacts
68
61
- kind: ConditionGroup
69
62
id: check_direct_add
70
63
conditions:
71
64
- id: user_wants_add_directly
72
-
condition: =(!IsBlank(Topic.InputAction) && "add" in Lower(Topic.InputAction)) || "add" in Lower(System.Activity.Text) || "new emergency contact" in Lower(System.Activity.Text) || "create" in Lower(System.Activity.Text)
65
+
condition: =Topic.isViewOnly <> true && ((!IsBlank(Topic.InputAction) && "add" in Lower(Topic.InputAction)) || "add" in Lower(System.Activity.Text) || "new emergency contact" in Lower(System.Activity.Text) || "create" in Lower(System.Activity.Text))
73
66
displayName: User wants to add a new contact directly
activity: "If you need to update or add any information for these contacts, just let me know which one you'd like to change or if you want to add a new contact."
355
+
356
+
- kind: CancelAllDialogs
357
+
id: end_view_only
358
+
280
359
- kind: SetVariable
281
360
id: set_intro_msg_text
282
361
variable: Topic.introMsgText
283
-
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."
362
+
value: ="Sure, I can help you with that. Here's where you can 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."
0 commit comments