Deploy Pre-built OCI Function & Configure Event Rule

This article details the process for deploying a pre-built OCI Function and configuring an OCI Event Rule to trigger it automatically.

1. Log In to Oracle Cloud 

Go to cloud.oracle.com, enter your Cloud Account Name, and click Next. Then, enter your username and password to log in.


2. Navigate to Pre-Built Functions

Open the main navigation menu, go to Developer Services, locate Functions, and click Pre-Built Functions.



3. Select the Function Template

Find and select the Object Storage File Extractor pre-built function card, then click Create function.



4. Configure Function Details

Enter a unique Name for your function, select the appropriate Application compartment and Application, and then click Create.


5. Review Dynamic Group and IAM Policies 

If automatic IAM policy creation is enabled, OCI will automatically create the required dynamic group and assign the policies (provided you have sufficient permissions). If you lack administrative rights, work with your administrator to set up the dynamic group and assign policies manually.

6. Verify Function Creation

Navigate to your selected Application to verify that the function appears in the list and shows an Active status.


7. Navigate to OCI Events Service

Open the main menu, navigate to Observability & Management, and select Rules under the Events Service section.



8. Define Rule Conditions

Click Create rule. Enter a Display name and Description. Under Rule conditions, set the following parameters: 
Condition: Event type | Service name: Object Storage | Event type: Object - Create
Condition: Attribute | Attribute name: resourceName | Attribute value: *.zip
Condition: Attribute | Attribute name: bucketName | Attribute value:  STAGE_RODS


9. Set Action and Create Rule
In the Actions section, select Functions as the Action type. Choose the target Function compartment, Function application, and Function. Click Create rule. Once configured, the function will execute automatically whenever a new ZIP file is uploaded to the specified bucket.



Read More »
Blogger Tricks
*/

Oracle PLSQL buffer overflow error

Usually this error occurs when the total amount of text sent to DBMS_OUTPUT has exceeded the default limit of 20,000 bytes.


We can resolve this error by enabling the server output before executing PL/SQL objects.

SET SERVEROUTPUT ON SIZE UNLIMITED;


Read More »
*/

Deploy Oracle AI Agent for end users

This aricle details the steps involved in creating a Guided Journey for an AI Agent, assigning it to the properties of a Redwood page using Visual Builder Studio (VBS), and deploying it for end users.

1. Navigate to My Client Groups à Show More à Journeys Setup à Guided Journey



2. Click on Create to start a new Guided Journey



3. Create a Draft by entering the Name and Code for the Journey



4. Add tasks to the Journey



Enter the task name, set the task type to Agent, Agent type to Workflow Agent and select the desired AI Agent to deploy for end users.



5. Activate the Guided Journey



Verify the status of the newly created Guided Journey changes to Active.


 

6. Navigate to Order Management à Order Management (New) (Redwood Page)


7. Navigate to Settings & Actions à Administration à Edit page in Visual Builder Studio



8. Select the appropriate extension project.


9. Assign the newly created Guided Journey code to the “Journey Code” page property.



10. Preview the application in Visual Builder Studio, verify the appearance of the “Ask Oracle” button with the Agent Name and publish the changes.


11. Click “Ask Oracle” to open the AI Agent chatbot panel and inquire about order details by providing an order number.


12. Inquire about the order lines details for the same order number.



Read More »
*/

Create Business Object to create Sales Order via Oracle AI Agent

Navigation: Menu --> Tools --> AI Agent Studio --> Business Object

Click on the Add button to start creating Business Object.


Fill out the following details.

  • Family: SCM
  • Product: Order Management
  • Name: HP Create Sales Order
  • Code: Populates automatically
  • Resource type: Monolith
  • Resource Path: Populates automatically
  • Description: Provide an understandable description


Scroll down and click on + plus button to add the business function.


Add the correct resource path "/fscmRestApi/resources/11.13.18.05/salesOrdersForOrderHub" and set operation type to "POST" in Business Object Function.


Toggle the native authentication header and provide the payload as follows or as required.


{

  "SourceTransactionSystem": "PS",

  "SourceTransactionId": "{p_SourceTransactionId}",

  "SourceTransactionNumber": "{p_SourceTransactionNumber}",

  "TransactionalCurrencyCode": "USD",

  "BusinessUnitId": 300000001921096,

  "BuyingPartyNumber": "{p_BuyingPartyNumber}",

  "TransactionTypeCode": "REGULAR",

  "RequestedShipDate": "{p_RequestedShipDate}",

  "SubmittedFlag": false,

  "FreezePriceFlag": false,

  "FreezeShippingChargeFlag": false, 

  "FreezeTaxFlag": false,

  "RequestingBusinessUnitId": 300000001921096,

  "CustomerPONumber": "{p_CustomerPONumber}",

  "billToCustomer": [

    {

      "CustomerAccountId": {p_CustomerAccountId},

      "SiteUseId": {p_SiteUseId}

    }

  ],

  "shipToCustomer": [

    {

      "PartyId": {p_PartyId},

      "SiteId": {p_SiteId}

    }

  ],

  "lines": {p_Lines}

}

Add a Header with content type set to application/json. The parameters will auto populte based on defined payload inputs.


Add an example payload; This helps AI agent understand and map the fields as required.



All set;  just save your progress, use the business object within the Oracle AI agent and ensure that you map the payload parameters correctly in the prompt.

Read More »
*/

Enable Business Objects for Order EFF tables in Oracle RODS Data Extraction

By default the Extension Flex Field Business Objects are not enabled in the Oracle RODS, New data extraction tool. We need to deploy the flex fields and publish them to enable them.

 Go to Setup and Maintenance





Search for the task Manage Order Extensible Flexfields.



Search for the Flexfield Code DOO_FULFILL_LINES_ADD_INFO and deploy it (Deploy Offline).




Navigate to Tools > Scheduled Processes.



Submit a new process named Publish Extensible Flexfield Attributes.


Ensure that the process completes Successfully.



Review the log and output files to verify there are no errors during the flexfield publishing process.


You should now be able to view the EFF business objects in RODS.





Read More »
*/

How to Connect OIC Integrations to Oracle AI Agent Studio

By leveraging the Model Context Protocol (MCP), you can seamlessly turn your Oracle Integration Cloud (OIC) flows into executable tools inside Oracle AI Agent Studio.

Step 1: Configure the MCP Server & Add Integrations
1. Configure MCP server 

Step 2: Create the Tool in AI Agent Studio

Open Tools ->  Click Add button


Select the tool type as MCP and provide tool name, family and product.


Step 3: Set Up Connection & Security

Provide the MCP server URL which is obtained from OIC AI Agent tool, select transport type as "Streamable HTTP" and Token URL and client credentials.

{
  "grant_type": "client_credentials",
  "scope": "https://XXXX.integration.ocp.oraclecloud.com",
  "client_id": "DCSDSDSD",
  "client_secret": "SDSDSD"
}

Step 4: Map Integrations & Preview

Select the required integration from the list of added integartions in the OIC tool



You can preview the tool


Pass the tool parameters (OIC integration parameters) and preview.

Read More »
*/