SDS Assistant · Fábrica de Tintas 2000

From supplier email to a checked, ERP-ready safety data sheet in seconds. Real supplier documents are read only by our own AI server.

  • 151 Raised
  • 386 Views
  • 2 Judges

Tags

  • Internal Processes

Categories

  • Automation
  • Room 4

Gallery

Description

The problem

Fábrica de Tintas 2000 is a paint manufacturer in Maia, Portugal. Two critical flows run on unstructured email and are handled by hand:

  • Supplier safety data sheets (SDS), technical data sheets and certificates. For each SDS (about 30 a month), the lab reads 16 sections, checks 8 mandatory points and EU Regulation 2020/878, types the result into Sage X3, types it again into an Excel checklist, and emails the supplier when something is wrong: 8 to 25 minutes per SDS.
  • Customer sample requests. Samples requested directly from the lab leave no record and no approval.

Our solution

An AI assistant that reads the inbox and prepares the record:

  1. Reads emails and attachments (.eml, PDF, scanned pages through OCR).
  2. Classifies each attachment: SDS, technical data sheet, certificate or other (customer sample requests: a separate prototype, same design).
  3. Extracts the Sage X3 fields with evidence: every value points to the exact text it came from.
  4. Checks compliance with deterministic rules (8 points + 2020/878). The AI extracts; the code decides.
  5. Produces a record ready to load into Sage X3, the registry (version, dates and verdict of every SDS), which replaces the Excel, alerts, and a draft email to the supplier. A person approves before anything leaves.

Two AI engines: Grok (xAI) for speed on demo and approved data, and our own AI server for real supplier documents, which are never sent to a cloud model.

Built at the Lab (26–27 Oct)

  • Brought: the problem and our own AI server; and, from 22–24 Oct, interviews with our lab, the lab's checklist, design notes and data schemas, fictitious and public test examples, and a feasibility script tested on 24 real SDS.
  • Built here: the SDS Assistant itself — inbox reader (IMAP), extraction with evidence, rules engine, version comparison, registry and history, review dashboard, supplier email, Sage X3 file, Grok integration with per-document routing and fallback. First commit Monday 26 Oct, 10:46 (it imports the brought design notes, schemas, examples and feasibility scripts); 55 automated tests; tested by our lab on day 1 with real SDS. Also built here: a first prototype for customer samples, with the same design.

Results so far

  • At the Lab: live demo with Grok: 7/7 expected proposals; the full record takes 4–7 s per SDS with Grok on demo data, and 15–33 s on our own server.
  • At the Lab: tested by our lab on day 1 with real SDS, on our own server.
  • At the Lab: re-tested on 24 real supplier SDS with the product, on our own server: 4/5 non-compliant caught, 15/24 same verdict as the lab, 20 s per sheet.
  • Feasibility, before the Lab (a script, 23–24 Oct, local model; not the product): 24 real supplier SDS compared with the lab's own verdicts: 5/5 non-compliant SDS caught, 0 compliant ones wrongly rejected, 17/24 identical classifications, about 11 s per SDS for the compliance check (vs 8 to 25 min by hand).
  • Feasibility, before the Lab: 5 public SDS: 40/40 header fields and 37/39 substances extracted correctly.

Architecture

  • Source systems: email (Microsoft 365 mailboxes; a test inbox for the demo), Sage X3 (ERP), Chemeter (SDS authoring software), an Excel checklist and the network file share.
  • Data domains: raw materials, suppliers, SDS documents, substances (CAS, EC, concentration, REACH, hazard classes), customers and sales reps, samples.
  • Technologies used: Python; Grok 4.20 (xAI API) for demo and approved data, and Qwen models on our own AI server (Ollama) for real documents; IMAP for the inbox; pdftotext and PyMuPDF, with PaddleOCR-VL OCR for scanned pages; SQLite; a simple web review screen. The app runs inside the company network.
  • Source code: private repository — available to the jury on request.

Next steps

  1. Sage X3 integration through the standard import template.
  2. Trigger a product SDS update in Chemeter when a raw material's composition changes.
  3. Extend to certificates with expiry tracking, and to the other group companies.

Attachments