﻿<?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_APPT_SUMM" IsActive="1" Name="Service Completion Summary" ConnectionID="MYOB-MANAGED" ScreenID="FS300200" ActionName="Generate Completion Summary" OutputExamples="## Output Format Example:&#xA;{&#xA;  &quot;((AppointmentRecords.LongDescr))&quot;: &quot;Attended site to investigate the reported fault on the rooftop air-handling unit. Inspected and tested the unit, replaced the failed run capacitor and a worn drive belt, and recleaned the condenser coil. Refrigerant pressures and airflow were checked and confirmed within specification on completion. Parts used: 1 x run capacitor, 1 x drive belt. Labour on site: approximately 1 hour 45 minutes. The unit was returned to normal operation and the work is complete.&quot;&#xA;}&#xA;&#xA;## Important Note:&#xA;  Return ONLY a valid JSON object with exactly the key &quot;((AppointmentRecords.LongDescr))&quot; and a&#xA;  string value. No commentary, no explanation, no markdown code fences. The value must be&#xA;  plain text (no HTML), 80–200 words, and must respect every constraint in the Instructions&#xA;  tab. Including this note 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 field service</span></p><p><span style="font-family: Arial; font-size: 14px;">technician writing up a job. Use clear, professional Australian English. Write in plain,</span></p><p><span style="font-family: Arial; font-size: 14px;">factual language a customer can understand and that also stands up as an internal service</span></p><p><span style="font-family: Arial; font-size: 14px;">record. Be concise and specific; do not exaggerate, speculate, or invent work, parts, or</span></p><p><span style="font-family: Arial; font-size: 14px;">times that are not present in the supplied data. Where information is missing, omit it</span></p><p><span style="font-family: Arial; font-size: 14px;">rather than guessing.</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;">Produce a service-completion summary for a finished appointment, describing what was done,</span></p><p><span style="font-family: Arial; font-size: 14px;">the parts and materials used, and the time spent — based only on the service description</span></p><p><span style="font-family: Arial; font-size: 14px;">and the detail lines already logged against this appointment.</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;">Write a completion summary suitable for the customer and for our records. Use the</span></p><p><span style="font-family: Arial; font-size: 14px;">appointment's overall service description as the framing of what the visit was for, then</span></p><p><span style="font-family: Arial; font-size: 14px;">summarise the work performed from the logged detail lines. Group the narrative naturally:</span></p><p><span style="font-family: Arial; font-size: 14px;">what was done (service/labour lines) and what was used (inventory/non-stock parts).</span></p><p><span style="font-family: Arial; font-size: 14px;">Reference quantities and durations where they are recorded. Close with a short, neutral</span></p><p><span style="font-family: Arial; font-size: 14px;">statement that the work is complete.</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;">- Appointment service description: ((AppointmentRecords.LongDescr))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Short appointment description: ((AppointmentRecords.DocDesc))</span></p><p><span style="font-family: Arial; font-size: 14px;">- For each logged detail line (service, labour and parts):</span></p><div data-foreach-view="AppointmentDetails"><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp; - Line type (SERVI=Service/labour, NSTKI=Non-Stock Item, SLPRO=Inventory Item/part): ((AppointmentDetails.LineType))</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp; - Line description: ((AppointmentDetails.TranDesc))</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp; - Actual quantity: ((AppointmentDetails.ActualQty))</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp; - Unit of measure: ((AppointmentDetails.UOM))</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp; - Actual duration (labour time): ((AppointmentDetails.ActualDuration))</span></p></div><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">Constraints: write 80–200 words. Plain, professional prose — no marketing language.</span></p><p><span style="font-family: Arial; font-size: 14px;">Do NOT fabricate parts, quantities, times, prices, or outcomes not present in the inputs.</span></p><p><span style="font-family: Arial; font-size: 14px;">Do NOT include internal cost, margin, or pricing figures. If a line has no description,</span></p><p><span style="font-family: Arial; font-size: 14px;">skip it rather than inventing one. Australian English spelling throughout.</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. @((AppointmentRecords.LongDescr))(string): the completion summary as plain text</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;(this field is not a rich-text field — do not emit HTML). 80–200 words. One short</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;opening line on the purpose of the visit, a summary of work performed and parts used,</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;and a closing line confirming completion. Must fit comfortably; no hard length limit on</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;this field but keep it tight.</span></p></body></html>]]></column>
      </row>
    </LLMPrompt>
  </data>
</data-set>