惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
雷峰网
雷峰网
博客园_首页
小众软件
小众软件
美团技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
P
Proofpoint News Feed
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
U
Unit 42
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 叶小钗

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Business Object Tool: Powering AI Agents with Structured ...
Halton Chen · 2026-04-24 · via DEV Community

Introduction

If you've ever wished your ERP system could just answer your questions instead of making you click through fourteen screens to find a purchase order — good news. With Oracle AI Agent Studio, that's no longer wishful thinking. In this post, I'll walk you through how I built an AI agent that retrieves live purchase order data from Oracle Fusion using a REST API, a Business Object, a custom Tool, and an Agent Team. From architecture to deployment, here's how it all fits together.


What We're Building

Before diving in, let's map out the architecture at a high level:

Oracle Fusion Data → REST API → Business Object → Tool → Agent → Agent Team

Each layer builds on the one before it. The REST API is the data source, the Business Object wraps it in a structured schema, the Tool exposes it to the agent, and the Agent Team makes the whole thing available to end users. Clean, composable, and — once you've done it once — surprisingly straightforward.


Step 1: Validate the REST API

Every good agent starts with reliable data. I used Oracle's published Fusion REST API for Purchase Orders:

Endpoint: GET /fscmRestApi/resources/11.13.18.05/purchaseOrders

Reference: Oracle Fusion Procurement REST API Docs

Before doing anything in Agent Studio, I validated the endpoint to confirm it returns the fields I need — things like OrderNumber, Status, Supplier, Buyer, Total, and Date. Take this as the foundation check. Test early, test often.


Step 2: Create the Business Object

With a validated API in hand, I navigated to Oracle Applications → Tools → AI Agent Studio and headed to the Business Object tab.

Here's how I configured it:

Field Value
Family PRC
Product Purchasing
Name Halton_Return_PO_Information
Resource Type Monolith Resource
Resource Path /fscmRestApi/resources/11.13.18.05/purchaseOrders

Screenshot showing the configuration of business object

Next:

Add a Business Function
Import fields via “Add Field from Specification”
Select only relevant attributes (e.g., OrderNumber, Status, Supplier, Buyer, Total)

This step is where most implementations go wrong.

  • Common mistake: importing everything.
  • Correct approach: curate fields aligned to query intent.

Once saved, the Business Object is ready to be used as a data source by a Tool.


Step 3: Create the Tool

A Business Object on its own doesn't do anything — you need a Tool to expose it to an agent. I created a new tool called Halton_Return_PO_Tool and linked it to the Business Object created in Step 2.

The Tool acts as the bridge between the agent's reasoning layer and the actual data retrieval logic. When a user asks the agent a question, the agent invokes the Tool, the Tool calls the Business Object, and the Business Object hits the REST API. It's turtles all the way down — in the best possible way.


Step 4: Configure the Agent

I created a new AI Agent in Agent Studio and wired up the Tool. But the real differentiator is the system prompt — this is what tells the agent how to behave, not just what it can access.

Here's the prompt I used:

"You are a Purchase Order (PO) advisor who answers questions from employees about purchase order details retrieved by the Purchase Order system.

Always display retrieved purchase order results in a table format.

Use the following rules to match user input to the correct PO data fields:

  • If a user provides a purchase order status, match it with the Status field.
  • If a user provides a supplier name, match it with the Supplier field.
  • If a user provides a buyer name, match it with the BuyerDisplayName field.
  • If a user provides a PO total or amount, match it with the Total field.
  • If a user provides a purchase order number, match it with the OrderNumber field.
  • If a user provides a date or date range, match it with the Date field.
  • If a user asks about line items, retrieve and display them in a table.

If no purchase orders match the user's search criteria, respond with: "No purchase orders were found matching your search. Please verify the details and try again."

Always be concise, professional, and only return information retrieved from the Purchase Order system."

A few things worth calling out here.
First, the explicit instruction to display results in a table format — without this, LLMs will happily dump data as unstructured prose, which no one wants to read.
Second, the field-matching rules eliminate ambiguity: the agent doesn't have to guess what "show me all open POs" means; the prompt tells it exactly which API field to filter on.
Third, the fallback message for no results is a small but meaningful UX touch.

This is where the investment in a well-crafted prompt pays dividends. A vague prompt produces a vague agent.


Step 5: Build the Agent Team

With the agent configured, the final step is creating an Agent Team — Oracle's mechanism for grouping and deploying agents for end-user interaction.

I created a new Agent Team, added the configured agent to it, and published it. That's it. The agent is live.


The Result

Once deployed, the agent can respond to natural language queries like:

  • "Retrieve all POs from ABC Corp"
  • "Find all purchase orders for buyer Halton"
  • "What are the line items on PO 10042?"

The agent pulls real-time data from Oracle Fusion, applies the filtering logic defined in the prompt, and returns a clean, structured table. No ERP navigation. No SQL. No reporing. Just a question and an answer.


Key Takeaways

  • Validate your API first. Don't assume the REST endpoint returns what the documentation says. Confirm it before building anything on top of it.
  • Be explicit in your prompts. Map every user intent to a specific field. The more explicit the instructions, the more predictable the agent's behaviour.
  • Use field selection wisely. Only pull the fields that are meaningful to your use case. Unnecessary fields add noise and can confuse the agent's reasoning.
  • The architecture scales. Once you've built one Business Object and Tool, adding more agents or extending to new APIs follows the same pattern. The investment in understanding the framework pays off quickly.

Wrapping Up

Oracle AI Agent Studio makes it genuinely accessible to build enterprise-grade AI agents without needing a data science background or a custom ML pipeline. If you have a REST API and a clear use case, you have everything you need to get started.

The purchase order agent I built here is a practical, real-world example — not a demo with mock data. It queries live Oracle Fusion data and responds to the kinds of questions procurement teams ask every day. That's the whole point.

If you're exploring Oracle AI Agent Studio for your organisation, I'd encourage you to start with a well-understood API, keep your first agent focused, and iterate from there. The platform rewards curiosity.


Have questions or want to share your own Oracle AI Agent Studio experience? Drop a comment below or reach out on the Oracle Cloud Customer Connect.