Document Processing
The document processing functionality is the core of the Areal system. With our powerful AI models, we enable users to upload large mortgage loans in PDF format and get classified documents with structured extracted data.
Sequence Diagram
sequenceDiagram
participant User as 👤 User
participant API as 🖥️ Areal API
participant S3 as 📦 AWS S3
participant AI as 🤖 AI Services
%% Phase 1: Upload Preparation and Initiation
rect rgb(191, 223, 255)
User->>+API: Request upload URLs
API-->>-User: Pre-signed URLs + session_id
User->>+S3: Upload PDF
S3-->>-User: Upload confirmed
User->>+API: Start processing
API-->>-User: Processing started
end
%% Phase 2: Classification
rect rgb(200, 255, 200)
API->>AI: Send for classification
AI-->>API: Classification results
API->>User: Real-time update (classification done)
end
%% Phase 3: Extraction
rect rgb(255, 235, 200)
API->>AI: Send for extraction
AI-->>API: Extraction results
API->>User: Real-time update (extraction done)
end
%% Phase 4: Finalization
rect rgb(255, 200, 200)
API->>User: Email notification (processing completed)
end
Note over User: Multiple documents ready with extracted data
Asynchronous Processing
The entire flow is asynchronous, meaning that when you start the processing we will respond with a request_id which you can use to track of the status of the processing.
While users of Areal Dashboard can easily see the live status of their documents.
So if you are planning to integrate our API, you can use our WebSocket API or manually poll the status of the processing.
See Status Tracking for more details.