LEARNING / HANDS ON LABS

Your first workflow

An equipment request arrives as a sentence. Turn it into a clear request, ask for what is missing, and show a useful next step.

Use fictional ReadyDesk data in your approved training environment. Available models and controls depend on your release and permissions.

HOL-01 · 45-60 MINUTES, PLANNING ESTIMATE

What you’ll build

A small equipment-request workflow with supported, clarification and unsupported paths. It explains the next step without placing an order.

  1. Interpret the request
  2. Validate the fields
  3. Choose a route
  4. Explain the next step

Reference material is included. View the definitions, source files and setup notes for this lab to compare with your own build.

What you need

  • A Fusion sandbox with workflow-edit access and an available model.
  • The ReadyDesk data and prompts pack below. It contains original sample materials, not an importable Fusion workflow.
  • Familiarity with the Getting Started guide for Workflows / Agents.

Need the building blocks first? Getting Started with Workflows / Agents

Download starter kit (ZIP)

Start here and follow the lab steps. This kit contains the sample inputs, prompts or starting definitions for this exercise, without the finished solution. For comparison after the exercise, see Solution reference.

STEP 01

Meet the request before meeting the canvas

1.1 Read the sample requests

Open requests.json and read RD-101 through RD-106. The desk supports laptop and monitor requests with whole-number quantities from 1 to 10.

1.2 Predict the result

For RD-101, predict the item, quantity and next step. For RD-102, identify the missing fact before looking at the expected behavior.

Our business input contract

{
  "requestId": "RD-101",
  "item": "laptop",
  "quantity": 2,
  "intent": "equipment_request"
}
View and copy workflow-inputs.json
[
  {
    "requestId": "RD-101",
    "message": "Request RD-101: I need 2 laptops."
  },
  {
    "requestId": "RD-102",
    "message": "Request RD-102: I need monitors."
  },
  {
    "requestId": "RD-103",
    "message": "Request RD-103: I need 2abc laptops."
  },
  {
    "requestId": "RD-104",
    "message": "Request RD-104: I need 0 laptops."
  },
  {
    "requestId": "RD-105",
    "message": "Request RD-105: I need a printer."
  },
  {
    "requestId": "RD-106",
    "message": "Request RD-106: Cancel my purchase order."
  }
]

Why this matters. A tiny, explicit contract gives you something concrete to test. The limits are fictional lab rules, not Oracle product limits.

Checkpoint

You can explain why a missing quantity needs a question and why an unknown item is outside this desk’s scope.

If you get stuck

Use the request text, not assumptions about the person asking. There are no employee records in this exercise.

Official reference: Create Workflows

STEP 02

Create a workflow you own

2.1 Create a learner-owned draft

In Workflows, select Add and create a workflow with your own lab prefix, such as LAB01_ReadyDesk_Request. Complete Agent Team Name, Agent Team Code, Family, Product and Description. The screenshot is an unsaved fictional example.

Create your workflow draft

Use your own lab prefix for the workflow name and code. Configure the model and access after creating the draft.

Create your workflow draft in the fictional ReadyDesk training configuration.

2.2 Review model and sandbox access settings

After creating the draft, open workflow Settings. Select an available model under LLM and use administrator-approved sandbox access under Security. Do not copy another environment’s role assignments. The initial creation form does not contain these settings.

Review the loaded model controls

The workflow LLM settings have finished loading. The selected model and parameter values are examples, not recommendations.

Review the loaded model controls.

2.3 Add and connect the nodes

Add an LLM node called Interpret Request, a Code node called Validate Request and a Switch called Route Request. Add ready, needs_clarification and unsupported response paths, each ending in a Return node. Connect Start to Interpret Request and connect the remaining nodes explicitly; adding from the palette alone does not connect a node.

Add the building blocks

The palette supplies nodes. Connect each node explicitly; the finished canvas below is the connection checkpoint.

Add the building blocks in the fictional ReadyDesk training configuration.
Connected ReadyDesk workflow

Follow Start through Interpret Request, Validate Request and Route Request. Unexpected Result is selected through Error Handler settings rather than a normal branch.

ReadyDesk workflow showing interpretation, validation, three response branches and an error-handler Return.

2.4 Keep the flow readable

Keep the workflow in your sandbox. Use comments or the canvas layout to make the flow easy to follow.

Why this matters. Node names should describe their jobs. You should be able to read the intended process without opening every prompt.

Checkpoint

The canvas has a clear entry, explicit routes and a response for every supported outcome.

If you get stuck

If creation is unavailable, check your workflow authoring permissions and selected family and product.

Official reference: Create Workflows

STEP 03

Ask the model to interpret, not approve

3.1 Insert the prompts and current message

Use the System Prompt and User Prompt in first-workflow-prompts.txt. Select the input message expression {{$context.$system.$inputMessage}}. Use workflow-inputs.json for input-only messages and keep the answer key out of the model input.

Find the current input message

Insert expression > System exposes Input Message. The saved expression is included in the prompt file below.

Find the current input message in the fictional ReadyDesk training configuration.
Interpret the request

The system instructions separate task classification from item validation. The user prompt receives the current input message; the complete prompt and schema are in the download.

Interpret Request prompt editor in the learner-owned ReadyDesk workflow.

3.2 Set the model output contract

Use workflow-output-schema.json as the output contract. Classify the task before checking the item list: a request for a printer is still equipment_request, and validation handles that unsupported item. An unrelated cancellation is unsupported. Missing or invalid quantities remain null.

Set the interpretation contract

Output Specification describes the fields the LLM must return. Copy the complete schema below rather than transcribing the image.

Set the interpretation contract in the fictional ReadyDesk training configuration.

3.3 Inspect the interpreted fields

Run RD-101 and inspect the actual model output before wiring the next node.

Expected business facts for RD-102; not an Oracle output envelope

{
  "requestId": "RD-102",
  "item": "monitor",
  "quantity": null,
  "missingFields": [
    "quantity"
  ],
  "intent": "equipment_request"
}
View and copy first-workflow-prompts.txt
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.
View and copy workflow-output-schema.json
{
  "type": "object",
  "properties": {
    "requestId": {
      "type": [
        "string",
        "null"
      ]
    },
    "intent": {
      "type": "string",
      "enum": [
        "equipment_request",
        "unsupported",
        "unclear"
      ]
    },
    "item": {
      "type": [
        "string",
        "null"
      ]
    },
    "quantity": {
      "type": [
        "integer",
        "null"
      ]
    },
    "missingFields": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "requestId",
    "intent",
    "item",
    "quantity",
    "missingFields"
  ],
  "additionalProperties": false
}

Why this matters. Language understanding and deterministic validation have different responsibilities. A fluent interpretation is not a validated request.

Checkpoint

The known request becomes laptop and quantity 2. The missing-quantity request is not quietly assigned quantity 1.

If you get stuck

Inspect the actual output structure. Correct the prompt/output specification if types or fields differ. Do not assume every node exposes the same outer JSON wrapper.

Official reference: Configure an LLM Node

STEP 04

Validate the fields explicitly

4.1 Set the Code return type and binding

Choose Return Type Object for Validate Request. The checked workflow-code-node.js binds the original validation function to $context.$nodes.INTERPRET_REQUEST.$output.

Bind validation to interpretation

The final call passes the Interpret Request output into the validation function. The complete source is copyable below.

Bind validation to interpretation in the fictional ReadyDesk training configuration.
Verify Return Type Object

This new view shows Object selected for Validate Request, with Unexpected Result as its error handler.

Verify Return Type Object.

4.2 Check the supplied cases

The six sample cases exercise a complete request, a missing quantity, malformed quantity, zero, an unsupported item and an unrelated task.

4.3 Inspect the actual output wrapper

Inspect the Code node output. For the supplied workflow, the status expression is $context.$nodes.VALIDATE_REQUEST.$output.result.status. Use the expression picker to select that result field.

Inspect the actual Code result

RD-101 produced status ready, item laptop and quantity 2 under result. This checks the business facts and the output path used downstream.

ReadyDesk debugger showing the ready response and the validation result object.

Authored validation outcome

{
  "status": "needs_clarification",
  "reason": "Provide a whole-number quantity from 1 to 10."
}
View and copy workflow-code-node.js
'use strict';
/* ReadyDesk training rules. Fictional data; no business writes. */
function validateRequest(input) {
  if (!input || typeof input !== 'object' || Array.isArray(input)) {
    return {status: 'needs_clarification', reason: 'Provide the request fields.'};
  }
  if (input.intent === 'unsupported') return {status: 'unsupported', reason: 'This desk handles equipment requests only.'};
  if (input.intent !== 'equipment_request') return {status: 'needs_clarification', reason: 'Clarify the requested task.'};
  const requestId = typeof input.requestId === 'string' ? input.requestId.trim() : '';
  const item = typeof input.item === 'string' ? input.item.trim().toLowerCase() : '';
  if (item && !['laptop', 'monitor'].includes(item)) {
    return {status: 'unsupported', reason: 'This desk handles laptop and monitor requests only.'};
  }
  if (!requestId || !item) {
    return {status: 'needs_clarification', reason: 'Provide a request ID and supported item.'};
  }
  const raw = input.quantity;
  // Reject blanks, booleans, trailing text and fractional notation rather than guessing.
  const validType = typeof raw === 'number' || (typeof raw === 'string' && /^\d+$/.test(raw.trim()));
  const quantity = validType ? Number(raw) : NaN;
  if (!Number.isInteger(quantity) || quantity < 1 || quantity > 10) {
    return {status: 'needs_clarification', reason: 'Provide a whole-number quantity from 1 to 10.'};
  }
  return {status: 'ready', requestId, item, quantity, nextStep: 'Review the request; no order has been placed.'};
}

return validateRequest($context.$nodes.INTERPRET_REQUEST.$output);

Why this matters. This is the boundary where malformed or incomplete input must stop looking like an accepted request.

Checkpoint

Quantity "2abc", zero and an unknown item are not accepted. A missing quantity takes the clarification path.

If you get stuck

Compare the Code return type and actual returned object with the next node. Separate a lab validation outcome from a node execution error.

Official reference: Nodes in Workflows

STEP 05

Route on the reviewed validation result

5.1 Match the exact status values

Set Case Expression to {{$context.$nodes.VALIDATE_REQUEST.$output.result.status}}. Add the exact values ready, needs_clarification and unsupported, and connect each output to its matching Return node.

Route on the validated status

Use the exact validation status strings. Follow each connector to the matching Return node and inspect the selected branch in a test run.

Route Request settings showing the case expression, ready, needs_clarification and unsupported.

5.2 Configure the technical error handler

Add an Unexpected Result Return and select it as the Error Handler for Interpret Request, Validate Request and Route Request. Test this route separately from normal validation outcomes.

Assign the technical error handler

Interpret Request points to Unexpected Result. Assign the same handler to Validate Request and Route Request.

Assign the technical error handler in the fictional ReadyDesk training configuration.

5.3 Follow the selected branch

Test RD-101 and RD-102. Follow the highlighted branch and inspect the actual value used by the Switch.

Inspect the evaluated Switch input

Inspect the evaluated Switch input. Compare the fields and selections with your training configuration.

Inspect the evaluated Switch input.

Why this matters. A correct final sentence can hide a wrong route. The branch itself is part of the behavior you are checking.

Checkpoint

A supported request reaches ready. Missing quantity reaches needs_clarification. An unsupported desk item is not sent down the order-ready path.

If you get stuck

If the wrong case runs, inspect the preceding output and the Switch input before moving branch labels or rewriting the final response.

Official reference: Get Started with the Debugger

STEP 06

Write the response from facts

6.1 Bind the saved Return values

Use the Return-value expressions in first-workflow-prompts.txt. These responses are deterministic so the validated facts are preserved without another LLM call.

Return the reviewed ready facts

The ready response uses validation fields and explicitly preserves the no-order and no-approval boundary.

Return the reviewed ready facts in the fictional ReadyDesk training configuration.
Return the clarification reason

The clarification response uses the reason returned by validation rather than inferring missing values.

Return the clarification reason in the fictional ReadyDesk training configuration.
Return the unsupported result

The unsupported response preserves the reason and makes no business-action claim.

Return the unsupported result in the fictional ReadyDesk training configuration.

6.2 Preserve the reviewed business facts

For ready, summarize the item and quantity and explain that this lab has not placed an order. For clarification, ask one specific question. For unsupported, explain the desk’s scope.

6.3 Repeat and compare

Repeat the same case twice and check the facts, not identical wording.

View and copy first-workflow-prompts.txt
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.

Why this matters. The response should preserve the decision made by the preceding steps rather than inventing a successful transaction.

Checkpoint

The actual returned text preserves the item and quantity on ready, asks for quantity when needed, and explains unsupported scope. A generic Done with an empty Return value does not meet this check.

If you get stuck

If correct validation facts become an incorrect summary, inspect the final node’s input and instructions. Preserve the facts before adjusting tone.

Official reference: Configure an LLM Node

STEP 07

Run the whole set and leave a clean workflow

7.1 Check the sample inputs

Use lab-run-sheet.csv to keep your inputs and results together.

7.2 Run the complete check set

Use the test table below as your review sheet. Record the actual route and the business facts for each case.

Ask for missing information

RD-102 asks for a whole-number quantity instead of silently assigning one.

ReadyDesk debugger showing clarification for a monitor request without a quantity.
Keep unsupported items out of the ready path

RD-105 reaches unsupported and explains the supported item list. The final response does not claim a completed business action.

ReadyDesk debugger showing the unsupported result for a printer request.
Select the named run profile

The saved RD-101 Chat profile is selected and Run active profile is available.

Select the named run profile.
Check the saved profile execution

Run active profile submitted its saved RD-101 prompt and returned laptop quantity 2, with no approval or order claim.

Check the saved profile execution.

7.3 Clear temporary debugging aids

Inspect at least one node input/output pair. Clear temporary pins, mocks, breakpoints and overrides before the final full runs.

7.4 Keep the intended draft

Keep your learner-owned draft as the completed lab. Recheck the workflow after changes to prompts, model, code or bindings.

View and copy lab-run-sheet.csv
lab,case,sample_input_or_action,expected_behavior,actual_result,evidence_reference,source_version,open_issue,review_decision
HOL-01,HOL-01-01,RD-101: I need 2 laptops.,"laptop, 2; ready path; no order-completed claim.",,,,,
HOL-01,HOL-01-02,RD-102: I need monitors.,Ask for quantity; do not assign a default.,,,,,
HOL-01,HOL-01-03,RD-103: I need 2abc laptops.,Quantity is not accepted as the integer 2.,,,,,
HOL-01,HOL-01-04,RD-104: I need 0 laptops.,Ask for a quantity within the authored range.,,,,,
HOL-01,HOL-01-05,RD-105: I need a printer.,Explain the supported item list.,,,,,
HOL-01,HOL-01-06,RD-106: Cancel my purchase order.,Unsupported intent; no business action.,,,,,
HOL-01,HOL-01-07,Request 10 monitors with a request ID.,"Ready for desk review, without approval or order claims.",,,,,
HOL-01,HOL-01-08,Request 11 laptops with a request ID.,Ask for a whole-number quantity from 1 to 10.,,,,,
HOL-01,HOL-01-09,Temporarily override the Code node to produce a controlled execution error in the debugger.,Unexpected Result Return runs; it does not claim an order was placed.,,,,,
HOL-01,HOL-01-10,"Compare your workflow with the solution reference, then repeat supported, missing quantity, unsupported item, zero and fractional quantity messages.",The three routes preserve the fictional rules. A fractional quantity requires clarification; a reference file is not proof of a working setup in your environment.,,,,,

Why this matters. A single successful answer does not exercise the clarification, invalid-data and unsupported paths.

Checkpoint

Each sample request takes its expected branch and returns a response consistent with the validated fields.

If you get stuck

A missing dependency or tool error is not a passed negative case. Record it separately and resolve it before declaring the lab complete.

Official reference: Get Started with the Debugger

CHECK YOUR BUILD

Test your result

Try these inputs and compare the response with the expected behavior.

Try thisExpected behavior
RD-101: I need 2 laptops.laptop, 2; ready path; no order-completed claim.
RD-102: I need monitors.Ask for quantity; do not assign a default.
RD-103: I need 2abc laptops.Quantity is not accepted as the integer 2.
RD-104: I need 0 laptops.Ask for a quantity within the authored range.
RD-105: I need a printer.Explain the supported item list.
RD-106: Cancel my purchase order.Unsupported intent; no business action.
Request 10 monitors with a request ID.Ready for desk review, without approval or order claims.
Request 11 laptops with a request ID.Ask for a whole-number quantity from 1 to 10.
Temporarily override the Code node to produce a controlled execution error in the debugger.Unexpected Result Return runs; it does not claim an order was placed.
Compare your workflow with the solution reference, then repeat supported, missing quantity, unsupported item, zero and fractional quantity messages.The three routes preserve the fictional rules. A fractional quantity requires clarification; a reference file is not proof of a working setup in your environment.

MAKE THE LEARNING STICK

Finish and reflect

One more challenge: What changes if a user asks for both a laptop and a monitor in one sentence?

Our first contract allows one item per request. Ask the user to separate the requests, or deliberately extend the contract to multiple items and add tests. Do not silently discard one item.

Your notes

Keep useful inputs, results and reminders here. These notes are not saved or sent anywhere. Copy them before leaving this page.

COMPARE YOUR BUILD

Solution reference

Use these files to compare your build. Configure the listed dependencies and your own private credentials separately.

Workflow definition and checks

Reference files, not a one-click installation package.

Download reference pack (ZIP)
Dependencies and setup
  • Select a model configuration available in your environment.
  • Review node bindings and repeat the lab tests before using a copied definition.
Files in this reference packDownload file checksums

Official references

Public Oracle sources explain the product behavior. ReadyDesk, its policies, sample prompts and business rules are original fictional teaching content.

FIND YOUR NEXT STEP

Search & Ask

Search the guides, articles, books, and updates on this site.

Answers use this site’s published text and resource descriptions. Linked documents aren’t read automatically.

Search stays on this device. Optional AI may require a browser-managed model download.