Introduction
So what is it? And how does it relate to OIC?
Check out the docs here -
You can download the service and install on OCI, via the Marketplace -
You just need to click Get App and then sign in to your OCI tenancy.Follow the install instructions as per the docs and the magic will happen.
Using AI DB PAF
Blame the PAF acronym on me.
I click on Agent Builder -
The UI is, as far as I can see, LangFlow++.
Net, net, you see the components palette on the left -
MCP Server & Agent Configuration
The url is the OIC Project MCP Server url. Auth Type = Bearer Token. I then generate a token from Postman, based on my OIC confidential app (client id, secret, token url, scopes).For the Agent, I configure it as per my OIC Agent for Order Processing. This agent is covered in a previous post.
### Order Processing Steps
#### 0. Duplicate Order Check
Use the **Get Order** tool to check if an order already exists. If it does, then use the **Notify Customer** tool to inform the customer, set the subject to 'Duplicate Order Received', then stop processing. If the order is not found, then continue with the processing of the order.
#### 1. Validate Order
Use the **Validate Order** tool to check if an order passes our validation rules. If the order is invalid, then use the **Notify Customer** tool to inform the customer. Also include the "message" returned by Validate Order. If an order is invalid, processing stops immediately; in such cases, detail exactly why this order failed validation.
#### 2. Check Inventory
Use the **Check Inventory** tool to check if the product is in stock. If the product is out of stock, use the **Notify Customer** tool to inform the customer. Ensure the "message" passed to the Notify Customer tool is relevant and friendly. Remember, we are razor focused on customer satisfaction. If an order's product is no longer in stock, processing stops immediately; in such cases, detail exactly why this order's processing has been terminated.
#### 3. Create Order in one of our ERP systems
Use the **Create Order SAP** tool to create orders for German customers.
Use the **Create Order Netsuite** tool to create orders for Irish customers
#### 4. Email Customer detailing the final outcome of the order process for valid orders.
Use the **Notify Customer** tool to email the customer, detailing the order number from the ERP system used.
#### 5. Display Order Details
Finally, send all the order details, including the order nr returned by the ERP system to our accounts team at xxx@gmail.com, end the email with a quote from Mark Aurelius.
The Prompt is set to chat input -
I save and then click on Playground -
{ "customer" : "NiallO Fallon", "customerCountry" : "Ireland", "product" : "iCar", "price" : 34567, "email":"xxxx@gmail.com" }As luck would have it, we are currently out of iCars.
The order itself is valid, but the inventory check returned out of stock.
But at least the agent sent NiallO a nice email -
The full email -Dear NiallO Fallon, Thank you for your interest in the iCar! We're truly sorry, but unfortunately, this product is currently out of stock. As a result, we were unable to process your order at this time. We apologize for any inconvenience this may cause and appreciate your understanding. Rest assured, we're working hard to restock it soon. If you'd like, we can notify you when it's available again, or suggest similar products. Please let us know how we can assist you further. Best regards, Your Friendly Order Processing TeamNext order is from Lucia -
{ "customer" : "Lucia Commiskey", "customerCountry" : "Germany", "product" : "iCleaner", "price" : 3456, "email":"xxxx@gmail.com" }
The email is sent to Accounts -
Well it is a Database Private Agent Factory, so we cannot exit without trying out some SQL. Here are the rows in my ATP demo orders table -
Summa Summarum
OIC integrations, exposed as tools, allow any 3rd party agent secure and predictable access to enterprise systems of record. The AI Database Private Agent Factory is a great example of such a 3rd party agent. DB PAF offers lots of functionality and it is a native capability of the Oracle AI Database (specifically versions 23ai and 26ai) that allows organizations to create "agentic" workflows directly where their enterprise data lives.
Finally, a caveat, or should I say admission on my part - I didn't read the DB PAF documentation before creating the post. Naturally, I haven't done it justice, but my main focus was on showing the interoperability with OIC Agentic tools. My lack of reading does show, though, how intuitive the UI is.
However, I've made a promise to myself - take some time to RTFM; then write a follow-up post showing how cool this product really is.
