Sunday, February 15, 2026

#1119 - AI Database Private Agent Factory & OIC

Introduction

So what is it?

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++

Maybe a good time to check out my posts on leveraging Langflow with OIC agents. 

Net, net, you see the components palette on the left - 

I'll be using just Agent and Tools for this initial demo.

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.  

Here is the full prompt - 

### 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, display all the order details in the agent log, including the order nr returned by the ERP system. Also end with a quote from Mark Aurelius.

I save and then click on Playground

I enter the following order - 


The JSON payload is as follows - 

{ "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 Team


Next order is from Cathal -

{ "customer" : "Cathal Commiskey", "customerCountry" : "Ireland", "product" : "iBoat", "price" : 34567, "email":xxxx@gmail.com" }

Summa Summarum

OIC integrations exposed as tools allow any 3rd party agent secure and predictable access to enterprise systems of record.
















 


No comments: