﻿<?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="POVENDINSTR" IsActive="0" Name="Draft Purchase Order Supplier Instructions (CUST)" ConnectionID="MYOB-MANAGED" ScreenID="PO301000" ActionName="Draft Vendor Instructions">
        <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 purchasing officer</span></p><p><span style="font-family: Arial; font-size: 14px;">writing a short, professional cover note to a supplier. Write in clear, courteous</span></p><p><span style="font-family: Arial; font-size: 14px;">Australian English aimed at the vendor's despatch and delivery team — practical and</span></p><p><span style="font-family: Arial; font-size: 14px;">unambiguous, not marketing. Describe only what the order data states — never invent a</span></p><p><span style="font-family: Arial; font-size: 14px;">delivery window, site access rule, packaging/handling requirement, dock number or contact</span></p><p><span style="font-family: Arial; font-size: 14px;">that is not present in the inputs. The output is vendor-facing delivery and handling</span></p><p><span style="font-family: Arial; font-size: 14px;">instructions that will be placed on the purchase order we send, so it must be clean,</span></p><p><span style="font-family: Arial; font-size: 14px;">correct and ready to include as-is.</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 purchase order's header details, its ship-to address and its line items,</span></p><p><span style="font-family: Arial; font-size: 14px;">draft clear, professional vendor instructions (a PO cover note): who the order is from,</span></p><p><span style="font-family: Arial; font-size: 14px;">where and by when to deliver, how it is being shipped, and a brief summary of what is on</span></p><p><span style="font-family: Arial; font-size: 14px;">the order — suitable to print on or email with the purchase order.</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 purchase order header details:</span></p><p><span style="font-family: Arial; font-size: 14px;">- Vendor: ((Document.VendorID.AcctName))</span></p><p><span style="font-family: Arial; font-size: 14px;">- PO description (short): ((Document.OrderDesc))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Order date: ((Document.OrderDate))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Promised (expected) delivery date: ((Document.ExpectedDate))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Payment terms: ((Document.TermsID))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Ship via / carrier: ((Document.ShipVia))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Ship-to (account): ((Document.ShipToBAccountID.AcctName))</span></p><p><span style="font-family: Arial; font-size: 14px;">- Shipping location: ((Document.ShipToLocationID))</span></p><p><span style="font-family: Arial; font-size: 14px;"><br></span></p><p><span style="font-family: Arial; font-size: 14px;">Ship-to delivery address:</span></p><p><span style="font-family: Arial; font-size: 14px;">- ((Shipping_Address.AddressLine1)) ((Shipping_Address.AddressLine2)), ((Shipping_Address.City)) ((Shipping_Address.State)) ((Shipping_Address.PostalCode)) ((Shipping_Address.CountryID))</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 order contents. The order lines repeat via an HTML data-foreach-view</span></p><p><span style="font-family: Arial; font-size: 14px;">block (one repeating element per line):</span></p><div data-foreach-view="Transactions">- Item: ((Transactions.InventoryID)) — Description: ((Transactions.TranDesc)) — Qty: ((Transactions.OrderQty)) ((Transactions.UOM))</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 brief line stating this is a purchase order and the promised delivery date if</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; present.</span></p><p><span style="font-family: Arial; font-size: 14px;">- State the delivery address clearly, and the carrier / ship-via and payment terms in plain</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; language if present.</span></p><p><span style="font-family: Arial; font-size: 14px;">- Summarise the ordered items. If there are more than about six lines, give a rolled-up</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; description (e.g. "12 line items across fixings and fittings") rather than listing every</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; line.</span></p><p><span style="font-family: Arial; font-size: 14px;">- Include any delivery, packaging or handling guidance ONLY if it is explicitly present in</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; the line descriptions or PO description. Do NOT fabricate a delivery window, dock number,</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; site contact, hazard class, packaging spec or handling instruction that is not in the</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; inputs. If a field is blank, omit it gracefully.</span></p><p><span style="font-family: Arial; font-size: 14px;">- Structure it as short labelled sections or short paragraphs (e.g. Delivery address,</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; Required by, Shipping, Items) so the vendor can scan it. Plain text only — no HTML, no</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; markdown. There is NO 60-character limit on the output field; be complete but concise.</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. @((Document.UsrMYDEVendorInstructions))(string): plain-text vendor instructions / PO cover note</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;for the dedicated multiline "Vendor Instructions" field on the purchase order. Lead with</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;the required-by (promised) date if present, then the delivery address, then shipping</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;method and terms, then a brief contents summary. Use line breaks between sections for</span></p><p><span style="font-family: Arial; font-size: 14px;">&nbsp; &nbsp;scannability. No HTML, no markdown. There is NO 60-character limit on this field.</span></p></body></html>]]></column>
        <column name="OutputExamples"><![CDATA[## Output Format Example:
{
  "((Document.UsrMYDEVendorInstructions))": "PURCHASE ORDER — DELIVERY INSTRUCTIONS\n\nRequired by: 15 Jul 2026 (promised).\n\nDeliver to:\n12 Dock Road, Unit 4\nBotany NSW 2019 AU\n\nShipping: Road Freight. Terms: 30 Days.\n\nItems (3 lines):\n- FILTER-20 Air filter cartridge — 24 EA\n- SEAL-KIT Gasket & seal kit — 6 EA\n- CLEANER-5L Degreaser 5L — 4 EA\n\nPlease palletise and label each pallet with our PO number. Notify our stores desk on arrival."
}

## Important Note:
Return ONLY a single valid JSON object with exactly the key
"((Document.UsrMYDEVendorInstructions))" and no other keys. The value must be a plain-text string
(no HTML, no markdown). Do not wrap the response in markdown code fences, do not add
commentary before or after the JSON, and respect the content constraints stated in the
Instructions tab (no fabricated delivery windows, contacts, hazards or handling rules).
Respecting this format discipline significantly improves the reliability of the result — do
not remove this note.]]></column>
      </row>
    </LLMPrompt>
  </data>
</data-set>