<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ramakrishna Tadi on Medium]]></title>
        <description><![CDATA[Stories by Ramakrishna Tadi on Medium]]></description>
        <link>https://medium.com/@krish098ram?source=rss-787603a304e2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ARZjBe-EJnHW97m2SGYNCw.jpeg</url>
            <title>Stories by Ramakrishna Tadi on Medium</title>
            <link>https://medium.com/@krish098ram?source=rss-787603a304e2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 13:56:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@krish098ram/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Boosting Productivity with OIC and RPA: Automating Repetitive Business Tasks]]></title>
            <link>https://medium.com/@krish098ram/boosting-productivity-with-oic-and-rpa-automating-repetitive-business-tasks-035fef9d3212?source=rss-787603a304e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/035fef9d3212</guid>
            <dc:creator><![CDATA[Ramakrishna Tadi]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 09:29:44 GMT</pubDate>
            <atom:updated>2025-10-02T09:38:31.371Z</atom:updated>
            <content:encoded><![CDATA[<p>In most organizations, employees spend a huge chunk of their time on repetitive, rule-based activities. Think of tasks like:<br><strong>Employee onboarding</strong>: creating accounts, provisioning tools, sending standard emails.<br><strong>Purchase order acknowledgements</strong>: validating and confirming POs.<br>Invoice generation and reconciliation.<br><strong>Field updates</strong>: entering activity completion details or status reports.</p><p>These processes are important, but they’re also time-consuming and prone to human error. This is exactly where Oracle Integration Cloud (OIC) with Robotic Process Automation (RPA) steps in.<br><strong>Why OIC + RPA?</strong><br>OIC RPA acts like a digital workforce — a set of software bots that can mimic human actions on applications, systems, or even legacy tools. By automating repetitive steps, businesses can:<br>1.Save significant time by eliminating manual work.<br>2.Reduce errors through standardized, automated execution.<br>3.Boost productivity by freeing employees to focus on high-value, strategic activities.<br>4.Integrate seamlessly with ERP, HCM, CRM, and other enterprise systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*XJYEkoKfm8_GCGwR2Bjwwg.png" /></figure><p>A sample use case of log in page automation: —</p><p>Open the OIC Project where you can see the different module like Integration and Robots</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OyyqaPI3E_Fq3GKg_LP27Q.png" /></figure><p>Click on Robot Module and create the connection types, Robot connection and Environment pools</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-3kglyhnuY6bafOZI438Hw.png" /></figure><p>The connection type — describes the structure of connection which you want create like, url, username and password</p><p>The Robot connection — is a component which can be created using the connection type where you can enter actual url, username and password details</p><p>Environment Pool — It where we need to configure the runtime environment for Robot, which can your own machine or VM. You need to download the Robot Agent from the Agents connection and run it to your machine by using below command and it creates the environment for running the Robot</p><pre>java -jar orpa-agent-0.1.112.jar</pre><p>Build a simple flow for login automate as below and invoke the Robot flow from OIC Integration, so that it can be exposed as API and Making it accessible to other resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w5fhRVc2mOaUJfpZywNr_g.png" /></figure><p>Add the environment and activate the flow and click on Run button, the Robot run time environment takes control and launch the flow and run the automation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZJsHKLzDE-MUcItRC-XHSQ.png" /></figure><p>Thank you for reading!!! Happy Learning!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=035fef9d3212" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analyze PO Invoice using Document Understanding AI Service through OIC Gen3]]></title>
            <link>https://medium.com/@krish098ram/analyze-po-invoice-using-document-understanding-ai-service-through-oic-gen3-411155dc498c?source=rss-787603a304e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/411155dc498c</guid>
            <category><![CDATA[document-understanding]]></category>
            <category><![CDATA[oic]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[oracle-integration-cloud]]></category>
            <dc:creator><![CDATA[Ramakrishna Tadi]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 07:55:31 GMT</pubDate>
            <atom:updated>2025-08-19T08:50:48.140Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever felt frustrated going through lengthy PO invoices with multiple pages and countless line items? It can be a time-consuming and tedious process.</p><p>The good news is that Oracle OCI Document Understanding AI Service can help. It automatically analyzes invoices and extracts the most important details, so you don’t have to review the entire document manually. This ensures greater accuracy and reduces the risk of missing critical information.</p><p>In this blog, I’ll walk you through how to automate the use of OCI Document Understanding AI Service with Oracle Integration Cloud (OIC). In Gen2, we had to establish a REST connection to call OCI AI services. With Gen3, this is no longer necessary — built-in activities are now available to invoke OCI services directly, including the powerful Document Understanding AI Activity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*CUmMNeNLUQ_xUfBHF6GpGw.png" /></figure><p>Create the REST Trigger integration which will accept the file and compartment id which is needed to call the document understanding Service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LKn9D1guiLfenDKFhxPyFA.png" /></figure><p>Request Payload :</p><pre>{<br>    &quot;compartmentId&quot;: &quot;&quot;,<br>    &quot;fileContents&quot;: &quot;/9j/4AAQSkZJRgABAQEAkACQAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAHsAsUDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL&quot;<br>}</pre><p>Response Payload : Configure below JSON response payload to map the document details to user</p><pre>{<br> &quot;Invoice&quot;: {<br>  &quot;HeaderFields&quot;: {<br>   &quot;amountDue&quot;: &quot;&quot;,<br>   &quot;billingAddress&quot;: &quot;&quot;,<br>   &quot;billingAddressRecipient&quot;: &quot;&quot;,<br>   &quot;customerAddress&quot;: &quot;&quot;,<br>   &quot;customerAddressRecipient&quot;: &quot;&quot;,<br>   &quot;customerId&quot;: &quot;&quot;,<br>   &quot;customerName&quot;: &quot;&quot;,<br>   &quot;customerTaxId&quot;: &quot;&quot;,<br>   &quot;dueDate&quot;: &quot;&quot;,<br>   &quot;invoiceDate&quot;: &quot;&quot;,<br>   &quot;invoiceId&quot;: &quot;&quot;,<br>   &quot;invoiceTotal&quot;: &quot;&quot;,<br>   &quot;other&quot;: &quot;&quot;,<br>   &quot;paymentTerm&quot;: &quot;&quot;,<br>   &quot;previousUnpaidBalance&quot;: &quot;&quot;,<br>   &quot;purchaseOrder&quot;: &quot;&quot;,<br>   &quot;remittanceAddress&quot;: &quot;&quot;,<br>   &quot;remittanceAddressRecipient&quot;: &quot;&quot;,<br>   &quot;serviceAddress&quot;: &quot;&quot;,<br>   &quot;serviceAddressRecipient&quot;: &quot;&quot;,<br>   &quot;serviceEndDate&quot;: &quot;&quot;,<br>   &quot;serviceStartDate&quot;: &quot;&quot;,<br>   &quot;shippingAddress&quot;: &quot;&quot;,<br>   &quot;shippingAddressRecipient&quot;: &quot;&quot;,<br>   &quot;shippingCost&quot;: &quot;&quot;,<br>   &quot;subTotal&quot;: &quot;&quot;,<br>   &quot;totalTax&quot;: &quot;&quot;,<br>   &quot;totalVAT&quot;: &quot;&quot;,<br>   &quot;vendorAddress&quot;: &quot;&quot;,<br>   &quot;vendorAddressRecipient&quot;: &quot;&quot;,<br>   &quot;vendorName&quot;: &quot;&quot;,<br>   &quot;vendorNameLogo&quot;: &quot;&quot;,<br>   &quot;vendorTaxId&quot;: &quot;&quot;,<br>   &quot;LineItems&quot;: [<br>    {<br>     &quot;name&quot;: &quot;&quot;,<br>     &quot;quantity&quot;: &quot;&quot;,<br>     &quot;productCode&quot;: &quot;&quot;,<br>     &quot;unitPrice&quot;: &quot;&quot;,<br>     &quot;amount&quot;: &quot;&quot;,<br>     &quot;date&quot;: &quot;&quot;,<br>     &quot;description&quot;: &quot;&quot;,<br>     &quot;tax&quot;: &quot;&quot;,<br>     &quot;unit&quot;: &quot;&quot;,<br>     &quot;VAT&quot;: {<br>      &quot;_xmlns&quot;: &quot;&quot;<br>     }<br>    }<br>   ]<br>  }<br> }<br>}</pre><p>Now Drag and drop the Document understanding Activity and configure it by selecting the compartment, Document type and input source like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*Yqj5jEBpmNG3qkiFZjH7-g.png" /></figure><p>Map the Compartment Id and Document to the Document understanding AI service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*l0V7tMtKLZdQQyvMF7GN8w.png" /></figure><p>Map the Document AI Service response back to the End user response schema</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ar8CUsmxmYYazbQKPe5Lvw.png" /></figure><p>Run the integration with compartment id and Invoice file and you will get response from OCI document understanding AI service</p><p>Invoice File</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*ADyhwwPjbHsPMi_8aEdWJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*-04M74JcP5WZPo-dhQcHrA.png" /></figure><p>Response from Document Understand AI service :</p><pre>{<br>  &quot;Invoice&quot; : {<br>    &quot;HeaderFields&quot; : {<br>      &quot;amountDue&quot; : &quot;&quot;,<br>      &quot;billingAddress&quot; : &quot;123 Avenue A, Metropolis&quot;,<br>      &quot;billingAddressRecipient&quot; : &quot;Ram T&quot;,<br>      &quot;customerAddress&quot; : &quot;&quot;,<br>      &quot;customerAddressRecipient&quot; : &quot;&quot;,<br>      &quot;customerId&quot; : &quot;8675309&quot;,<br>      &quot;customerName&quot; : &quot;&quot;,<br>      &quot;customerTaxId&quot; : &quot;&quot;,<br>      &quot;dueDate&quot; : &quot;2025-12-20T00:00:00.000Z&quot;,<br>      &quot;invoiceDate&quot; : &quot;2025-03-20T00:00:00.000Z&quot;,<br>      &quot;invoiceId&quot; : &quot;#1234&quot;,<br>      &quot;invoiceTotal&quot; : &quot;291.9&quot;,<br>      &quot;other&quot; : &quot;&quot;,<br>      &quot;paymentTerm&quot; : &quot;Cash or check&quot;,<br>      &quot;previousUnpaidBalance&quot; : &quot;&quot;,<br>      &quot;purchaseOrder&quot; : &quot;&quot;,<br>      &quot;remittanceAddress&quot; : &quot;&quot;,<br>      &quot;remittanceAddressRecipient&quot; : &quot;&quot;,<br>      &quot;serviceAddress&quot; : &quot;&quot;,<br>      &quot;serviceAddressRecipient&quot; : &quot;&quot;,<br>      &quot;serviceEndDate&quot; : &quot;&quot;,<br>      &quot;serviceStartDate&quot; : &quot;&quot;,<br>      &quot;shippingAddress&quot; : &quot;123 Avenue A, Metropolis&quot;,<br>      &quot;shippingAddressRecipient&quot; : &quot;Ram T&quot;,<br>      &quot;shippingCost&quot; : &quot;&quot;,<br>      &quot;subTotal&quot; : &quot;278&quot;,<br>      &quot;totalTax&quot; : &quot;13.9&quot;,<br>      &quot;totalVAT&quot; : &quot;&quot;,<br>      &quot;vendorAddress&quot; : &quot;456 Anyroad, Anywhere&quot;,<br>      &quot;vendorAddressRecipient&quot; : &quot;&quot;,<br>      &quot;vendorName&quot; : &quot;XYZ COMPANY&quot;,<br>      &quot;vendorNameLogo&quot; : &quot;XYZ COMPANY&quot;,<br>      &quot;vendorTaxId&quot; : &quot;&quot;,<br>      &quot;LineItems&quot; : [ {<br>        &quot;name&quot; : &quot;123&quot;,<br>        &quot;quantity&quot; : &quot;10&quot;,<br>        &quot;productCode&quot; : &quot;123&quot;,<br>        &quot;unitPrice&quot; : &quot;5.00&quot;,<br>        &quot;amount&quot; : &quot;50.00&quot;,<br>        &quot;date&quot; : &quot;&quot;,<br>        &quot;description&quot; : &quot;Pen Drive&quot;,<br>        &quot;tax&quot; : &quot;&quot;,<br>        &quot;unit&quot; : &quot;&quot;,<br>        &quot;VAT&quot; : &quot;&quot;<br>      }, {<br>        &quot;name&quot; : &quot;444&quot;,<br>        &quot;quantity&quot; : &quot;2&quot;,<br>        &quot;productCode&quot; : &quot;444&quot;,<br>        &quot;unitPrice&quot; : &quot;24.00&quot;,<br>        &quot;amount&quot; : &quot;48.00&quot;,<br>        &quot;date&quot; : &quot;&quot;,<br>        &quot;description&quot; : &quot;Heat lamps&quot;,<br>        &quot;tax&quot; : &quot;&quot;,<br>        &quot;unit&quot; : &quot;&quot;,<br>        &quot;VAT&quot; : &quot;&quot;<br>      }, {<br>        &quot;name&quot; : &quot;120&quot;,<br>        &quot;quantity&quot; : &quot;6&quot;,<br>        &quot;productCode&quot; : &quot;120&quot;,<br>        &quot;unitPrice&quot; : &quot;30.00&quot;,<br>        &quot;amount&quot; : &quot;180.00&quot;,<br>        &quot;date&quot; : &quot;&quot;,<br>        &quot;description&quot; : &quot;Hard Disk&quot;,<br>        &quot;tax&quot; : &quot;&quot;,<br>        &quot;unit&quot; : &quot;&quot;,<br>        &quot;VAT&quot; : &quot;&quot;<br>      } ]<br>    }<br>  }<br>}</pre><p>Thank you for reading!!! Happy learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=411155dc498c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Drawing a Boundary box on Image using Polygon Vertices returned from VISION AI service]]></title>
            <link>https://medium.com/@krish098ram/drawing-a-boundary-box-on-image-using-polygon-vertices-returned-from-vision-ai-service-80a83a89d4e0?source=rss-787603a304e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/80a83a89d4e0</guid>
            <category><![CDATA[oracle-apex]]></category>
            <category><![CDATA[vision-ai]]></category>
            <category><![CDATA[object-detection]]></category>
            <dc:creator><![CDATA[Ramakrishna Tadi]]></dc:creator>
            <pubDate>Sat, 10 Feb 2024 15:20:50 GMT</pubDate>
            <atom:updated>2024-02-10T15:20:50.543Z</atom:updated>
            <content:encoded><![CDATA[<p>When you upload an image to the OCI Image Vision service, it sends the response contains the objects on the image in the form of polygon vertices.</p><p>The End user does not understand the polygon vertices and boundary box on the images helps to identify the object.</p><p>However, In APEX application, The JavaScript <strong>rect()</strong> function takes parameters as pointX, pointY, width and height.</p><pre>Sample VISION AI Response : <br><br>&quot;imageObjects&quot; : [ {<br>    &quot;name&quot; : &quot;Dog&quot;,<br>    &quot;confidence&quot; : 0.9667895,<br>    &quot;boundingPolygon&quot; : {<br>      &quot;normalizedVertices&quot; : [ {<br>        &quot;x&quot; : 0.5961538461538461,<br>        &quot;y&quot; : 0.40625<br>      }, {<br>        &quot;x&quot; : 0.7660256410256411,<br>        &quot;y&quot; : 0.40625<br>      }, {<br>        &quot;x&quot; : 0.7660256410256411,<br>        &quot;y&quot; : 0.7159090909090909<br>      }, {<br>        &quot;x&quot; : 0.5961538461538461,<br>        &quot;y&quot; : 0.7159090909090909<br>      } ]<br>    }<br>  }</pre><p>As you see in the sample AI response has the 4 points of 2d plane(x1,y1),(x2,y2),(x3,y3),(x4,y4)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*1mDHIDxQXcJdiXO3LZ-b9w.png" /><figcaption>The Points and rectangle on 2d plane</figcaption></figure><pre>The Rectanle Method syntax in Javascript <br>rect(x, y, width, height)</pre><p>Pass x and y values as point x1 and y1 values from the polygon vertices and find the width and height of an rectangle box with below formulas</p><pre>Width :<br> Find the len between point x2 and x1 points<br>    len=((x2-x1)/100) * canvas.width; [Canvas widht is the widht of an image] <br>Height :<br>  find the len between point y1 and y1<br>  len =((y4-y1)/100) * canvas.height;[canvas height is the hieght of an image]<br><br>rect(pointX, pointY, Height, width);</pre><p>The rectangle box is drawn on the dog object in the image in APEX application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pUUd1aWr-B9lpL1hZmAmFA.png" /><figcaption>The Boundary box indicating the dog in the Image</figcaption></figure><p>Thank you for reading !!! Hope you find the information helpful !!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80a83a89d4e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Parsing Complex Generative AI JSON In Oracle APEX Using Oracle Integration Cloud]]></title>
            <link>https://medium.com/@krish098ram/parsing-complex-json-in-oracle-apex-using-oracle-integration-cloud-e0bd26e7b6b7?source=rss-787603a304e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0bd26e7b6b7</guid>
            <category><![CDATA[oracle-integration-cloud]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[oralce-apex]]></category>
            <dc:creator><![CDATA[Ramakrishna Tadi]]></dc:creator>
            <pubDate>Fri, 08 Dec 2023 06:18:25 GMT</pubDate>
            <atom:updated>2023-12-15T10:26:58.209Z</atom:updated>
            <content:encoded><![CDATA[<p>Since Oracle Apex 19c does not support MLE [Multilingual Engine] and It has become more difficult to parse the complex JSON using PL/SQL language.</p><p>We are trying to implement the Document Generative AI use case, where the end user uploads the document and which will be sent to AI service. The AI service extracts the key elements from the document as per the model and trained data set configured in OCI.</p><p>I have encountered the issue in apex while parsing the Generative Document AI response which has nested arrays in JSON response like below.</p><p><strong>Sample JSON Structure:</strong></p><pre>{<br>    &quot;pages&quot;: [<br>        {<br>            &quot;pageNumber&quot;: 1,<br>            &quot;dimensions&quot;: {<br>                &quot;width&quot;: 711.0,<br>                &quot;height&quot;: 394.0,<br>                &quot;unit&quot;: &quot;PIXEL&quot;<br>            },<br>            &quot;detectedDocumentTypes&quot;: null,<br>            &quot;detectedLanguages&quot;: null,<br>            &quot;words&quot;: [<br>                {<br>                 <br>                }<br>            ],<br>            &quot;tables&quot;: null,<br>            &quot;documentFields&quot;: [<br>               <br>                {<br>                    &quot;fieldType&quot;: &quot;KEY_VALUE&quot;,<br>                    &quot;fieldLabel&quot;: {<br>                        &quot;name&quot;: &quot;Name&quot;,<br>                        &quot;confidence&quot;: 0.8769196<br>                    },<br>                    &quot;fieldName&quot;: null,<br>                    &quot;fieldValue&quot;: {<br>                        &quot;valueType&quot;: &quot;STRING&quot;,<br>                        &quot;text&quot;: null,<br>                        &quot;confidence&quot;: null,<br>                        &quot;boundingPolygon&quot;: {<br>                            &quot;normalizedVertices&quot;: [<br>                                {<br>                                   <br>                                },<br>                                {<br>                                    <br>                                },<br>                                {<br>                                   <br>                                },<br>                                {<br>                                   <br>                                }<br>                            ]<br>                        },<br>                        &quot;wordIndexes&quot;: [<br>                            11<br>                        ],<br>                        &quot;value&quot;: &quot;JOHN&quot;<br>                    }<br>                },<br>                {<br>                    &quot;fieldType&quot;: &quot;KEY_VALUE&quot;,<br>                    &quot;fieldLabel&quot;: {<br>                        &quot;name&quot;: &quot;Address&quot;,<br>                        &quot;confidence&quot;: 0.8898434<br>                    },<br>                    &quot;fieldName&quot;: null,<br>                    &quot;fieldValue&quot;: {<br>                        &quot;valueType&quot;: &quot;STRING&quot;,<br>                        &quot;text&quot;: null,<br>                        &quot;confidence&quot;: null,<br>                        &quot;boundingPolygon&quot;: {<br>                            &quot;normalizedVertices&quot;: [<br>                                {<br>                                    <br>                                },<br>                                {<br>                                    <br>                                },<br>                                {<br>                                   <br>                                },<br>                                {<br>                                   <br>                                }<br>                            ]<br>                        },<br>                        &quot;wordIndexes&quot;: [<br>                            14<br>                        ],<br>                        &quot;value&quot;: &quot;ANYTOWN,&quot;<br>                    }<br>                }<br>            ]<br>        }<br>    ],<br>    &quot;detectedDocumentTypes&quot;: null,<br>    &quot;detectedLanguages&quot;: null,<br>    &quot;documentClassificationModelVersion&quot;: null,<br>    &quot;languageClassificationModelVersion&quot;: null,<br>    &quot;textExtractionModelVersion&quot;: null,<br>    &quot;keyValueExtractionModelVersion&quot;: &quot;dev&quot;,<br>    &quot;tableExtractionModelVersion&quot;: null,<br>    &quot;errors&quot;: null,<br>    &quot;searchablePdf&quot;: null<br>}</pre><p>I need to extract the document field name and value elements from JSON for example fieldLabel and value inside the document fields array objects which is inside the pages array object. I have used OIC to parse and extract required JSON elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JDOQ-uSapap4_uJ9FYDYnQ.png" /></figure><p>Below are the sequence steps followed to extract required elements from JSON.</p><p>Created REST Data Source to connect the AI service using OCI credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3heT_DTR-8QXO-P_UsU2ig.png" /><figcaption>REST Data Source to connect AI service</figcaption></figure><p>Created REST Data source to connect the OIC REST service using Basic Authentication credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MpBFH-5TpDwFMwcymKeuDQ.png" /><figcaption>REST Data source to connect OIC API</figcaption></figure><p>The OIC API POST method is configured with request payload like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eo139EEuSBanX-zLQXpwOg.png" /><figcaption>The POST Method Request Payload</figcaption></figure><p>I have used the Oracle integration cloud to parse the JSON and returns fields called field label and value.</p><p>The AI service response is a huge and will be stored in the data base table column data type is CLOB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FV12rCO9aR3yVs8ByhvPQg.png" /><figcaption>The JSON response stored in Table</figcaption></figure><p>Passing ai response from the table to OIC api as part of the request payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*AFqWq_yc7AYvOSGgq55QZQ.png" /><figcaption>The Query return the AI response and sends it OIC as part of Invoke API activity in Apex</figcaption></figure><p><strong>Oracle Integration Cloud flow:</strong></p><ol><li>Build the OIC Integration flow which will accept the JSON request in the form of string and responds back to APEX with key value pair</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*iuNT7qKONOYOHRu7OzEMOA.png" /><figcaption>Oracle Integration cloud flow</figcaption></figure><p>2. The OIC flow receives the JSON request in the form of string by using Trigger</p><pre>Trigger JSON configured in OIC REST adapter.<br><br>{<br>    &quot;ai_response&quot;: &quot;jsonData&quot;<br>}</pre><p>3. The first stage activity in the flow is used to Write string JSON data into file using opaque schema</p><p>4.The encodeBase64 OIC mapper function is used to convert string JSON to binary stream data. We need to use upload Opaque schema while configuring the stage activity.</p><pre>&lt;!--Opaque Schema--&gt;<br><br>&lt;schema targetNamespace=&quot;http://xmlns.oracle.com/pcbpel/adapter/opaque/&quot;<br>             xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; &gt;<br>       &lt;element name=&quot;opaqueElement&quot; type=&quot;base64Binary&quot; /&gt;<br>    &lt;/schema&gt;</pre><p>5. The second stage activity is used to read the data from the file and configure the JSON structure in the activity</p><p>6.The OIC Mapper is used to map the field label and value back to APEX</p><p>7.The reply activity is used to send the parsed JSON back to APEX.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vzc2KaJc6DZeMlvtVyjaCQ.png" /><figcaption>OIC Mapper</figcaption></figure><p>8.Finally OIC extracts below JSON object from the complex JSON and sends to APEX application as part of response.</p><p>{<br>“ai_res” : [ {<br>“key” : “Name”,<br>“value” : “JOHN”<br>}, {<br>“key” : “Address”,<br>“value” : “ANYTOWN,”<br>} ]<br>}</p><p>Thank you for reading!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0bd26e7b6b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>