HOL 2759AI World · Participant Guide
Build an Agent to do complex analysis with OACIntroductionParticipant Guide

Build an Agent to do complex analysis with OAC

Build and test a Deep Insights Agent for a multi-step business investigation.

BrightMart is a fictional electronics retailer. From Q2 to Q3 2026, its Sales rose while gross product Profit fell. You will review its prepared Order Lines dataset, create an agent, investigate the decline, and evaluate discount scenarios. You will check the evidence behind its answers and save the tested questions as Featured Prompts.

The presenters will provide your Oracle Analytics Cloud (OAC) instance URL and login details. The prepared dataset is in Catalog → Shared Folders → HOL-2759. Save the agent you create in My Folders.

Sign in to your workshop instance

  1. Open the instance URL provided by your presenters.
  2. On Oracle Cloud Account Sign In, enter your assigned username in User Name.
  3. Enter the password provided by your presenters in Password.
  4. Select Sign In to open Oracle Analytics.
Sign-in example with placeholder credentials. Enter the username and password provided by your presenters.
Sign-in example with placeholder credentials. Enter the username and password provided by your presenters.

Phase 1 · Review the Data Source

See how indexing, synonyms and AI Descriptions prepare the BrightMart dataset for your agent. The presenters have completed these settings; you will review them before creating your agent.

Phase 2 · Create Your Agent

Select the BrightMart dataset, enable Deep Insights, add Supplemental Instructions and a welcome message, then save your agent. Upload the supplied policy text file and verify that it is ready for use.

Phase 3 · Test Your Deep Insights Agent

Open the agent you created in Phase 2 from Catalog → My Folders and run three investigations. Review its queries, calculations and results in Thinking Events, then save the tested questions as Featured Prompts. Agent responses may be arranged differently from the screenshots; follow the named results and checks.

Alternative · Start directly with the investigations

If you could not create your agent in Phase 2 or prefer to begin with testing, use the prepared agent in Catalog → Shared Folders → HOL-2759-Quickstart → BrightMart Deep Insights - Quickstart. Select New chat, then run these Featured Prompts in order: Confirm Q2 and Q3 Performance, Investigate Q3 Profit Decline, and Evaluate Discount Scenarios. Follow Phase 3 to review each answer and its Thinking Events.

Start Phase 3 · Lab 1

Select Next to begin the full workshop.

Phase 1 · Review the Data Source

Phase 1: Review the Data Source for Your Deep Insights Agent

See how three settings prepare data for questions asked through the AI Assistant or an agent.

These three settings help the AI Assistant and your agent use a dataset’s indexed data and business metadata, such as column names and descriptions, to answer questions. This workshop uses the file-based BrightMart Order Lines dataset:

  • Indexing: Makes selected columns and values available to the AI Assistant and your agent when answering questions. A dataset must be indexed before the agent can use it.
  • Synonyms: Give a column familiar alternative names. For example, “gross profit” helps the agent match a question to the Profit column.
  • AI Descriptions: Explain business meaning that a column name cannot convey, such as units or how a measure should be aggregated. This helps the AI Assistant and agent interpret the data correctly.

The presenters have completed these settings for BrightMart Order Lines. Review them in the steps below, then use the prepared dataset to create your agent in Phase 2.

1. Find the BrightMart dataset
  1. Sign in using the instance URL and login details provided by the presenters. On the Oracle Analytics home page, select the Navigator icon at the upper left, then select Catalog.
    Select Navigator, then Catalog.
  2. In the Catalog left pane, select Shared Folders to expand it.
    Select Shared Folders in the Catalog tree.
  3. Under Shared Folders, open HOL-2759. The folder name appears in the breadcrumb at the top of the Catalog.
    Select HOL-2759; HOL-2759-Quickstart is the separate ready-to-use agent folder.
  4. Find BrightMart Order Lines inside HOL-2759. It is the dataset in this folder and supplies the Sales, Cost, Profit, Units and discount fields needed for all three investigations.
    BrightMart Order Lines is the dataset in HOL-2759.
2. Inspect indexing and business metadata
  1. Move your pointer over the rectangular BrightMart Order Lines card. When the three-dot Actions icon appears at the card’s lower right, click it.
    Click the three-dot Actions icon on the BrightMart Order Lines card.
  2. In the menu that opens, click Inspect.
    Select Inspect from the Actions menu.
  3. In Inspect, select Search on the left, then Settings at the top. Confirm Index Dataset For is set to Assistants and Homepage Search. This makes the indexed fields available for AI Assistant responses through your agent and for OAC homepage search.
    Search Settings: Index Dataset For is Assistants and Homepage Search.
  4. Select Check Now to refresh the index status, then read Last Run to see when indexing last ran. Run Now can run indexing again; the presenters have already done this for the workshop.
    Check Now, Last Run and Run Now on the Search Settings tab.
  5. Select Scope at the top of the Search window. This tab shows which fields are indexed and lists their synonyms.
    Select Scope to review indexed fields and synonyms.
  6. Scroll through Scope and confirm the Index boxes are selected for the fields used in this lab, including Profit.
    The Index box is selected for Profit.
  7. In Scope, check the Synonyms column. DiscountRate has discount percentage; Profit has gross profit. Synonyms help the agent match business terms to the right fields.
    DiscountRate has the synonym discount percentage.
    Profit has the synonym gross profit.
  8. Select AI descriptions. Read the dataset description and scroll to DiscountRate and Profit. Descriptions add meaning that names and synonyms alone cannot convey, such as units and aggregation rules. Here they help the agent treat Profit as gross product profit rather than company net income.
    Select AI descriptions and read the dataset description.
    Read how DiscountRate and Profit are defined.
  9. Select Close at the upper right. Indexing, synonyms and AI descriptions are ready, so you can use this prepared dataset when creating your agent.
    Close the Inspect window to return to the Catalog.

Learning outcome: Find the prepared BrightMart Order Lines dataset and the Search settings used to index its fields, add synonyms and add AI Descriptions. Understand how each setting helps your agent answer business questions more accurately.

Note · Using a subject area instead? Its indexing path is different. An administrator uses Navigator → Console → Search Index (under Configuration and Settings) → Data Model, selects Assistants for the subject area and required columns, then selects Save. Run Now can rebuild the index. See Oracle’s subject-area indexing instructions.
Phase 2 · Create Your Agent

Phase 2: Create Your Deep Insights Agent

Create your own agent from the prepared BrightMart dataset, then add its business guidance and policy document.

1. Start an agent and add its data
  1. From any Oracle Analytics page, select Navigator (the nine-dot icon at the upper left), then Catalog. Select My Folders in the left pane. Select Create at the upper right, then select AI Agent.
    From Catalog, select Create → AI Agent.
  2. In the Add Data window, select the BrightMart Order Lines row. Then select Add to Agent at the lower right. The button becomes available after you select the row. Confirm that BrightMart Order Lines appears in the editor’s left data pane.
    Select BrightMart Order Lines, then Add to Agent.
2. Configure Deep Insights and save
  1. On the Configuration tab, select Create as AIDP Deep Insights Agent. AIDP means Oracle AI Data Platform. The checkbox becomes selected and gray after you enable it because this setting is then locked.
    Create as AIDP Deep Insights Agent is selected and locked.
  2. Select the Supplemental Instructions box. Use Copy text immediately below this step, then paste the complete text into that box. These instructions define the measures, scope and evidence limits for this agent.
    SUPPLEMENTAL INSTRUCTIONS
    Role and sources
    • You are a retail profitability analyst for the fictional BrightMart workshop. Use only attached sources.
    • Separate measured facts, calculations, document rules, assumptions, and interpretation.
    
    Data scope and definitions
    • BrightMart Order Lines has one completed item per OrderLineID; OrderID may repeat.
    • Use calendar 2026-Q2 and 2026-Q3 and USD unless the user specifies otherwise.
    • Sales is revenue after discount. Profit = Sales − Cost, where Cost is product acquisition cost. Profit is gross product profit, not company net income.
    • GrossSales, DiscountAmount, Sales, Cost, Profit, and Units are additive.
    
    Calculations
    • Aggregate Profit margin = SUM(Profit) / SUM(Sales).
    • Weighted discount rate = SUM(DiscountAmount) / SUM(GrossSales).
    • Weighted unit cost = SUM(Cost) / SUM(Units).
    • Weighted list price = SUM(GrossSales) / SUM(Units).
    • Do not sum unit prices or rates.
    
    Investigations
    • For diagnostic questions, compare category, region, and channel; cite figures and state limitations.
    • Use governed source measures and the correct aggregation grain before optional Python analysis.
    
    Scenarios and policy
    • For scenario analysis, state fixed-volume assumptions and keep hypothetical calculations separate from actual results. A discount scenario is not a demand forecast.
    • Use retrieved policy text for policy questions. A discount above a threshold is not proof of missing approval without an approval record.
    • Do not infer causal customer behavior, competitor activity, or returns from missing fields.
    
    Response
    • Provide a concise answer, supporting figures, method, assumptions, limitations, and recommended next checks.
    Supplemental Instructions entered in the new agent.
  3. Select the First Message box. Use Copy text immediately below this step and paste the welcome message. Users will see it when they open the agent.
    FIRST MESSAGE
    Welcome to BrightMart Deep Insights.
    
    • BrightMart is a fictional electronics retailer. Sales rose from Q2 to Q3 2026, while gross product Profit fell.
    • Ask me to compare quarterly Sales and Profit, investigate category and region/channel contributors, or test a clearly stated pricing scenario.
    • I can use the promotion policy after it is uploaded. All amounts are USD.
    • Check the supporting figures and Thinking Events before acting on a recommendation.
    First Message entered below Supplemental Instructions.
  4. Select the Save icon at the upper right.
    Editor toolbar: Preview and Save icons.
    Editor toolbar: Preview and Save icons.
  5. In Save AI Agent As, name your agent BrightMart Deep Insights - Your Name, replacing Your Name with your own name. The example below uses BrightMart Deep Insights - Ravi. Confirm the location shows All → My Folders, then select OK.
    Example: BrightMart Deep Insights - Ravi saved in My Folders.
3. Add and check the policy document
  1. Select Download BrightMart Promotion Policy (.txt) immediately below this step and save the file on your laptop. It supplies the discount policy that the agent may retrieve during an investigation.

    Download BrightMart Promotion Policy (.txt)

  2. Open your saved agent. If it opens in chat view, select Edit at the upper right. In the editor, open Configuration.
    Agent chat: select Edit to return to the editor.
    Agent chat: select Edit to return to the editor.
  3. Select Upload new document and choose the downloaded text file. The button becomes available after the agent has been saved.
    Upload new document in the saved agent.
  4. In Document Knowledge, enter BrightMart Promotion Policy in Title. Leave Priority at Regular and Language at English (Default). Confirm Enable Document Usage in Agent is selected, then select Save.
    Document Knowledge: confirm the title and enabled usage, then Save.
  5. Find BrightMart Promotion Policy in the document list. Wait for its row to show Status: Ready and Usage in Agent: Enabled. If it is still processing, select the refresh icon beside Upload new document and check again.
    BrightMart Promotion Policy is Ready and Enabled.
  6. Select the agent Save icon again before testing.
    Editor toolbar: select Save after the document is ready.
    Editor toolbar: select Save after the document is ready.

Learning outcome: Create a Deep Insights Agent from an indexed dataset and confirm its policy document is available to the agent.

Phase 3 · Test Your Deep Insights Agent

Lab 1: Confirm the Sales and Profit Gap

Establish the quarterly totals before investigating the Profit decline.

1. Run the prompt
  1. Open Catalog → My Folders, then open the BrightMart agent you created and saved in Phase 2. The example below uses BrightMart Deep Insights - Ravi; open the agent with your own name.

    Open the agent you created in My Folders.

    Select New chat on the left. Start a new chat for each lab.

    Your saved agent: select New chat to begin the lab.
  2. Leave the preselected Research mode and model setting unchanged. The model selector is at the right end of the message field.
    Default model selector and Submit arrow in the saved agent.
  3. Select Copy prompt below and paste the question into your agent’s message field. Select the Submit arrow to run the question. Wait for the agent to finish before reviewing its report and Thinking Events.
    Paste the lab question into your saved agent, then submit.
LAB 1 PROMPT · PASTE INTO DEEP INSIGHTS
Use BrightMart Order Lines. Show a table of total Sales, Cost, Profit and Units by Quarter for calendar 2026-Q2 and 2026-Q3.
2. Validate the results
  1. In the completed response, find the BrightMart Order Lines — Quarterly totals table. Compare the 2026-Q2 and 2026-Q3 rows for Sales, Cost, Profit and Units. Notice that Sales rose while Profit fell.
    Quarterly totals returned by BrightMart Deep Insights - Ravi.
  2. Select Show Thinking Events above the report. Follow the source and column-inspection events, then expand Executed Logical SQL. Under Result, compare each quarter’s figures with the final response table. Match the column names because their order may differ.
    Compare the executed SQL Result with the agent’s final quarterly table.
  3. Review the event list to see which tools actually ran. This captured run returned the totals through Logical SQL without a Python step. If your run includes Executed Python code, open it to see what additional checks it performed.
    This Lab 1 run used Logical SQL and shows no Executed Python code event.
Review the agent’s analysis and tool sequence
  1. In Thinking Events, follow the source-inspection events, Executed Logical SQL and any Executed Python code in order. This shows how the agent moves from the question to supporting data and validation checks.
  2. Open Executed Logical SQL → Result to review the Q2 and Q3 Sales, Cost, Profit and Units returned by OAC.
  3. This captured run needed no Python step: the question asks for quarterly totals already returned by the OAC query. If your run uses Python, inspect its inputs and Result to understand the additional calculation or check.
  4. Compare the executed results with the final response table. This shows which queries and validation checks support the answer; the tools and sequence may vary between runs.

Learning outcome: Follow the sequence in Thinking Events, identify the tools and validation checks used, and confirm that the final Q2 and Q3 figures match the executed query results.

Phase 3 · Test Your Deep Insights Agent

Lab 2: Identify Profit Contributors

Identify the product categories and selling segments that contributed most to the Profit decline.

1. Run the prompt
  1. Open Catalog → My Folders, then open the BrightMart agent you created and saved in Phase 2. The example below uses BrightMart Deep Insights - Ravi; open the agent with your own name.

    Select New chat on the left. Start a new chat for each lab.

    Your saved agent: select New chat to begin the lab.
  2. Leave the preselected Research mode and model setting unchanged. The model selector is at the right end of the message field.
    Default model selector and Submit arrow in the saved agent.
  3. Select Copy prompt below and paste the question into your agent’s message field. Select the Submit arrow to run the question. Wait for the agent to finish before reviewing its report and Thinking Events.
    Paste the lab question into your saved agent, then submit.
LAB 2 PROMPT · PASTE INTO DEEP INSIGHTS
Use BrightMart Order Lines. Sales increased from calendar 2026-Q2 to 2026-Q3, but Profit decreased. Investigate which ProductCategories contributed most to the Profit change. For the largest declining category, investigate Region and Channel, then compare Units, list prices, discounts, and unit costs. State your analytical approach, show the supporting figures and a structured report, and identify assumptions and missing evidence. Use the data to establish contributors; do not assume that an observed promotion caused changes in customer demand.
2. Review the contributor analysis
  1. Read the Executive finding at the top of the report. Identify the category and selling segment contributing most to the Profit decline.
    The new agent identifies Laptops and West / Online as the main adverse contributors.
  2. Scroll to Overall quarter comparison and Product Category contributors to the Profit change. Compare Sales and Profit, then check which category has the largest Profit decline.
    Quarterly totals and category Profit changes in the new agent’s report.
  3. Continue to Laptops: Region and Channel investigation. Compare the Region and Channel charts, then read Laptops: West Online supporting figures to check Units, prices, discounts, Cost and Profit.
    Region and Channel comparisons show where Laptop Profit declined.
  4. Read Interpretation and Recommended next checks. Separate measured Profit contributors from possible causes that need additional evidence.
    The report explains the observed change and identifies evidence needed before action.
  5. Select Show Thinking Events. Expand Executed Logical SQL and Executed Python code if present. Compare the returned figures and calculations with the report.
    Executed Python code: calculation inputs, code and Result.
Review the agent’s analysis and tool sequence
  1. Follow Thinking Events in order to see how the agent inspects the source and retrieves data for the investigation.
  2. Review Executed Logical SQL → Result for the quarter, category, Region and Channel figures used in the report.
  3. If Executed Python code appears, inspect its calculations and Result. In the captured run, Python calculated Profit changes, compared segments, and calculated weighted price, discount and unit-cost measures.
  4. Check how those results support the category ranking and the West / Online finding. Read the report’s limitations before accepting a suggested cause or action; tools and event order may vary between runs.

Learning outcome: Follow the agent’s investigation from query results to category and segment comparisons, and verify the evidence supporting its findings.

Phase 3 · Test Your Deep Insights Agent

Lab 3: Evaluate Discount Scenarios

Compare the Profit impact of four discount rates while holding Units, list price and product Cost fixed.

1. Run the prompt
  1. Open Catalog → My Folders, then open the BrightMart agent you created and saved in Phase 2. The example below uses BrightMart Deep Insights - Ravi; open the agent with your own name.

    Select New chat on the left. Start a new chat for each lab.

    Your saved agent: select New chat to begin the lab.
  2. Leave the preselected Research mode and model setting unchanged. The model selector is at the right end of the message field.
    Default model selector and Submit arrow in the saved agent.
  3. Select Copy prompt below and paste the question into your agent’s message field. Select the Submit arrow to run the question. Wait for the agent to finish before reviewing its report and Thinking Events.
    Paste the lab question into your saved agent, then submit.
LAB 3 PROMPT · PASTE INTO DEEP INSIGHTS
Use BrightMart Order Lines. For Laptops sold Online in West during calendar 2026-Q3, retrieve the governed Units, GrossSales, DiscountAmount, Sales, Cost and Profit totals. Use a supported Python calculation to compare discount rates of 30%, 20%, 15% and 10% on those same orders. Hold units, list price, product cost and all other orders fixed. Report scenario Sales, Profit, Profit uplift from actual, and total company Q3 Profit. Show the calculation method and the break-even discount rate. Identify the Python step if one executes. Treat this as arithmetic sensitivity, not a demand forecast or a prediction of realized profit.
2. Check the calculation
  1. Read Actual governed totals first. Confirm the scenario starts with West / Online Laptop orders for calendar 2026-Q3.
    Actual totals for the selected orders: 300 Units and −$27,000 Profit.
  2. Scroll to Discount-rate scenarios. Compare the 30%, 20%, 15% and 10% rows. At 20%, segment Profit is $3,000, an uplift of $30,000 from actual.
    Four discount scenarios calculated from the same actual orders.
  3. Read Method and break-even, then Interpretation and limitations. The break-even discount is 21%. Units, list price, Cost and all other orders remain fixed; these are arithmetic comparisons, not demand forecasts.
    The 21% break-even result and the assumptions behind the scenarios.
  4. Select Show Thinking Events. Expand Executed Python code and compare Call Parameters and Result with the scenario table. This run used two executed query results: the selected orders and company Q3 Profit.
    Python validates the retrieved totals and calculates the fixed-volume scenarios.
Review the agent’s analysis and tool sequence
  1. Follow Thinking Events to see the sequence from retrieved actual totals to the discount-scenario calculations.
  2. Review Executed Logical SQL → Result to confirm the actual Units, GrossSales, Sales, Cost and Profit used as inputs.
  3. Inspect Executed Python code if present. The prompt requests Python; in the captured run, it calculated scenario Sales and Profit, the change from actual Profit, and the break-even discount rate.
  4. Compare the calculation result with the scenario table and confirm that Units, list price, product Cost and all other orders stay fixed.

Learning outcome: Evaluate discount scenarios and verify the assumptions and calculations behind the results.

Optional: Compare a second model

In a new chat, run the same Lab 3 prompt with Research · gpt-5.6-sol (Medium), if that option is available in your assigned instance.

In the reference capture, the 20% scenario still shows $3,000 segment Profit, $30,000 uplift, and a 21% break-even discount. The response organizes and explains the result differently.

Changing the model can change the analysis path, tool choices and presentation. Compare the executed results in Thinking Events and check the assumptions before using either answer. This screenshot does not show whether Python executed in the second run.

Optional Lab 3: same prompt with gpt-5.6-sol (Medium).
Optional Lab 3: same prompt with gpt-5.6-sol (Medium).
Finish

Learning Summary

You verified the source, created an agent, tested its analysis and made the questions reusable.

  • Identify an indexed dataset and inspect its synonyms and AI Descriptions.
  • Create a Deep Insights Agent, add instructions and ingest a policy text file.
  • Check a response against the executed query and calculation results.
  • Investigate a Profit change and evaluate a pricing scenario with stated assumptions.
  • Save the three tested questions as Featured Prompts.

The agent connects prepared business context with the tools needed for each question. Review its evidence and limits before using a recommendation.