Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
You are tasked with extracting location information from a user-provided text that describes issues related to their facilities.

### Instructions:
1. Analyze the input text carefully to identify any mention of locations. These may include:
- Addresses
- City, state, or country names
- Landmarks or well-known places
- Specific facility names or site identifiers
- Specific room names that are commonly used
2. Extract all relevant location details explicitly mentioned in the text.
3. If multiple locations are mentioned, list each separately.
4. Avoid inferring locations that are not clearly stated in the text.
5. Present the extracted location information in a clear and structured manner.

### Output Format:
- Provide only the extracted locations as a string.
- If no location information is found, respond with an empty string.

Example:
Input Text: "The air conditioning in our New York office is malfunctioning, and the warehouse in Brooklyn also has issues."
Output: New York office, warehouse in Brooklyn

Provide the input text describing the facilities problem here:
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
You are tasked with extracting the industry-standard category that best describes a facilities management problem reported by an employee. Use the provided problem description and match it accurately to the relevant category from the supplied reference data.

### Instructions:
1. **Analyze the Problem Description:** Carefully read the employee’s detailed description of the facilities management issue.
2. **Reference Data Matching:** Compare the problem details against the provided industry-standard categories data to find the most appropriate category that describes the problem.
3. **Grounding:** Ensure the selected category is directly supported by the input reference data without assumptions or external knowledge.
4. **Output:** Return the matched category as a concise text string.

### Guidelines:
- Extract only from the provided problem description and reference data.
- Avoid guessing or inferring categories not present in the reference data.
- If no suitable category is found, indicate this clearly.

### Output Format:
Provide the matched industry-standard category as plain text. If no match is found, respond with: "No matching category found."

Provide the following inputs:
- Problem Description: Problem Description
- Reference Categories Data: Categories
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<botcomponent schemaname="msdyn_copilotforemployeeselfservice.topic.CreateFacilitiesManagementTicket">
<componenttype>9</componenttype>
<iscustomizable>0</iscustomizable>
<name>Create Facilities Management Ticket</name>
<parentbotid>
<schemaname>msdyn_copilotforemployeeselfservice</schemaname>
</parentbotid>
<statecode>0</statecode>
<statuscode>1</statuscode>
</botcomponent>
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
kind: AdaptiveDialog
modelDescription: "This tool can handle queries like these: create facilities request, open a facilities ticket, start a new facilities request."
beginDialog:
kind: OnRecognizedIntent
id: main
intent:
triggerQueries:
- create facilities request
- open a facilities ticket
- start a new facilities request
- file a facilities complaint
- Help me with a workspace problem
- Something is wrong in the building
- Create a ticket for facilities
- Request maintenance for office
- Report a broken chair/light/door
- I need to submit a facilities request

actions:
- kind: SetVariable
id: setVariable_Z2HdOA
variable: Topic.ProblemDescription
value: =System.Activity.Text

- kind: SendActivity
id: sendActivity_uEi72P
activity: "Thanks for the details you've shared so far. I’ll review the information to determine if everything needed to submit your facilities request is already available. "

- kind: InvokeAIBuilderModelAction
id: invokeAIBuilderModelAction_inqoh4
input:
binding:
Facilities_20Description: =Topic.ProblemDescription

output:
binding:
predictionOutput: Topic.ProblemLocation

aIModelId: 0bde30fa-b6bd-42f3-a9b6-d58c47ca2065

- kind: InvokeAIBuilderModelAction
id: invokeAIBuilderModelAction_3wGDBR
input:
binding:
Categories: ="HVAC, Electrical, Plumbing, Maintenance"
Problem_20Description: =Topic.ProblemDescription

output:
binding:
predictionOutput: Topic.ProblemCategory

aIModelId: 49e40e64-a630-4692-a82b-4f88522eba41

- kind: AdaptiveCardPrompt
id: "sendActivity_CtL3qw "
card: |-
={
type: "AdaptiveCard",
'$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
version: "1.5",
body: [
{
type: "TextBlock",
text: "Details of your Service Request",
wrap: true,
style: "heading"
},
{
type: "ColumnSet",
columns: [
{
type: "Column",
width: "stretch",
items: [
{
type: "Input.Text",
id: "ProblemCategory",
label: "Problem Category:",
value: Topic.ProblemCategory.text,
weight: "bolder",
isRequired: true,
errorMessage: "Fill required details"
}
]
}
]
},
{
type: "ColumnSet",
columns: [
{
type: "Column",
width: "stretch",
items: [
{
type: "Input.Text",
id: "ProblemLocation",
label: "Problem Location:",
value: Topic.ProblemLocation.text,
weight: "bolder",
isRequired: true,
errorMessage: "Fill required details"
}
]
}
]
},
{
type: "ColumnSet",
columns: [
{
type: "Column",
width: "stretch",
items: [
{
type: "Input.Text",
id: "ProblemDescription",
label: "Problem Description:",
value: Topic.ProblemDescription,
weight: "bolder",
isRequired: true,
errorMessage: "Fill required details"
}
]
}
]
}
],
actions: [
{
type: "Action.Submit",
title: "Submit"
},
{
type: "Action.Submit",
title: "Cancel",
associatedInputs: "none"
}
]
}
output:
binding:
actionSubmitId: Topic.actionSubmitId

outputType:
properties:
actionSubmitId: String

- kind: ConditionGroup
id: conditionGroup_guZXij
conditions:
- id: conditionItem_NnWEYN
condition: =Topic.actionSubmitId = "Submit"
actions:
- kind: InvokeFlowAction
id: invokeFlowAction_qSOIaY
input:
binding:
text: =Topic.ProblemCategory.text
text_1: =Topic.ProblemLocation.text
text_2: =Topic.ProblemDescription

output:
binding:
problemticket: Topic.ProblemTicket

flowId: 521ce2a6-daaa-f011-bbd2-0022480b25f5

elseActions:
- kind: SendActivity
id: sendActivity_BaWHYn
activity: Let us know how can we help.

inputType: {}
outputType: {}