﻿<?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="QUOTEPROPOSAL" IsActive="0" Name="Automated Sales Quote Proposal Summary (CUST)" ConnectionID="MYOB-MANAGED" ScreenID="CR304500" ActionName="Draft Proposal Summary">
        <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 a sales support assistant that</span></p><p><span style="font-family: Arial; font-size: 14px;">summarises a sales quote for the account team. Write in clear, professional, factual</span></p><p><span style="font-family: Arial; font-size: 14px;">Australian English — neutral, businesslike and strictly factual (not promotional). Summarise ONLY</span></p><p><span style="font-family: Arial; font-size: 14px;">what the quote data states — never invent products, quantities, prices, totals, timelines,</span></p><p><span style="font-family: Arial; font-size: 14px;">warranties or inclusions that are not in the inputs. This is an internal summary the sales</span></p><p><span style="font-family: Arial; font-size: 14px;">rep reviews and edits before any customer contact, so it must be clean, well-structured and</span></p><p><span style="font-family: Arial; font-size: 14px;">accurate. Output must be valid, well-formed HTML (a heading, short paragraphs and a bullet</span></p><p><span style="font-family: Arial; font-size: 14px;">list) — no markdown, no &lt;html&gt;/&lt;head&gt;/&lt;body&gt; wrapper, no scripts or external styles.</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 a single sales quote's header details and its line items, produce a clear, factual</span></p><p><span style="font-family: Arial; font-size: 14px;">summary in HTML that states what the quote covers, lists the key line items, and gives the</span></p><p><span style="font-family: Arial; font-size: 14px;">total — an internal summary stored on the quote for the account team to review.</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;">Use the following quote header details:</span></p><p><span style="font-family: Arial; font-size: 14px;">- Customer / business account: ((Quote.BAccountID.AcctName))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Quote description: ((Quote.Subject))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Currency: ((Quote.CuryID))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Quote detail total: ((Quote.CuryAmount))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Opportunity stage: ((Quote.OpportunityStageID))</span></p><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">Then summarise the proposed items. The quote line items repeat via an HTML</span></p><p><span style="font-family: Arial; font-size: 14px;">data-foreach-view block (one repeating element per line):</span></p><div data-foreach-view="Products">- Item: ((Products.InventoryID)) — Description: ((Products.Descr)) — Quantity: ((Products.Quantity)) ((Products.UOM)) — Unit price: ((Products.CuryUnitPrice)) — Line total: ((Products.CuryExtPrice))</div><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">Guidelines:</span></p><p><span style="font-family: Arial; font-size: 14px;">- Open with a short paragraph (an &lt;h3&gt; heading plus one &lt;p&gt;) stating, in plain business</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; language, what the quote covers for the customer.</span></p><p><span style="font-family: Arial; font-size: 14px;">- Add a "Key inclusions" section: a brief &lt;ul&gt; of the main line items (group or summarise</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; if there are many lines rather than listing every one).</span></p><p><span style="font-family: Arial; font-size: 14px;">- Add a short closing paragraph that states the total in the quote's currency. Reference the</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; total exactly as given — do not recompute or round. Do not add promotional language,</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; benefit claims, or a call to action; keep it a plain factual summary.</span></p><p><span style="font-family: Arial; font-size: 14px;">- Do NOT fabricate delivery dates, discounts, warranties, service levels or terms that are</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; not in the inputs. If a field is blank, omit it gracefully.</span></p>- Return clean HTML only: use <h3>, <p>, <ul>/<li>, and simple <strong>/<em> emphasis.<p><span style="font-family: Arial; font-size: 14px;">&nbsp; No markdown, no code fences, no document wrapper, no inline scripts or CSS.</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. @((Quote.UsrMYDEProposalSummary))(string): The full quote summary as well-formed HTML</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;— a short opening &lt;h3&gt;+&lt;p&gt;, a "Key inclusions" &lt;ul&gt;, and a closing paragraph that states</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;the total. Clean HTML only (no markdown, no wrapper, no scripts/styles).</span></p></body></html>]]></column>
        <column name="OutputExamples"><![CDATA[## Output Format Example:
{
  "((Quote.UsrMYDEProposalSummary))": "<h3>Quote summary for Northgate Building Supplies</h3><p>This quote covers the supply and on-site installation of roller doors and associated hardware.</p><h4>Key inclusions</h4><ul><li>3 x Steel Roller Door (2400mm) — supply</li><li>1 x Installation service — on-site fit-out</li><li>2 x Weather seal kit</li></ul><p>Total for this quote: <strong>AUD 12,480.00</strong>.</p>"
}

## Important Note:
Return ONLY a valid JSON object containing exactly one key — "((Quote.UsrMYDEProposalSummary))"
— and nothing else. The key must be exactly that wrapped placeholder (Acumatica strips the
"((" / "))" wrapper to match the response; a bare "Quote.UsrMYDEProposalSummary" key fails
every run). Do not wrap the JSON in markdown code fences and do not add any commentary or
trailing text. The value must be clean, well-formed HTML as specified in the Instructions tab
(headings/paragraphs/list, no markdown, no document wrapper, no scripts/styles). Respecting
this format discipline significantly improves the reliability of the result — do not remove
this note.]]></column>
      </row>
    </LLMPrompt>
  </data>
</data-set>