Introduction
I have blogged about this topic before, namely using tools to monitor and troubleshoot. These tools are backed by integrations that use the OIC apis to retrieve monitoring data. So how could we implement such for the following requirement?
Business Transaction Traceability feature - users should be able to enter a business identifier (e.g., Order Number, Person Number, Employee Number) or an error message, and AI should automatically search across all OIC instances to identify related integrations and their execution history. It should display the end-to-end integration flow, instance statuses, failures and dependencies, along with potential root cause analysis.
I'm not going to implement a productized version of this, however, I will cover the main requirements.
Here I will use a couple of OIC factory apis as well as another api, which returns project dependencies.
Search instances on business identifier
For this simple demo I have created a create order integration with a tracking field, orderNr. The use case is to find instances for a specific orderNr, e.g. where is orderNr 8?
Here I use the following factory api -
https://design.integration.us-phoenix-1.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/instances?offset=0&limit=50&q={businessIDValue:'7',timewindow:'6h',includePurged:'no',projectCode:'yourProject'}&orderBy=lastupdateddate&fields=detail&integrationInstance=yourOIC
I've already tested this in postman -
Note the projectCode parameter - this will filter on instances belonging to a specific project. I won't use this now, as I'm looking across all projects and the global space.
l create an integration - retrieve integration instances - which uses the factory api to do the necessary. The second screenshot shows the parameters I added -
I expose this integration as an Agentic AI Tool -
Get Project(Integration) dependencies
I open the above page in Chrome, having beforehand activated developer tools -https://design.integration.myRegion.ocp.oraclecloud.com/ic/api/integration/v1/projects/myProjectCode/dependencies?integrationInstance=myOICInstance
I try this out in postman and check out the response; this will contain the project assets, sorted into the following categories -
- agents
- connections
- integrations
- patterns (AI Agent related)
- tools
note the associations section - here we see that the integrations uses 2 connections - ORDERS_DB and REST_TRIGGER.
Here's the section for the integration process order -
Here's the section for the integration process order -
I create an integration that uses this api to get the project dependencies; it also is exposed as an AI agent tool -
Get error details by instance id
This integration, retrieve errors by instance id, will retrieve the error details, which can then be surfaced to the user, along with LLM input on such.
This integration is also exposed as an AI Agent tool.
Let's move on to configuring the agent.
Configuring the agent
The agent prompt is as follows -
Note the input - retrieve integration instances from the last {{timewindow}} which have a business id field {{fieldName}} with a value {{value}}
Here's an example -
you monitor OIC integration instances, querying based on tracking field input.
For example, you will get a request - Retrieve integration instances from the last 6 hours which have a business id field orderNr with businessIDValue 310138. The retrieve integration instances tool retrieves integrations based on businessIDValue and timewindow. From the request received, you will set the businessID parameter to businessIDValue and timewindow to timewindow
Then I describe the tool response -
The response includes the following fields -
totalResults - how many integration flows were found that match the search criteria
status - the outcome of the integration flow - possible values are COMPLETED or FAILED
trackings - contain the business identifiers. Flows can have up to 3 business identifiers. The first is the primary tracking field. Trackings include name and value.
projectName - integrations can belong to projects. This fields holds the value of the project name
projectCode- the code identifying the project, use this when invoking the get project dependencies tool
mepType - this indicates the type of integration - values include SYNC and ASYNC
hasRecoverableFaults - indicates an errored integration that can be resubmitted. Only ASYNC integrations can be resubmitted
integration - contains the full name of the integration, includes name, version and project
instanceId - is the unique runtime identifer of the specific integration flow / instance
creationDate - when the request to execute the integration flow was received
processingEndDate - when the flow completed
instanceReportingLevel - trace level set for this integration. Possible values are Production,Audit or Debug
replayable - indicates whether the integration is replayable or not. This is an option set by the developer at activation
You will need to ensure the trackings name = whatever business id name user has entered. e.g. find all integrations with the orderNr 310138 will require you to only match on -
"name": "orderNr",
"value": "310138"
Use these to give intelligent feedback on the integrations that have this value.
Now to the errors -
For each errored integration instance, use the retrieve errors by instance id tool to retrieve error data.
The fields returned by get Error Details tool include -
errorActionName - name of the action that errored out
errorActionType - the type of the action where the error occurred
errorCode - the code, if any, generated by the error
errorDetails - the technical details of the error
errorItems - is an array that contains 1 or more sets of error informantion. The fields include detailErrorMessage, errorActionName,errorActionType,errorCode,errorLocation,errorMessage,
faultId,milestone (the internal code for the action), recoverable,retryCount,state,status
instanceId - the id of the OIC instance flow
The following details need to be output to the user:
The names of the integrations which have the tracking field name and value specified in the user request.
The projects to which these integrations belong
When the integrations executed (creationDate / processingEndDate)
The outcome, whether completed or failed.
For failures, output where the error occurred (the action), the technical error and a user friendly version of the error.
Suggest any fixes you deem appropriate to the user
Next, the dependency analysis -
Also add a dependencies section to your user output. Use the get project dependencies tool to retrieve the dependencies for every errored integration. Set the project parameter to the projectCode for the errored integration. as the project param
Tell the user which connections the errored integrations uses, also list which other integrations can invoke this integration (e.g. integration A uses integration B). The get project dependencies tool returns a response that describes a dependency graph: assets are the nodes, and references between assets are the relationships.
It shows declared dependencies, rather than runtime execution history. The key rule is:
An integration’s associations lists the assets that integration depends on. Read each relationship as integration → referenced asset.
Asset identification
Asset Location Identifier format in this response
----- -------- ----------------------------------
Connection assets.connections[] projectCode|connectionCode
Integration assets.integrations[] projectCode|integrationCode|version
Pattern assets.patterns[] patternCode|version, scoped by projectId
Tool assets.tools[] Tool ID, scoped by projectId
Treat identifiers as exact strings. Preserve spelling, case, and integration versions. For example, OIC_FACTORY_API and OCI_FACTORY_API are different codes in this response.
Use name for display and the complete identifier for matching. Two versions of an integration are separate dependency targets.
For every integration, inspect associations[]:
Field Interpretation
----- ---------------
associationType: "uses" The containing integration depends on the referenced asset.
resourceType: "connection" Resolve ref against assets.connections[].id.
resourceType: "integration" Resolve ref against assets.integrations[].id. This represents an integration invocation dependency.
ref Identifier of the dependency target.
Finally, a bit of philosophical input -
Finally, finish the user output with a quote from Marcus Aurelius
Test preparation
I run the create order integration for orderNr 10 -
Thinking: I have retrieved integration instances with the tracking field "orderNr" with value "10" for the last 1 hour. There are 3 instances found, two of which are for the integration "create order" in the project "AA-Anomaly-Detection." One of these instances completed successfully, and one failed. The failed instance error details indicate a database constraint violation caused by attempting to insert a duplicate order number "10" into the orders table. I have also retrieved the project dependencies for "AA_ANOMALY_DETECTION" to provide connection and invocation dependencies for the errored integration.
So where does the 3rd instance come from? Check out OIC Observability -
The next section -
Observing the results:
- Integration "create order" in project "AA-Anomaly-Detection" has instances with the orderNr "10."
- One instance failed at the action "insertOrder" due to a unique constraint violation error on the ORDERS table (ORA-00001).
- The error suggests that the order number "10" already exists in the database.
- The integration uses the connections Orders DB and REST Trigger.
- This integration is also invoked by the "process order" integration in the same project, and it uses these connections as well.
Action: I will now summarize these findings and provide suggestions for fixes to the user.
The next section -Summary for user:
- Found integrations tracking orderNr=10 in the last 1 hour:
- Integration: "create order" (version 01.00.0000) in project "AA-Anomaly-Detection"
- Instance at 2026-11-23T07:49:11.251 completed successfully.
- Instance at 2026-11-23T07:49:40.627 failed during "insertOrder" action.
- Error: Unique constraint violation on ORDERS table. The order number "10" already exists.
- This is a database insertion error likely due to attempted duplicate order insertion.
- Integration: "create order" (version 01.00.0000) in project "AA-Anomaly-Detection"
Next, the dependency section, although we already have been given the salient data -
- The "create order" integration uses connections: Orders DB and REST Trigger.
- The integration is invoked by the "process order" integration in the same project.
- Suggested fix: Check for duplicate order numbers before attempting insertion or handle the constraint violation gracefully by updating existing records or notifying the user accordingly.
Finally, some words of wisdom -
Quote: "Waste no more time arguing about what a good man should be. Be one." - Marcus Aurelius
Summa Summarum
This was a quick POC, just to show the feasibility of using an agent to speed up error isolations and resolution. I hope have demonstrated the value add of this approach and look forward to your feedback. Just mail me at niall.commiskey@oracle.com.
Let's finish with a late autumnal beer -
Cervisia Autumnalis Serotina
Landwehr beer is brewed in the vicinity of Rothenburg, a well known tourist spot for those interested in all things medieval. Founded in 1755, this brewery product a great assortment of beers, ranging from helles to dunkles, including pils, kellerbier, jahrgangsbier. Net, net - there's a beer for everyone here. I was drinking their helles, very refreshing with that perfect hoppy/malty taste of a true Franconian beer.
Sláinte!
















































































