Introduction
In Oracle Cloud, tools such as VBCS and OIC make it easy to build modern applications. They help establish connections with various systems without difficulty. We can create custom apps with VBCS, OIC, and DB. This way, we meet user needs and fulfill all business requirements.
With OCI’s AI services, we can create apps that lower user effort. These apps help users make smart decisions by adding intelligence to their experience.
OCI’s AI services provide different services like Vision, Language and Document Understanding. Using these services, the following things:
- Read text from images and extract useful data (such as invoices or receipts).
- Understand the emotion behind user feedback.
- Analyze images and identify objects.
We can create smart applications by using VBCS for the user interface and OIC/DB for business logic. In this blog, we will walk through how we can combine VBCS, OIC, and OCI’s AI services. We will look at how these tools work together. First, we’ll cover the simple architecture. Then, we’ll share practical use cases for this setup. Finally, we’ll outline the key steps to design and implement them.
Note: The focus of this blog is to give ideas about the processes and what’s possible rather than deep technical details or code.
Oracle Tools / Oracle Technology Stack
We are going to use the following Oracle Cloud offerings.
VBCS:
We will be using VBCS to develop the user interface. We can build clean and responsive UIs using VBCS along with JavaScript when needed. VBCS application will be the frontend which users see.
OIC:
OIC will be used for handling all the business logic. Data transformation, API calls, and connecting to the third-party systems will be handled by the OIC. It will act as a bridge between VBCS applications and OCI AI services.
OCI AI Services:
Oracle offers ready-to-use AI services like
- Vision – for analyzing the images
- Language – for extracting meaning or tone
- Document Understanding – for reading and analyzing documents
You do not need to train the models or handle complex data science. These services are prebuilt and easy to call from OIC using the REST APIs.
Use Case – AP Invoices Capture using Document Understanding
In most of the cases, teams receive the invoices as PDFs or scanned images.
After receiving the document, user must manually enter all the required details like supplier name, invoice number, invoice date, amount etc. This is a repetitive task which also consumes lots of time and effort of the user.
With the help of VBCS, OIC and OCI’s AI service of Document Understanding, we can automate most of this process and make it much faster.
Business Scenario:
User uploads the image in VBCS application. After uploading an image, the file is sent to Oracle’s AI service which reads the document and pulls out key fields. The values appear on the VBCS page after OIC sends a response. The user can verify them before they submit the details to Oracle ERP.
High Level Process Flow:
- Users upload an invoice in VBCS form
- OIC picks up the file and sends it OCI Document Understanding
- AI extracts the key data and send the response back to OIC
- OIC maps and stores the required data and the same is displayed to user
- User then reviews the details and submits the form
- A new invoice record is created in Oracle ERP
7. VBCS UI shows the status (Success/Error) after submitting to Oracle ERP
How to Achieve it:
- In VBCS, use the file upload component to upload the images
- In OIC, build an integration that takes the file and calls the OCI Document Understanding API, and parses the response
- Map the extracted fields received in the response
- Build an exception handling mechanism if the user review is not required. Such as if AI cannot read the file or some key fields are missing
Note:
For Data Accuracy, we need to keep few things in mind.
While OCI document understanding does good job with common invoice formats, accuracy can vary depending on the quality of the uploaded document and how structured it is.
Below are few tips to improve the results:
- Good Document Quality
- Clear and High-resolution images (300 DPI or more) works best
- Avoid documents with stamps or skewed layouts
- Use the right extraction model
- OCI document understanding offers multiple extraction models like key-value extraction, table extraction etc.
- Choose the one that best fits for your document type, or test a few to see which works the best for your needs
- Post processing in OIC
- You can use data enrichment steps in OIC to clean or reformat OIC results
- For example, if the AI outputs a date in the wrong format, you can correct it before sending it to ERP.
- Confidence Scores
- OCI responses usually include confidence level for each extracted field
- You can set a threshold (e.g. only accept a value is confidence level is >90% ) and flag the other values for manual review
- Analyze data and train custom model
- You can store the failed or low confidence invoices and analyze them later to retrain custom models or to adjust the integration logic accordingly
- This way we can make the process more reliable and scalable over the time
Key Learnings, Challenges and Best Practices
- Design for latency
- Allow for short delays from AI calls by using loaders, async triggers, or batch processing.
- Validate AI results through Human reviews
- Always give users the ability to accept, edit or reject AI generated output
- Develop reusable flows
- Create generic OIC flows (like Vision API handler) which you can reuse across multiple applications
More expansion towards this topic
Using OCI AI services in Oracle Cloud Applications may sound a new complication but as we have seen it is very much achievable using the available Oracle Cloud offerings like VBCS, OIC and OCI AI Services.
There are other possible interesting use cases as well which can be implemented using VBCS, OIC and OCI AI Services effectively.
- Product classification through OCI Vision
- Leverage OCI Vision’s image recognition to automatically categorize product images, with OIC orchestrating data ingestion and model invocation.
VBCS provides an intuitive dashboard for users to review and refine classification results in real time.
- Leverage OCI Vision’s image recognition to automatically categorize product images, with OIC orchestrating data ingestion and model invocation.
- Feedback analysis using OCI language
- Utilize OCI Language to perform sentiment analysis, entity recognition, and topic extraction on customer feedback ingested via OIC. VBCS shows important insights and trends in real time. This helps stakeholders fix problems fast and boost customer satisfaction.
- Smart forms for compliance reporting
- Build intelligent VBCS forms that leverage OCI AI Services to auto‑extract and validate compliance data from uploaded documents, with OIC handling backend workflows.
The solution makes regulatory reporting easier. It adds real-time validation, error detection, and approval steps right in the app.
- Build intelligent VBCS forms that leverage OCI AI Services to auto‑extract and validate compliance data from uploaded documents, with OIC handling backend workflows.
By combining right tools and thoughtful architecture like databases for control and logic, OIC for middleware and AI for insights, you can deliver scalable solutions.