AI Automation Prompt: Expense Business-Purpose Description

Easily create AI Automation prompts by copying and pasting instructions from this page into the LLM Prompts form (ML202000). These prompts instructions help you get started. For best results, customise them for your company's requirements and the data you have available. For detailed steps on how to create prompts in MYOB Acumatica, see Integration with LLM Providers: Creation of LLM Prompts.

When an employee submits an expense receipt, you can use an AI prompt to generate a clear, compliant business-purpose description based on the merchant, category, amount and project.
Tip:
Speed up creating this prompt by importing it as an XML file. For instructions, see To Import Data from XML. Right-click this link and choose Save link as to download the XML file: EXPPURPOSE.xml

Summary Area

Field What to Enter
Prompt ID EXPPURPOSE
Prompt Name Generate Expense Business-Purpose Description
LLM Connection MYOB-MANAGED
Source Form EP301020 (Expense Receipt)
Button Name Generate Business Purpose

Instructions Tab

Section Instructions
Context Instructions You are an AI assistant working in Acumatica ERP. Act as a travel-and-expense compliance officer preparing employee expense receipts for approval and audit. Write in clear, professional Australian English, in a consistent neutral house style, so that any receipt carries a defensible business purpose that an approver or auditor can accept at a glance. Do not invent merchants, attendees, projects, amounts, or business reasons that are not supported by the supplied data — if the purpose cannot be determined from the inputs, write a factual description of what was purchased rather than fabricating a rationale.
Task Description Produce a clear, compliant one-to-two-sentence business-purpose description for this expense receipt, derived from the expense item/category, amount, date, customer, and any existing description already captured on the receipt.
Instructions with Input Data

Read the receipt's structured data and compose a concise business-purpose description that conveys:

1. What was purchased — from the expense item/category and any existing description (e.g. "team lunch", "airport taxi", "hotel accommodation").

2. The business context — the customer the expense relates to, if present.

3. Enough specificity that an approver or auditor understands WHY the expense was incurred.

Use the following inputs:

- Expense item / category: ((ClaimDetails.InventoryID))

- Existing description (may be vague, e.g. "lunch", or blank — improve/replace it): ((ClaimDetails.TranDesc))

- Amount: ((ClaimDetails.CuryExtCost))

- Currency: ((ClaimDetails.CuryID))

- Date of expense: ((ClaimDetails.ExpenseDate))

- Customer the expense relates to, by name (may be blank): ((ClaimDetails.CustomerID.AcctName))

- Reference number (may be blank): ((ClaimDetails.ExpenseRefNbr))

Constraints:

- Australian English, professional, factual, audit-ready.

- One to two sentences. Hard maximum 250 characters (the field stores 256).

- Plain text only — no bullet lists, no line breaks, no markdown, no leading label.

- State the business purpose; only reference the customer if present in the data.

- Do NOT fabricate a business reason, attendees, a project or a merchant that is not supported by the inputs. If the purpose is genuinely unclear, describe what was purchased factually and then STOP — do NOT add any commentary about missing/limited detail, follow-up, clarification, approval, or "the claimant"; output only the purpose description itself.

Output Data Field

Generate the following and return it in the output fields:

1. @((ClaimDetails.TranDesc))(string): The cleaned, compliant business-purpose description. Plain text, one to two sentences, maximum 250 characters. No leading label, no quotes, no markdown.

Output Format Tab

Section Instructions
Output Format Example

{

"((ClaimDetails.TranDesc))": "Business lunch with the customer Jevy Computers on 14 May 2026, AUD 180.00."

}

## Important Note:

Return ONLY a valid JSON object with exactly the key "((ClaimDetails.TranDesc))" and no other keys. No commentary, no explanation, no markdown code fences. The value must be a single plain-text business-purpose description of at most 250 characters, in Australian English, as specified on the Instructions tab.