From supplier inbox to ERP — the complete technical picture of how Flowstate works.
Every freight document takes the same deterministic path — from supplier inbox to ERP, with zero manual intervention at any step.
Multipart form parsing extracts PDF attachments from raw SendGrid webhook payloads. Any attachment format, any PDF version.
Gemini 2.5 Flash receives the PDF as a base64-encoded blob. It returns structured JSON with vendor, PO, line items, weights, and dates.
Validated JSON is POSTed to your ERP_WEBHOOK_URL via httpx. Flowstate logs the HTTP status, response time, and result hash.
A real-time view into everything Flowstate is doing. Processing stats, event log, and a live PDF tester — all in one dark-mode dashboard.
| Timestamp | Vendor | PO # | Status | Duration |
|---|---|---|---|---|
| 2026-03-24 14:32:11 | Pacific Coast Supply | PO-2847 | ACCEPTED | 2.3s |
| 2026-03-24 13:18:44 | Gulf Freight Solutions | PO-2846 | REJECTED | 3.1s |
| 2026-03-24 11:55:02 | Midwest Logistics Co. | PO-2845 | ACCEPTED | 1.9s |
Every extracted document is validated deterministically before any data is forwarded. Mathematical discrepancies are caught here — not discovered later in your ERP.
Tolerance handling: By default, a delta above 0.5% triggers a rejection. The threshold is configurable per client. Sub-threshold discrepancies are logged as warnings but do not block the ERP push.
When validation fails, your team knows instantly — before bad data reaches your ERP. Alerts go to Slack and email simultaneously, with the full context needed to investigate.
| Vendor | Pacific Coast Supply Co. |
| PO Number | PO-2847 |
| Issue | Math mismatch on line item 2 |
| Expected | 1,075.2 lbs (48 × 22.4) |
| Received | 987.6 lbs |
| Delta | 87.6 lbs (8.1%) |
Your documents are never written to disk, never persisted in any database, and never stored anywhere beyond the duration of processing. This is Ghost Protocol.
Book a demo and we'll process your actual packing slips live — no setup required on your end.