%% Document intake pipeline on gcp. Generated; edit the catalog, not this file. flowchart LR subgraph people["People and channels"] n_senders["Suppliers and claimants
Person"]:::people n_intake["Upload portal and inbox
Cloud Run"]:::people n_erp["ERP or claims system
External system"]:::people end subgraph control["Control and trust"] n_gateway["Model gateway
Apigee (AI gateway policies)"]:::control end subgraph intelligence["Intelligence and work"] n_queue["Intake queue
Eventarc"]:::intelligence n_pipeline["Extraction workflow
Workflows"]:::intelligence n_model["Extraction model
Gemini 3.8 Flash (Agent Platform)"]:::intelligence n_rules["Validation and master data
MCP server on Cloud Run"]:::intelligence end subgraph knowledge["Knowledge and records"] n_landing["Landing bucket
Cloud Storage"]:::knowledge n_parser["Layout and OCR parser
Document AI"]:::knowledge n_ledger["Case and field ledger
AlloyDB for PostgreSQL"]:::knowledge end subgraph assurance["Assurance and operations"] n_exceptions["Exception console
Review console on Cloud Run"]:::assurance n_traces["Pipeline telemetry
Cloud Logging, Monitoring, Trace"]:::assurance n_evals["Field-level eval set
Evaluation service (Agent Platform)"]:::assurance end %% flow submit (data, confidential) n_senders -->|"Document"| n_intake %% flow store-original (data, confidential) n_intake -->|"Original with content hash"| n_landing %% flow enqueue (control, confidential) n_landing -.->|"Object created event"| n_queue %% flow start (control, confidential) n_queue -.->|"Start run keyed by hash"| n_pipeline %% flow parse (data, confidential) n_pipeline -->|"Pages"| n_parser %% flow extract (data, confidential) n_pipeline -->|"Layout text and schema"| n_gateway %% flow infer (data, confidential) n_gateway -->|"Model call"| n_model %% flow validate (data, confidential) n_pipeline -->|"Fields to check"| n_rules %% flow record (data, confidential) n_pipeline -->|"Fields, coordinates, rule results"| n_ledger %% flow post (data, confidential) n_pipeline -->|"Post with idempotency key"| n_erp %% flow except (control, confidential) n_pipeline -.->|"Exception with failing field"| n_exceptions %% flow resolve (control, confidential) n_exceptions -.->|"Corrected field resumes run"| n_pipeline %% flow telemetry (telemetry, operational) n_pipeline -.-o|"Step timings and cost"| n_traces %% flow score (control, confidential) n_evals -.->|"Replay labelled set per release"| n_pipeline classDef people fill:#8AB4FF22,stroke:#8AB4FF,color:#0f1017 classDef control fill:#B9A7FF22,stroke:#B9A7FF,color:#0f1017 classDef intelligence fill:#5EE6CF22,stroke:#5EE6CF,color:#0f1017 classDef knowledge fill:#FFC07A22,stroke:#FFC07A,color:#0f1017 classDef assurance fill:#FF9FCB22,stroke:#FF9FCB,color:#0f1017