Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ace3500
creating markdown for WMS 11959
uma-kumar Oct 6, 2025
49a02c0
markdown for fsi
uma-kumar Oct 6, 2025
7431023
11959 Intro.md
uma-kumar Oct 6, 2025
ac53a7c
Merge branch 'oracle-livelabs:main' into main
uma-kumar Oct 7, 2025
9fb2b86
updated markdown + images for labs 1 and 2
danielhart17 Oct 10, 2025
59f3b3c
updates
deionlocklear Oct 10, 2025
633d039
overview and highlights markdown
uma-kumar Oct 10, 2025
f19d832
update loan policy manuals
danielhart17 Oct 10, 2025
7a2eaf3
Merge branch 'main' into pr/437
danielhart17 Oct 10, 2025
31ca011
Merge branch 'pr/438'
deionlocklear Oct 10, 2025
8adf083
Update test-the-solution-tenancy.md
deionlocklear Oct 10, 2025
e087992
updates to images and md
deionlocklear Oct 13, 2025
0374105
overview and highlights markdown fixes
uma-kumar Oct 13, 2025
b551eb5
updated lab3&4
deionlocklear Oct 14, 2025
ba71fdd
lab consolidation
uma-kumar Oct 14, 2025
d808289
sandbox markdowns
uma-kumar Oct 15, 2025
116e5ba
autonomous ai db updates
uma-kumar Oct 17, 2025
ae7ffee
markdown updates
uma-kumar Oct 20, 2025
cf3ff95
Merge branch 'main' of https://github.com/uma-kumar/analytics-ai
uma-kumar Oct 24, 2025
40261ee
markdown cosmetic updates
uma-kumar Oct 24, 2025
536ea14
updates
deionlocklear Oct 28, 2025
2f5c309
updates
deionlocklear Oct 29, 2025
24c7d3f
updates
deionlocklear Oct 30, 2025
4fb2842
Merge branch 'main' of https://github.com/deionlocklear/analytics-ai
deionlocklear Oct 30, 2025
5fa0023
Merge branch 'main' into main
deionlocklear Oct 31, 2025
f67495c
Merge branch 'pr/445'
deionlocklear Oct 31, 2025
3186871
Merge branch 'main' of https://github.com/deionlocklear/analytics-ai
deionlocklear Oct 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ This lab assumes you have:
## Task 1: Overview of the chat page functionality

1. If the agent is still not showing as **Active**, give it a few more minutes to complete the provisioning process.
1. Once the agent is showing as **Active**, click the **loan compliance officer** agent in the **Agents** list.
1. Once the agent is showing as **Active**, click the **loan compliance agent** in the **Agents** list.

![Screenshot showing the active agent in the agents list](./images/click-agent-from-table-sandbox.png)

1. In the agent details page, click the **Launch chat** button.

![Screenshot showing the agent details page with the launch chat button highlighted](./images/launch-chat-button.png)

1. In the chat page, on th left, make sure sure that both the **Agent compartment** and the **Agent endpoint compartment** are set to your compartment.
1. In the chat page, on the left, make sure sure that both the **Agent compartment** and the **Agent endpoint compartment** are set to your compartment.

1. On the top of the page, the **Agent** drop down should show **loan compliance officer** and the **Agent endpoint** drop down should show the newly created endpoint.
1. On the top of the page, the **Agent** drop down should show **loan compliance agent** and the **Agent endpoint** drop down should show the newly created endpoint.
1. In the chat window, you'll be able to see the greeting message we have configured for the agent.
1. Other elements in the page include:

Expand All @@ -52,7 +52,7 @@ This lab assumes you have:

## Task 2: Let's test our agent

1. To start, type the following question into you message box: _How many loan applications are pending review?_.
1. To start, type the following question into you message box: _How many loan applications have been denied since June 2025?_
1. Click the **Submit** button.

![Screenshot showing the first question for the agent](./images/send-first-question.png)
Expand All @@ -71,33 +71,42 @@ This lab assumes you have:
![Screenshot showing the SQL tool trace](./images/first-question-traces-2.png)

1. The third trace shows how the agent composed the final response using the output of the previous steps.
1. Click the **Close** button to close the traces pane.

![Screenshot showing the trace for the final response](./images/first-question-traces-3.png)

1. Our next question would be: _Which loan officer has the most applications assigned?_. Let's see if the agent will be able to figure that out...
1. Click the **Close** button to close the traces pane.
1. Our next question would be: _Which loan officer has the most applications assigned?_ Let's see if the agent will be able to figure that out...
1. Click the **Submit** button.

![Screenshot showing the first question for the agent](./images/send-second-question.png)

1. The agent shows the correct answer: **Olivia Brown**. Using the magic of Large Language Models (LLMs) and the clues we've left in the configuration of the agent and tools, the agent was able to decipher that the loan officer with the most applications assigned to them.
1. The agent shows the correct answer: **Olivia Brown**. Using the magic of Large Language Models (LLMs) and the clues we've left in the configuration of the agent and tools, the agent was able to decipher that the loan agent with the most applications assigned to them.

![Screenshot showing the response for the second question](./images/second-question-response.png)

1. Feel free to take a look at the **Traces** generated for this response.
1. Next we'll ask the following: _List applications that have been pending for more than 7 days._
1. Next we'll ask the following: _List applications that have been in progress for more than 7 days._
1. Click the **Submit** button.

![Screenshot showing the third question for the agent](./images/send-third-question.png)

1. As you can see, the response included the type and amount for the two loans that have been pending for more than 7 days.
1. The agent returned information on the one application that has been pending review for more than 7 days.

![Screenshot showing the third question for the agent](./images/third-question-response.png)

1. Now that we have information about the tickets, let's see if we can pull up a loan policy document which can help us define "Debt-to-Income" limits. Type the following question: _Retrieve the policy document section that defines Debt-to-Income (DTI) limits and any exceptions._
1. Click the **Submit** button.
1. As you can see, for this question, the agent figured out that the information required might be in the knowledge base articles. For this task it employed the RAG tool which searched for the relevant information in our loan policy docs stored in object storage. Feel free to look at the traces for this interaction which show the steps the agent took to give us the information we needed. In the response you can see that a summary of the document was provided, but, also, if you expand the **View citations** section, you'll be able to see a reference to the document(s) which were used to compose the reply with a direct link to the file(s), the page(s) from which content was extracted and more.

![test](./images/third-question-traces-1.png)

1. Next we'll ask the following: _Identify any approved applications that violate policy (DTI or credit score); cite the rule and the record._
1. Click the Submit button.

![test](./images/send-fourth-question.png)

1. The agent successfully detected an approved applicant whose credit score was inconsistent with the requirements outlined in the DTI and Credit Policy document.

![test](./images/fourth-question-response.png)

1. We invite you to try some prompts of your own to experiment with agent.
Expand All @@ -108,22 +117,21 @@ Here are a few more prompts to try with the agent:

- _What is the minimum credit score for FHA vs Conventional loans?_
- _Show the distribution of credit scores by loan type_
- _Identify any approved applications that violate policy (DTI or credit score); cite the rule and the record._
- _Give me a risk dashboard: counts by status, average credit score and DTI by loan type, and total requested amount; include links to policy sections that define ‘risk’_
- _Provide the policy language for VA loan eligibility and list the denied VA applications from the database_

## Summary

As you've experienced, the OCI Generative AI service allows you to ask complex questions about data stored in multiple locations and get intelligent answers. By simply pointing the various tools towards your data sources and providing the right context, the agent was able to automatically determine which data source should be accessed, retrieve the data for you, compile a coherent and concise response and provide references to the original data when applicable.
As you've experienced, the OCI AI Agents service allows you to ask complex questions about data stored in multiple locations and get intelligent answers. By simply pointing the various tools towards your data sources and providing the right context, the agent was able to automatically determine which data source should be accessed, retrieve the data for you, compile a coherent and concise response and provide references to the original data when applicable.

Another interesting advantage of building solutions on top the OCI Generative AI service is that the user is no longer restricted to tasks allowed by the application user interface. With a chat interface, the user can ask questions and get answers to any question which can be answered using the data in the system even if the system engineers did not plan for that specific scenario. For example, you can ask the agent to sort the results in any way that is supported by the data even if the application was not designed to give you that option.
Another interesting advantage of building solutions on top the OCI AI Agents service is that the user is no longer restricted to tasks allowed by the application user interface. With a chat interface, the user can ask questions and get answers to any question which can be answered using the data in the system even if the system engineers did not plan for that specific scenario. For example, you can ask the agent to sort the results in any way that is supported by the data even if the application was not designed to give you that option.

Although our use-case was focused on loan compliance, the OCI Generative AI service can be used to fuel many different use-cases which require deep understanding and retrieval of information from internal data sources, reasoning over the data, summarizing it, providing insights and more.
Although our use-case was focused on loan compliance, the OCI AI Agents service can be used to fuel many different use-cases which require deep understanding and retrieval of information from internal data sources, reasoning over the data, summarizing it, providing insights and more.

## Learn More

- [Chatting with Agents in Generative AI Agents](https://docs.oracle.com/en-us/iaas/Content/generative-ai-agents/chatting.htm#chatting)

## Acknowledgements

- **Author** - Uma Kumar
- **Contributors** - Hanna Rakhsha, Daniel Hart, Deion Locklear, Anthony Marino
- **Author** - Deion Locklear
- **Contributors** - Hanna Rakhsha, Daniel Hart, Uma Kumar, Anthony Marino
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ This lab assumes you have:

## Task 2: Let's test our agent

1. To start, type the following question into you message box: _How many loan applications are pending review?_.
1. To start, type the following question into you message box: _How many loan applications have been denied since June 2025?_
1. Click the **Submit** button.

![Screenshot showing the first question for the agent](./images/send-first-question.png)
Expand All @@ -71,11 +71,11 @@ This lab assumes you have:
![Screenshot showing the SQL tool trace](./images/first-question-traces-2.png)

1. The third trace shows how the agent composed the final response using the output of the previous steps.
1. Click the **Close** button to close the traces pane.

![Screenshot showing the trace for the final response](./images/first-question-traces-3.png)

1. Our next question would be: _Which loan agent has the most applications assigned?_. Let's see if the agent will be able to figure that out...
1. Click the **Close** button to close the traces pane.
1. Our next question would be: _Which loan officer has the most applications assigned?_ Let's see if the agent will be able to figure that out...
1. Click the **Submit** button.

![Screenshot showing the first question for the agent](./images/send-second-question.png)
Expand All @@ -85,19 +85,28 @@ This lab assumes you have:
![Screenshot showing the response for the second question](./images/second-question-response.png)

1. Feel free to take a look at the **Traces** generated for this response.
1. Next we'll ask the following: _List applications that have been pending for more than 7 days._
1. Next we'll ask the following: _List applications that have been in progress for more than 7 days._
1. Click the **Submit** button.

![Screenshot showing the third question for the agent](./images/send-third-question.png)

1. As you can see, the response included the type and amount for the two loans that have been pending for more than 7 days.
1. The agent returned information on the one application that has been pending review for more than 7 days.

![Screenshot showing the third question for the agent](./images/third-question-response.png)

1. Now that we have information about the tickets, let's see if we can pull up a loan policy document which can help us define "Debt-to-Income" limits. Type the following question: _Retrieve the policy document section that defines Debt-to-Income (DTI) limits and any exceptions._
1. Click the **Submit** button.
1. As you can see, for this question, the agent figured out that the information required might be in the knowledge base articles. For this task it employed the RAG tool which searched for the relevant information in our loan policy docs stored in object storage. Feel free to look at the traces for this interaction which show the steps the agent took to give us the information we needed. In the response you can see that a summary of the document was provided, but, also, if you expand the **View citations** section, you'll be able to see a reference to the document(s) which were used to compose the reply with a direct link to the file(s), the page(s) from which content was extracted and more.

![test](./images/third-question-traces-1.png)

1. Next we'll ask the following: _Identify any approved applications that violate policy (DTI or credit score); cite the rule and the record._
1. Click the Submit button.

![test](./images/send-fourth-question.png)

1. The agent successfully detected an approved applicant whose credit score was inconsistent with the requirements outlined in the DTI and Credit Policy document.

![test](./images/fourth-question-response.png)

1. We invite you to try some prompts of your own to experiment with agent.
Expand All @@ -108,8 +117,7 @@ Here are a few more prompts to try with the agent:

- _What is the minimum credit score for FHA vs Conventional loans?_
- _Show the distribution of credit scores by loan type_
- _Identify any approved applications that violate policy (DTI or credit score); cite the rule and the record._
- _Give me a risk dashboard: counts by status, average credit score and DTI by loan type, and total requested amount; include links to policy sections that define ‘risk’_
- _Provide the policy language for VA loan eligibility and list the denied VA applications from the database_

## Summary

Expand Down