﻿<?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="DFR_NARRATIVE" IsActive="0" Name="Daily Field Report - Draft Narrative (CUST)" ConnectionID="MYOB-MANAGED" ScreenID="PJ304000" ActionName="Draft Daily Narrative" OutputExamples="## Output Format Example:&#xA;{&#xA;  &quot;((DailyFieldReport.UsrMYDEDFRNarrative))&quot;: &quot;&lt;p&gt;Concreting crew (4 workers) was on site from 0700 to 1530 pouring the Level 2 slab, supported by an excavator and a concrete pump. Conditions were overcast with light rain from around midday; work continued without stoppage.&lt;/p&gt;&lt;p&gt;The concrete pump delivery arrived approximately one hour late, briefly delaying the start of the pour. This delay has been noted for a potential variation claim.&lt;/p&gt;&quot;&#xA;}&#xA;&#xA;## Important Note:&#xA;  Return ONLY a valid JSON object with exactly the key shown above and no other keys. No&#xA;  commentary, no explanation, no markdown code fences. The value must be a well-formed HTML&#xA;  string (&lt;p&gt; paragraphs, optionally a short &lt;ul&gt; of key events), with no wrapper/script/style&#xA;  tags and no markdown, matching the format rules in the Instructions tab.">
        <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 construction</span></p><p><span style="font-family: Arial; font-size: 14px;">site supervisor writing the end-of-day entry for a project's daily field report. Write in</span></p><p><span style="font-family: Arial; font-size: 14px;">clear, factual Australian English, in a professional site-record tone — plain past-tense</span></p><p><span style="font-family: Arial; font-size: 14px;">statements of what happened on site, suitable for the permanent project record and for</span></p><p><span style="font-family: Arial; font-size: 14px;">later reference in variation claims or disputes. Be concise and specific. Do NOT invent</span></p><p><span style="font-family: Arial; font-size: 14px;">details, weather, headcounts, times or events that are not present in the supplied data;</span></p><p><span style="font-family: Arial; font-size: 14px;">if a category has no entries, omit it rather than filling a gap.</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;">From the labour, equipment, weather and issue entries already recorded against this daily</span></p><p><span style="font-family: Arial; font-size: 14px;">field report, write a single coherent end-of-day narrative summarising the day on site.</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;">Summarise the day using only the entries below. Group the narrative logically: labour on</span></p><p><span style="font-family: Arial; font-size: 14px;">site first, then equipment used, then weather/site conditions, then any issues, delays or</span></p><p><span style="font-family: Arial; font-size: 14px;">notes. Use whole-sentence prose, not bullet lists. Refer to the report date and project</span></p><p><span style="font-family: Arial; font-size: 14px;">where natural.</span></p><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">- Report date: ((DailyFieldReport.Date))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Site address / location: ((DailyFieldReport.SiteAddress)), ((DailyFieldReport.City))</span></p><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">Labour on site (subcontractor activity — iterate every line):</span></p><div data-foreach-view="Subcontractors"><p><span style="font-family: Arial; font-size: 14px;">- Trade / activity: ((Subcontractors.Description))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Number of workers: ((Subcontractors.NumberOfWorkers))</span></p><p><span style="font-family: Arial; font-size: 14px;">- On site from: ((Subcontractors.TimeArrived)) to ((Subcontractors.TimeDeparted))</span></p></div><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">Labour on site (employee activity — iterate every line):</span></p><div data-foreach-view="EmployeeActivities"><p><span style="font-family: Arial; font-size: 14px;">- Activity / task: ((EmployeeActivities.Summary))</span></p></div><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">Equipment used (iterate every line):</span></p><div data-foreach-view="Equipment"><p><span style="font-family: Arial; font-size: 14px;">- Equipment: ((Equipment.EquipmentDescription))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Note: ((Equipment.Description))</span></p></div><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">Weather and site conditions (iterate every observation):</span></p><div data-foreach-view="Weather"><p><span style="font-family: Arial; font-size: 14px;">- Conditions: ((Weather.Description))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Sky: ((Weather.SkyState)); Precipitation: ((Weather.Precipitation));</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; Temperature band: ((Weather.Temperature)); Wind: ((Weather.WindPower))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Observed at: ((Weather.TimeObserved))</span></p></div><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">Issues, delays and notes (iterate every line):</span></p><div data-foreach-view="Notes"><p><span style="font-family: Arial; font-size: 14px;">- Note: ((Notes.Description))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Logged at: ((Notes.Time))</span></p></div><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">Linked project issues (iterate every line):</span></p><div data-foreach-view="ProjectIssues"><p><span style="font-family: Arial; font-size: 14px;">- Issue: ((ProjectIssues.ProjectIssueId.Summary))</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 factually from the entries above; do not fabricate. If a section has no</span></p><p><span style="font-family: Arial; font-size: 14px;">entries, leave it out entirely. The target is a multiline long-text field, so write a full</span></p><p><span style="font-family: Arial; font-size: 14px;">end-of-day narrative — typically 1–3 short paragraphs — covering labour, equipment, weather</span></p><p><span style="font-family: Arial; font-size: 14px;">and any issues/delays. Prioritise significant events over routine detail; there is no tight</span></p><p><span style="font-family: Arial; font-size: 14px;">character cap, but stay tight and factual rather than padding.</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. @((DailyFieldReport.UsrMYDEDFRNarrative))(string): The end-of-day narrative as well-formed</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;HTML. Use whole sentences in one to three &lt;p&gt; paragraphs; where it aids scanning you may add</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;a short &lt;ul&gt; of key events (labour, equipment, weather, issues/delays). Clean HTML only —</span></p><p>, <ul>, <li>, <strong>; no <html>/<body>/wrapper, script or style tags, and no markdown.</body></html>]]></column>
      </row>
    </LLMPrompt>
  </data>
</data-set>