From 2aae720d43b03e6efb6c40c7f265cea31c5924c9 Mon Sep 17 00:00:00 2001 From: Vedika Gupta Date: Fri, 30 Jan 2026 17:25:23 +0530 Subject: [PATCH 1/2] topic changes for get full profile --- .../WorkdayGetUserProfile/topic.yaml | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayGetUserProfile/topic.yaml b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayGetUserProfile/topic.yaml index 79909aea..793f26fc 100644 --- a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayGetUserProfile/topic.yaml +++ b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayGetUserProfile/topic.yaml @@ -1,15 +1,26 @@ kind: AdaptiveDialog modelDescription: |- - Respond to user's profile information requests from Workday. Provide data ONLY for the requesting user, never for others (managers, colleagues, etc.). + Respond to profile requests from Workday. Data is ONLY for the requesting user. - Available fields: Name, Employee ID, DOB, Gender, Business Title, Organization (Department), Manager, Location, Hire Date, Work Email, Work Phone, Home Email, Home Phone, Home Address, Employment Status. + Start with: "Sure, here's your employee profile from [Workday](https://www.workday.com), your company's HR platform." - Answer based on which specific data the user asks for. Include relevant fields based on the question. + Format with section headers (not bold labels). Structure: + + Personal information: Name, Employee ID + Hiring details: Hire date, Length of service (only if asked about tenure) + Role and work: Position, Manager, Location + Team and organization: Department + Contact information: Work email, Work phone, Personal email, Personal phone, Home address - Include Continuous Service Date and Length of Service ONLY when user specifically asks about tenure, service length, years of service, or how long they've been with the company. + Rules: + - Use section headers, bullet lists within sections + - Do NOT bold every label + - Home address must be a single line, NOT sub-bullets + - Exclude DOB/Gender unless specifically asked + - For specific questions, answer directly without all sections + - End with: "Let me know if you want details about a section or to update your profile." - Invalid requests: "What is my manager's job title?" "What is my colleague's employee ID?" "What department is John in?" - Valid requests: "What is my employee ID?" "What is my job title?" "Show my profile" "What is my work email?" "What is my tenure?" (include service length) + Invalid: other people's data. Valid: own profile/email/title/tenure. beginDialog: kind: OnRecognizedIntent @@ -185,7 +196,7 @@ beginDialog: Location: First(Topic.parsedWorkdayResponse.Location).Value, HireDate: First(Topic.parsedWorkdayResponse.HireDate).Value, WorkEmail: First(Topic.parsedWorkdayResponse.WorkEmail).Value, - HomeAddress: First(Topic.parsedWorkdayResponse.HomeAddress).Value, + HomeAddress: Substitute(Substitute(Concat(Topic.parsedWorkdayResponse.HomeAddress, Value, ", "), Char(10), ", "), Char(13), ""), HomeEmail: First(Topic.parsedWorkdayResponse.HomeEmail).Value, HomePhone: First(Topic.parsedWorkdayResponse.HomePhone).Value, WorkPhone: First(Topic.parsedWorkdayResponse.WorkPhone).Value, From 3c0db3bd1842857bb8675e5bc37d3267b5b8d0dc Mon Sep 17 00:00:00 2001 From: Vedika Gupta Date: Fri, 30 Jan 2026 19:08:33 +0530 Subject: [PATCH 2/2] reportees time in position and get user profile --- .../WorkdayGetUserProfile/topic.yaml | 26 ++++++++----------- .../topic.yaml | 12 ++++----- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayGetUserProfile/topic.yaml b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayGetUserProfile/topic.yaml index 793f26fc..8b1c78c3 100644 --- a/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayGetUserProfile/topic.yaml +++ b/EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayGetUserProfile/topic.yaml @@ -1,26 +1,22 @@ kind: AdaptiveDialog modelDescription: |- - Respond to profile requests from Workday. Data is ONLY for the requesting user. + Respond to profile requests from [Workday](https://www.workday.com), an HR platform your company uses. - Start with: "Sure, here's your employee profile from [Workday](https://www.workday.com), your company's HR platform." + For FULL PROFILE: Start with "Sure, here's your employee profile from Workday..." then use sections: + Personal information, Hiring details, Role and work, Team and organization, Contact information. - Format with section headers (not bold labels). Structure: - - Personal information: Name, Employee ID - Hiring details: Hire date, Length of service (only if asked about tenure) - Role and work: Position, Manager, Location - Team and organization: Department - Contact information: Work email, Work phone, Personal email, Personal phone, Home address + For TENURE/POSITION questions: Start with "Here's how long you've been in your position according to Workday..." + Include role title: "You've been in your current role as a [Position] for [LengthOfService]." + Add "About your position" section: Department, Location. Rules: + - Always include Workday attribution - Use section headers, bullet lists within sections - - Do NOT bold every label - - Home address must be a single line, NOT sub-bullets - - Exclude DOB/Gender unless specifically asked - - For specific questions, answer directly without all sections - - End with: "Let me know if you want details about a section or to update your profile." + - Home address as single line, NOT sub-bullets + - Exclude DOB/Gender unless asked + - End with: "Let me know if you want more details or to update your profile." - Invalid: other people's data. Valid: own profile/email/title/tenure. + Invalid: other people's data. beginDialog: kind: OnRecognizedIntent diff --git a/EmployeeSelfServiceAgent/Workday/ManagerScenarios/WorkdayGetManagerReporteesTimeInPosition/topic.yaml b/EmployeeSelfServiceAgent/Workday/ManagerScenarios/WorkdayGetManagerReporteesTimeInPosition/topic.yaml index adecac4b..90453187 100644 --- a/EmployeeSelfServiceAgent/Workday/ManagerScenarios/WorkdayGetManagerReporteesTimeInPosition/topic.yaml +++ b/EmployeeSelfServiceAgent/Workday/ManagerScenarios/WorkdayGetManagerReporteesTimeInPosition/topic.yaml @@ -1,14 +1,14 @@ kind: AdaptiveDialog modelDescription: |- - You will respond to requests about time in position for direct reports of the user making the request. There is no information available for anyone who isn't a direct report, and being a direct report means that the individual is not a manager, spouse, sibling, or any other relationship to the requestor, and only means that they report to the requestor. The resulting data will contain a list of employees who report to the requestor and will contain their position start date, time in position, business title, job profile, location, hire date, and status. You must NOT give data if you do not have enough info. + Respond to team time-in-position requests from [Workday](https://www.workday.com), an HR platform your company uses. + For multiple team members: Use a simple table with Name, Title, Time in position. + For one team member: Use their name as header with bullet list of details. - Example valid request: - "What is the time in position of my direct reports?" - "Show my team's time in position" - "How long have my reportees been in their current positions?" + Keep responses concise. Do NOT show Status or Hire Date unless asked. + End with: "Let me know if you have questions about your team." - Your output **must** be a nested list in markdown language based on the data contained in the {Topic.workdayResponseTableWithTimeInPosition} variable + Invalid: non-direct reports. beginDialog: kind: OnRecognizedIntent id: main