Platform

Apps Architecture

An app is a thin conductor. It holds its pages, one process record and the order in which it calls the services. Everything a second app could use lives in a service.

DocFlow First app

A person signs in, uploads a document, Claude extracts the data, a person reviews what is uncertain, pays, and receives the results. See the product vision for the whole journey, and Platform Architecture for the services it calls.

The order it calls the services

Every arrow goes through the gateway at 01scale.com/api.

#FromToWhatCarries
1DocFlowUploadcreate file, confirm uploadperson token
2DocFlowExtractionstart job, held for DocFlowdelegated token
3ExtractionIdentitytoken for the owner—
4ExtractionUploadfetch the filedelegated token
5ExtractionDocFlowEvent: job completedSigned event
6DocFlowIdentitytoken for the owner—
7DocFlowExtractionread fieldsdelegated token
8DocFlowReviewcreate review task, held for DocFlowdelegated token
9DocFlowExtractionre-check corrected valuesperson token
10DocFlowReviewcomplete taskperson token
11DocFlowUploadstore result.json and result.csvperson token
12DocFlowPaymentcreate order at $5.00delegated token
13PaymentDocFlowEvent: order paidSigned event
14DocFlowExtractionrelease the job's resultsdelegated token
15DocFlowReviewrelease the task's fieldsdelegated token
16DocFlowDeliverysend emaildelegated token
17DeliveryIdentitylook up emailservice token
18DocFlowPaymentis it paid? (on every download)person token
19DocFlowUpload5-minute download linkperson token

A person token is the signed-in person's own. A delegated token is a 5-minute token for that person, issued by Identity to the acting service, used when no one is present and always for Payment and Delivery. A service token is the service acting as itself, never for a user's data. Read from the sequence diagram in the architecture document.

The process record

DocFlow keeps one table, docflow.documents, holding only the IDs of records other services own, and a status:

DocFlow's own modules

Later apps

AutoRep

Coming Soon...

AI-drafted replies to Google reviews, with its own agent graph (ARCHITECTURE.md §13). Designed; its Architecture & System Design comes with AUTOREP-V1-E1-02.

P2PFlow (Procure-to-Pay)

Coming Soon...

Purchase orders, invoices and payments, reusing the same services.

Order-to-Cash

Coming Soon...

Orders, invoicing and collection, reusing the same services.