Idea Summary
Native AI Agent Framework for Oracle APEX Introduce a native "Agent Builder" within Shared Components that allows developers to create autonomous AI agents capable of executing PL/SQL logic, navigating application pages, and managing end-to-end business workflows. By leveraging Oracle AI Vector Search and OCI Generative AI natively, APEX eliminates the need for external middleware (like LangChain or Python services), keeping data and logic entirely within the database ecosystem.
Use Case
Autonomous Workflow Guide & Executioner A user enters a complex "Loan Application" app. Instead of manually navigating five different pages, the user tells the Agent, "I need to apply for a $50k small business loan." * The Agent checks the user's profile.
- It identifies missing documentation.
- It programmatically navigates the user to the "Upload" section and highlights the required fields.
- Once the data is entered, the Agent calls a PL/SQL "Approval" package and notifies the user of the result—all within a single conversational flow.
Preferred Solution (Optional)
To implement this without external dependencies, I suggest a "Schema-Aware Agent" architecture:
1. Agent Definition (Shared Components)
Create a new section called AI Agents. Here, developers define:
- System Prompt: The "Identity" and instructions for the agent.
- Knowledge Base: Direct mapping to local tables or Vector Indexes for RAG (Retrieval-Augmented Generation).
2. The "Toolbox" (Declarative Tool Calling)
Agents need "hands." We would implement a Tool Mapping interface where developers select existing:
- PL/SQL Procedures: To fetch or update data.
- APEX Page Processes: To trigger existing application logic.
- Navigation Commands: To redirect the user's browser session to specific pages.
3. Native Agent Region & API
- New Region Type: An "Agent Console" region that maintains conversation state.
- Server-Side API: A new
APEX_AGENT package to allow developers to programmatically send "instructions" to the agent based on page events (e.g., apex_agent.send(p_instruction => 'The user just failed validation. Help them fix the credit score field.');).
4. Security & Context
The Agent should automatically inherit the App Session Context. It should only be able to "see" and "do" what the logged-in user is authorized to do via APEX Authorization Schemes, ensuring zero data leakage.