Oracle AI Agent Studio allows you to create custom AI agents capable of reading unstructured documents and extracting relevant data directly into a structured format.
This article explains how to enable file attachments, configure the necessary tools, and format the extracted data into JSON.
Step 1: Enable the File Upload Option in the Agent Team
Before an agent can process a document, you must provide a way for users to upload files.
- Navigate to the Chat Experience tab while creating or editing your AI Agent team.
- Locate the Enable file upload setting.
- Toggle the option to On. This allows users to attach documents directly within the chat interface.
- Go to the agent configuration settings.
- Add the Oracle standard tool "Multi File Processor" to the agent.
- This tool processes the uploaded document and makes its textual content accessible to the agent's language model.
- Configure the agent's Persona and Role to match the business requirements (for example, a "Purchase Order Data Extraction Specialist").
- Write a clear, concise system prompt detailing what data points need to be collected.
- Test the agent and refine the instructions if the initial results do not capture all the required information.
- Define a strict JSON schema within the agent configuration.
- Specify the exact keys, data types (such as strings, numbers, or arrays), and mandatory fields you expect in the final output.
- This ensures that the agent translates unstructured document text into a clean, predictable JSON object every time.
Sample JSON:

