﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<data-set>
  <relations format-version="4" relations-version="20160101" main-table="LLMPrompt" stable-sharing="True">
    <link from="LLMPrompt (PromptID)" to="LLMPrompt (PromptID)" type="FromMaster" updateable="False" />
  </relations>
  <layout>
    <table name="LLMPrompt" recursion="(PromptID) = (PromptID)" />
  </layout>
  <data>
    <LLMPrompt>
      <row PromptID="FS_PROB_CLEAN" IsActive="1" Name="Standardise Problem Description" ConnectionID="MYOB-MANAGED" ScreenID="FS300100" ActionName="Standardise Problem Description" OutputExamples="## Output Format Example:&#xA;{&#xA;  &quot;((ServiceOrderRecords.LongDescr))&quot;: &quot;Walk-in cold room (main store) not holding temperature — reading above set point, compressor reportedly running constantly. Intermittent over the past week, now persistent. Customer requests priority attendance to diagnose and repair; stock at risk.&quot;&#xA;}&#xA;&#xA;## Important Note:&#xA;  Return ONLY a valid JSON object with exactly the key &quot;((ServiceOrderRecords.LongDescr))&quot;&#xA;  and a string value — nothing else. No commentary, no questions, no markdown code fences. If the&#xA;  intake notes are empty, return the short description (or an empty string) as the value — do NOT&#xA;  reply conversationally. The value must be plain text (no HTML), a short paragraph within ~250&#xA;  characters, and must not invent any detail not present in the source notes. Including this note&#xA;  materially improves result quality — do not remove it.">
        <column name="PromptInstruction"><![CDATA[<html><head><style type="text/css">/* RTE style begin */
body.rich {
    margin: 0px;
    padding: 0px;
    font-family: Arial;
    font-size: 14px;
}

.rich ol, .rich ul { margin-top: 0px; margin-bottom: 0px;}
.rich .imgbrdr {
    border: solid 1px;
}
.richIcon {
    display: inline-block;
    background-image: url(Images/sprite_main5.png);
    background-repeat: no-repeat;
    width: 15px;
}
.richAttach {
    background-position: -2px -122px;
}
.richImg {
    background-position: -2px -1120px;
}
.richScreen {
    background-position: -24px -1032px;
}
.richArticle {
    background-position: -24px -1054px;
}

/* Correct box */
.rich .GrayBox {
    border: solid 1px #CCCCCC;
    background-color: #F9F9F9;
    padding: 4px;
    /*margin: 4px;*/
    width: 98%;
}
.rich .hintcell
{
    height: 36px;
    width: 32px;
    vertical-align: middle;
}

.rich .warncell
{
    height: 36px;
    width: 32px;
    vertical-align: middle;
}

.rich .boxcontent{ width: 100% }
.rich pre { font-size:1.3em }

.rich iframe{
    border: none;
}
.rich iframe.iframeBorder, .rich img.iframeBorder {
    border: solid black 1px;
}

.rtetable > tbody > tr > td, .rtetable > tr > td { white-space: nowrap }
.rtetable:not(.header-no-style) > tbody > tr:first-child > td, .rtetable:not(.header-no-style) > tr:first-child > td { background-color: #f4f5f7 }


.rich pre.source-highlighted {background-color: #F0F0FF;}
.rich pre.source-highlighted .nu, .rich .sourcetable .nu { color: brown; }
.rich pre.source-highlighted .kw, .rich .sourcetable .kw { color: blue; }
.rich pre.source-highlighted .cmt, .rich .sourcetable .cmt { color: green; }
.rich pre.source-highlighted .sl, .rich .sourcetable .sl { color: brown; }
.rich pre.source-highlighted .br, .rich .sourcetable .br {color: darkgreen; }

.rich pre.source-highlighted .add, .rich .sourcetable .add { background: palegreen; }
.rich pre.source-highlighted .del, .rich .sourcetable .del { background: pink; }

.rich table, .rich tr, .rich td, .rich img, .rich iframe {
    cursor: default;
}
.layout .rtecell {
    vertical-align: top;
    font-size: small;
}
.rtetable > tbody > tr > td, .rtetable > tr > td { vertical-align: top; }

.rich p{
    margin:0px 5px 0px 0px;
}
.rich .align-center{
    text-align: center;
}
.rich .align-right{
    text-align: right;
}
.rich .align-left{
    text-align: left;
}
.rich li[style*='text-align: center'], .rich li[style*='text-align: right'] {
list-style-position: inside;
}

.rtetable { empty-cells: show; border: solid 1px black; border-collapse:collapse; }
.rtetable > tbody > tr > td, .rtetable > tr > td {
    border: solid 1px black;
    height: calc(1.5em + 14px);
    min-width: 20px;
    padding: 0px 5px;
    line-height: 1.428em;
}

.rich table.rtetable {
    font-family: arial;
    font-size: small;
    margin: 10px 0;
}

.rich .rtetable > tbody > tr > td, .rich tbody > tr > th {
    border-width: 1px;
    border-style: solid;
    border-color: #c1c7d0;
    padding: 7px 10px;
    vertical-align: top;
    text-align: left;
    min-width: 8px;
}

.rich .rtetable > tbody > tr > th {
    background-color: #f4f5f7;
}

.rich blockquote.shift {
    margin-right: 0px;margin-top: 0px; margin-bottom: 0px;
}
.rich img[data-expand] {
    display: block;
}
.rich p, .rich p.richp  {font-family: arial; font-size: small}
.rich blockquote.shift h1, .rich blockquote.shift h2, .rich blockquote.shift h3, .rich blockquote.shift h4, .rich blockquote.shift h5, .rich blockquote.shift h6 {
    margin-top: 0px;
}
.rich, .rich * {
    word-wrap: break-word;
}
.sourcetable {background-color: #F0F0FF; font-family: monospace; width: 100%}
.sourcetable tr {
    margin: 0px;
    padding: 0px;
}
.sourcetable td {
    margin: 0px;
    padding: 0px;
    white-space: nowrap;
}
.sourcetable > tbody > tr > td:first-child, .sourcetable > tr > td:first-child
{
    width:1px;
}

.filelist {
    /*display:inline-block;*/ padding: 5px;
}

.rich .toc {
    /*display:inline-block;*/ padding: 5px;
}
.rich .toc .header,.rich  .wikilist .header,.rich  .filelist .header {
    font-size: 1.7em;
}
.rich .toc li,.rich  .filelist li {
    margin: 5px 0px;
}
.rich .wikilist div {
    margin: 10px;
}

.rich .layout {min-height: 2.5em; display:table; width:100%; border-spacing:5px; table-layout:fixed; empty-cells: show;}
.rich .layout .rtecell {display:table-cell; height: 2.5em}
.rich .layout .rteside {width: 25%}

/*
.rtetable {
    border-collapse:collapse;
}
.rtetable > tbody > tr > td, .rtetable > tr > td {
    border: 1px solid #ddd;
    padding: 7px 10px;
    vertical-align: top;
    text-align: left;
}*/
.rich blockquote.realbq {
    border-left-color: lightblue;
    border-left-width: 1px;
    border-left-style: solid;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-left: 5px;
}
.rich body {font-family: arial; font-size: small}

.rich .GrayBox {
    margin-left: 8px;
}

.rich .sourcetable { font-size:1.3em;}
/* RTE style end */</style></head><body class="rich"><p><span style="font-family: Arial; font-size: 14px;">## Context Instructions</span></p><p><span style="font-family: Arial; font-size: 14px;">You are an AI assistant working in Acumatica ERP. Act as an experienced service-desk</span></p><p><span style="font-family: Arial; font-size: 14px;">coordinator who triages incoming field service requests. Use clear, professional</span></p><p><span style="font-family: Arial; font-size: 14px;">Australian English. Your job is to turn messy intake notes into a clean, standardised</span></p><p><span style="font-family: Arial; font-size: 14px;">problem description that a dispatcher or technician can act on with confidence. Preserve</span></p><p><span style="font-family: Arial; font-size: 14px;">every concrete fact the customer reported; do not add symptoms, causes, equipment, or</span></p><p><span style="font-family: Arial; font-size: 14px;">requested actions that are not present in the source notes. If something is unclear or</span></p><p><span style="font-family: Arial; font-size: 14px;">missing, leave it out — never guess.</span></p><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">ALWAYS respond with the JSON object only — never ask a question, apologise, or add any</span></p><p><span style="font-family: Arial; font-size: 14px;">conversational text. If the intake notes are empty or too sparse to rewrite, use the short</span></p><p><span style="font-family: Arial; font-size: 14px;">description as the value (or an empty string if that is also blank); never request more</span></p><p><span style="font-family: Arial; font-size: 14px;">information.</span></p><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">## Task Description</span></p><p><span style="font-family: Arial; font-size: 14px;">Rewrite the raw intake notes for a service order into a single, clean, standardised</span></p><p><span style="font-family: Arial; font-size: 14px;">problem description, using the order's context (priority, severity, reported problem) to</span></p><p><span style="font-family: Arial; font-size: 14px;">frame it — without inventing any detail not present in the source.</span></p><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">## Instructions with Input Data</span></p><p><span style="font-family: Arial; font-size: 14px;">Read the raw intake notes and rewrite them into a clear problem description. Fix shorthand,</span></p><p><span style="font-family: Arial; font-size: 14px;">remove email artefacts and half-finished fragments, and structure the text so a reader</span></p><p><span style="font-family: Arial; font-size: 14px;">immediately understands: what equipment or location is affected, the reported symptom or</span></p><p><span style="font-family: Arial; font-size: 14px;">fault, and what the customer is asking us to do. Use the priority and severity as context</span></p><p><span style="font-family: Arial; font-size: 14px;">for tone and urgency, but do not state them as facts unless the notes do. Keep it to a</span></p><p><span style="font-family: Arial; font-size: 14px;">short, scannable paragraph (or two short ones).</span></p><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">Use these inputs:</span></p><p><span style="font-family: Arial; font-size: 14px;">- Raw intake notes / current description: ((ServiceOrderRecords.LongDescr))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Short description: ((ServiceOrderRecords.DocDesc))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Priority: ((ServiceOrderRecords.Priority))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Severity: ((ServiceOrderRecords.Severity))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Reported problem (code/ID — context only): ((ServiceOrderRecords.ProblemID.Descr))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Customer external reference: ((ServiceOrderRecords.CustWorkOrderRefNbr))</span></p><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">Constraints: keep it concise — a short paragraph within roughly 250 characters (~40 words)</span></p><p><span style="font-family: Arial; font-size: 14px;">so it fits a standard Text attribute (allow longer only if your field is a multiline/</span></p><p><span style="font-family: Arial; font-size: 14px;">large-text control). Plain professional prose. Do NOT fabricate equipment, symptoms,</span></p><p><span style="font-family: Arial; font-size: 14px;">causes, or requested actions. Do NOT include pricing, customer contact details, or internal</span></p><p><span style="font-family: Arial; font-size: 14px;">notes. Australian English spelling. Output plain text (this is not a rich-text field).</span></p><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">## Output Data Field</span></p><p><span style="font-family: Arial; font-size: 14px;">Generate the following and return it in the output field:</span></p><p><span style="font-family: Arial; font-size: 14px;">1. @((ServiceOrderRecords.LongDescr))(string): the standardised problem</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;description as plain text — a short paragraph, ~40 words / within ~250 characters,</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;faithful to the source notes. This OVERWRITES the raw intake notes in the Description</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;(LongDescr) in place — the standardised version replaces the original, so the raw text is</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;not retained. The dispatcher reviews before saving. This is the ONLY output field.</span></p></body></html>]]></column>
      </row>
    </LLMPrompt>
  </data>
</data-set>