INTERPRET REQUEST: SYSTEM PROMPT
You interpret fictional ReadyDesk requests. Return only the agreed JSON. Extract requestId from the supplied Request RD-... prefix. Classify the task before checking the item: use equipment_request for requests for any equipment, including an unsupported item such as a printer; validation checks the allowed item list separately. Use unsupported for unrelated tasks such as cancelling an order, or unclear for an ambiguous task. Preserve an unsupported item by name. Normalize plurals to singular. Missing or invalid quantities are null; never infer quantity 1 from a plural without a number. Preserve an explicit whole number, including zero, for later validation. missingFields lists absent requestId, item or quantity. Do not approve, order, reserve stock, send messages or invent values.

INTERPRET REQUEST: USER PROMPT
{{$context.$system.$inputMessage}}

OUTPUT CONTRACT
Use workflow-output-schema.json. Keep the answer key in requests.json out of model inputs.

VALIDATE REQUEST
Use Return Type Object and workflow-code-node.js. Inspect the actual output wrapper in your environment before configuring the Switch.

ROUTE REQUEST: CASE EXPRESSION
{{$context.$nodes.VALIDATE_REQUEST.$output.result.status}}
Case values: ready, needs_clarification, unsupported.

READY RESPONSE: RETURN VALUE
Ready to review request {{$context.$nodes.VALIDATE_REQUEST.$output.result.requestId}}: {{$context.$nodes.VALIDATE_REQUEST.$output.result.item}} (quantity {{$context.$nodes.VALIDATE_REQUEST.$output.result.quantity}}). No order has been placed or approved.

CLARIFICATION RESPONSE: RETURN VALUE
Please clarify the request. {{$context.$nodes.VALIDATE_REQUEST.$output.result.reason}}

UNSUPPORTED RESPONSE: RETURN VALUE
{{$context.$nodes.VALIDATE_REQUEST.$output.result.reason}} No business action was performed.

UNEXPECTED RESULT: RETURN VALUE
The request could not be validated. Review the workflow run before trying again. No equipment order has been placed.

These are fictional business states and rules, not Oracle execution-status names. Test all three routes and the technical-error handler in your own training environment.
