Skip to content

Business Objects

A Business Object is a reusable AI Agent Studio resource that defines which operations a workflow or agent can call on an application REST resource. For example, a supplier Business Object can expose a function that retrieves one supplier's status. Each function defines an operation, its inputs, and the fields callers can use from its response.

Create a Business Object

  1. In Oracle Fusion Applications, open Navigator > Tools > AI Agent Studio.
  2. Select Resources > Business Objects. Search for an existing object before creating one. Use View to inspect a delivered object or Duplicate to use an existing object as a starting point.
  3. Select Add and fill in the object details.
  4. Add at least one function under Business Object Functions. Review its request and response example before saving.
  5. Select Create or Create and Close.
Field What to enter
Name A name that identifies the application resource, such as Suppliers.
Family and Product The product classification used to find and select the object in Studio.
Code The identifier Studio generates from the name.
Description The records the object represents and the operations it exposes.
Resource Type The source of the REST resource. Choose the type that matches the API.
Resource Path The base REST resource path. For Other Data Source Application, this field is read-only and you enter the path on each function. Verify the resolved path, especially for child resources and actions.

Resource types

Resource type When to use it
Monolith resource A REST resource served by the main Fusion Applications application, such as the Procurement Suppliers API.
Spectra resource A REST resource served by a Fusion Spectra service.
Other resource type A resource that uses a different provider. Select the provider offered for the endpoint you are configuring.
Other Data Source Application A REST resource in a registered Oracle data source application. See Data Source Applications to register the connection, select it in the builder, and configure the function's REST path.

Define the functions

Select Add function to define an operation manually. Where the resource supports OpenAPI discovery, use Add from Specification to select an operation from its specification. To start from an existing request, select Import under Business Object Functions, choose cURL command or Postman collection, and review the imported operations before saving.

Function setting How to configure it
Name and Description Identify the operation and describe when to use it, which inputs it needs, and what it returns.
Operation Type Choose GET, POST, PATCH, PUT, or DELETE according to the API contract.
Resource Path Set the operation's path. For a single record, include the path parameter, such as {SupplierId}, wherever the endpoint expects it.
Use Native Authentication Select Yes to use Studio's native authentication. Select No when the operation requires a custom authentication header. In that case, configure the header without embedding secrets in examples or descriptions.
Parameters Add or review the values substituted into the path, query string, body, or headers. Specify types, descriptions, required values, and defaults where applicable. Use literal values for fixed inputs and map runtime values in the calling node or tool.
Payload For operations that send a body, use the request format expected by the API and include parameter placeholders for values supplied at runtime.
Headers Add the headers required by the operation, such as the API's expected media type.
Examples Supply a representative Sample Response. Use valid JSON for JSON APIs and include the fields callers depend on. For supported GET functions, Fetch Sample Data can populate the example using test parameter values.
Business Object Fields Review the response fields the function makes available. Expose the fields needed for the task and verify the actual node or tool output.

Imported requests can contain literal IDs, filters, or headers from the original request. Replace sample values with parameters where callers need to supply them, and review the resulting method, path, body, and authentication.

Write descriptions for functions and parameters

When an agent can choose among Business Object tool functions, the LLM uses the function description to decide whether an endpoint fits the user's request. Parameter descriptions help it identify the right values in the conversation or in earlier results and recognize when it needs to look up a value or ask for clarification. A Business Object Function node calls the function selected in the node with the values you map.

  • In the function Description, state when to call the endpoint, what record or data it acts on, and what it returns. State any changes it makes, such as creating a record or submitting an approval. Use business terms that distinguish the operation from similar functions in the same tool.
  • In each parameter Description, explain what the value represents, where to get it, and any expected format, unit, or allowed values. Use the parameter configuration to set its type, requiredness, and default. For required values that may be missing, explain how to obtain them.
  • Review descriptions after importing a function. Replace generic summaries and generated labels with task-specific language, and keep descriptions aligned with the endpoint as it changes. Enforce critical constraints through input validation and application permissions.
Field Example description
Get Supplier Status function Retrieves the supplier number and current status for one known supplier. Use it to check whether a supplier is active or inactive. If the user provides a supplier number or name, look up the supplier record first.
SupplierId or suppliers_Id path parameter Supplier record key returned by the Suppliers REST API. Obtain it from a supplier lookup or an earlier step. If the user supplies a supplier number, use it to find the record and pass the resulting key.

Test the agent with a request that includes the record key, one that provides only a supplier number, and one that could match multiple suppliers. Check which function the agent selects and which argument it passes. For ambiguous results, verify that it asks for enough information to identify the record.

Write sample responses and select Business Object Fields

Use Examples > Sample Response to show the response shape the endpoint returns for the configured request. Use Business Object Fields to review which response fields the function makes available to its callers.

  • Start from a successful test response. Use Fetch Sample Data if the GET function supports it. Use valid JSON and preserve the field names, capitalization, types, and nesting. For a collection, keep its response wrapper and include one representative item. Preserve pagination fields if a caller uses them.
  • Use fictitious values in the example. Keep strings, numbers, booleans, and nulls in their original types. Include the fields callers rely on and test separately with empty results or missing optional values.
  • Select the smallest set of Business Object Fields needed to identify the record, answer the question, or pass data to a later step. Use the endpoint's field filter when available to limit what the API returns. Application permissions still govern data access.
  • Verify the result in a test run after changing the sample or the field selection. Check the actual tool output and confirm the agent's answer uses the returned values. If a required answer field is missing or null, have the agent report that the value is unavailable.

Example: Ground a supplier status answer in tool output

  1. In Sample Response, use an example such as {"SupplierNumber":"8057","Status":"ACTIVE"}. Keep SupplierNumber as a string, as defined by the endpoint.
  2. In Business Object Fields, select SupplierNumber and Status. The LLM needs the supplier number to identify the record in its answer and the status to answer the user's question. The supplier status setup also uses the API's fields query parameter to request just these two fields.
  3. Ask the agent, “Is supplier 8057 active?” Once the agent has the supplier's record key, it calls Get Supplier Status. For example, the tool might return this live result.

    {
      "SupplierNumber": "8057",
      "Status": "INACTIVE"
    }
    
  4. The LLM reads the tool result and answers, “Supplier 8057 is inactive.” The sample shows the response shape. The runtime Status determines the answer.

Add a function from an existing API definition or request

The following examples configure the same supplier status lookup three ways. Go to Resources > Business Objects, select Add, and enter the object details. Set Resource Type to Monolith resource and the object's Resource Path to /fscmRestApi/resources/11.13.18.05/suppliers. Choose one method and replace fusion.example.com in the sample requests with your Fusion Applications host.

Add from an OpenAPI specification

  1. After entering the object's Resource Path, move focus out of the field. Under Business Object Functions, select Add from Specification when it appears.
  2. In Select from Specification, expand /suppliers/{suppliers_Id}. Use Filter operations... to narrow the list if needed.
  3. Select GET get_suppliers (Get one supplier), then select Done. Studio opens the new function with /{suppliers_Id} in its Resource Path and creates the suppliers_Id path parameter in Parameters.
  4. Set the function Name to Get_Supplier_Status. In the function's Resource Path, use /{suppliers_Id}?fields=SupplierNumber,Status&onlyData=true.
  5. Complete the function configuration and test.

To inspect the source specification, send an authenticated GET request to /fscmRestApi/resources/11.13.18.05/suppliers/describe with the Accept: application/vnd.oracle.openapi3+json header. Use the Suppliers collection path in the builder. The /describe endpoint serves the metadata.

Import a cURL command

  1. Under Business Object Functions, select Import. In the Import Functions drawer, select cURL command.
  2. Paste this command into the cURL command field. The URL uses a sample supplier key. Keep credentials out of the command.

    curl --request GET \
      'https://fusion.example.com/fscmRestApi/resources/11.13.18.05/suppliers/1716?fields=SupplierNumber,Status&onlyData=true' \
      --header 'Accept: application/json'
    
  3. Select Import. In the function that opens, set Name to Get_Supplier_Status and enter a Description, such as “Returns the supplier number and current status.”

  4. In the function's Resource Path, change /1716?fields=SupplierNumber,Status&onlyData=true to /{SupplierId}?fields=SupplierNumber,Status&onlyData=true. Move focus out of the field, then open Parameters and enter a Description for the generated SupplierId path parameter.
  5. Complete the function configuration and test.

Import a Postman collection

  1. In Postman, create an HTTP collection named Supplier Lookups and add a GET request named Get Supplier Status. Use this request URL.

    https://fusion.example.com/fscmRestApi/resources/11.13.18.05/suppliers/1716?fields=SupplierNumber,Status&onlyData=true
    
  2. Export the collection as Collection v2.1 JSON. Keep credentials out of the exported collection. See Postman collection exports.

  3. Under Business Object Functions, select Import. In the Import Functions drawer, select Postman collection, select Choose File, and open the exported JSON file. When the filename appears, select Import.
  4. Studio adds and opens Get_Supplier_Status. In the function's Resource Path, change /1716?fields=SupplierNumber,Status&onlyData=true to /{SupplierId}?fields=SupplierNumber,Status&onlyData=true. Move focus out of the field, then open Parameters and enter a Description for the generated SupplierId path parameter.
  5. Complete the function configuration and test.

Finish and test the function

  1. Verify that Operation Type is GET and Use Native Authentication is Yes. Check the full URL path shown on the function card for the supplier placeholder and both query values.
  2. Select Examples and expand the existing example. Use Add Example if needed. In Sample Response, enter JSON such as {"SupplierNumber":"8057","Status":"ACTIVE"} or use Fetch Sample Data with a valid supplier key.
  3. Select Create or Create and Close for a new object. To run the lookup from a workflow, use the supplier status example to map the input and read the result. Map the parameter shown in the selected function, suppliers_Id for OpenAPI or SupplierId for the other two methods. To offer the lookup to an agent, select the function in a Business Object tool.

Enable AI Guidance Store

Enable AI Guidance Store if an AI Guidance node needs to read or write guidance associated with records from this object. Configure the finder function and its record-key parameter so the workflow can identify the business record, then define the guidance resource and the record-key attribute it uses. In the node, select Business Object as the Reference Type and map the Record Key. See AI Guidance node configuration.

Use the object in a workflow or agent

  • Workflow. Add a Business Object Function node when the workflow should call a specific operation at a defined step. Select the object and function, map its parameters, and verify the Output Specification before referencing fields in later nodes.
  • Agent. Create a Business Object tool with the functions the agent can choose to call. Add the tool to the agent and describe when the agent should use each operation.

Example: Read a supplier's status

  1. Create a Business Object for the Procurement Suppliers API. Select Monolith resource and set the object path to /fscmRestApi/resources/11.13.18.05/suppliers.
  2. Add a Get Supplier Status function using GET. Configure the operation so its resolved path is /fscmRestApi/resources/11.13.18.05/suppliers/{SupplierId}. Define SupplierId as a required path parameter and use the supplier key from the API. If you start with a supplier number, look up the record in the collection first.
  3. Add fields as a query parameter with the fixed value SupplierNumber,Status and set onlyData to true to omit resource links. Add a sample response such as {"SupplierNumber":"8057","Status":"ACTIVE"}.
  4. In the workflow, add a Business Object Function node. Select the new object and function, then map SupplierId to {{$context.$variables.supplierId}}. Set the variable to a supplier key from your test environment.
  5. If the node code is GET_SUPPLIER_STATUS and its output contains the sample fields at the root, read the status with {{$context.$nodes.GET_SUPPLIER_STATUS.$output.Status}}.

Validate access and results

Fusion REST operations enforce the underlying roles, privileges, and data access of the applicable execution identity. Test with the identities that will run the workflow, including the configured identity for background execution. See Security and Execution Identity.

Check a successful request, invalid or missing inputs, and an access-denied request. For collection operations, verify empty results and whether the API returns additional pages. For operations that change records, verify the target identifier and payload, and place review before the operation if the process requires approval.