AI inside CrewMento
Adding AI to a live product: from SOP documents and paper logsheets to reviewed digital records
Visit crewmento.com
At a glance
- Product
- CrewMento, our own shop-floor compliance and training SaaS
- Project
- Adding AI features to an existing, live product
- Built by
- iGex Solutions (in-house)
- AI model
- Google Gemini (multimodal), default gemini-2.0-flash; each company picks its own model and a fallback model
- Where it runs
- Web app and Android app, through the same backend
- Human review
- Every AI result is reviewed by a person before it is published or submitted
1Client context
CrewMento is our own SaaS for manufacturing plants. It replaces paper checklists, logbooks and training records with a web app for admins, supervisors and QA, and an offline-first Android app for operators.
Once plants were using it, the bottleneck moved. The hard part was no longer the digital checklist itself, but getting content in (years of SOPs and paper forms) and getting paper out of the areas where phones are not allowed. This case study covers how we added AI to the live product to solve that, without taking people out of the loop.
2Problem
Four things still slowed plants down before AI.
Digitising SOPs was slow
Every plant already had SOPs, machine manuals and paper checklists as PDFs or printed forms. An admin had to read each one and retype every check by hand, choosing the answer type, reading limits, units and photo rules.
No-phone zones forced paper
In flameproof (ATEX/Ex) areas, cleanrooms and reactor bays, phones are not allowed. Operators kept filling paper logsheets and someone typed them in later: double work, typing mistakes and late entries, exactly what auditors flag under ALCOA+.
Training content took days to write
Trainers wrote every lesson, quiz question and course description by hand.
Reports needed an admin
Managers had to ask someone to filter and export data to answer simple questions such as "who hasn't finished safety training this month?".
3Solution & architecture
We added Google Gemini in the places where people were retyping or writing from scratch. It turns existing SOP PDFs and photos into ready-to-edit checklists, reads photos of handwritten logsheets and pre-fills the digital record with a confidence score per answer, drafts courses and quizzes, and answers plain-language report questions.
Each company connects its own Gemini API key, stored encrypted and shown masked, so AI usage is billed to and governed by the customer’s own Google account. Documents and photos pass through CrewMento’s server on their way to Google for processing; uploaded SOP files are deleted from the server once processed, and logsheet photos are kept as evidence with the submission.
How it fits together
Input from the plant
- SOP, manual or paper form (PDF or photo)
- Photo of a filled paper logsheet
- Course topic, lesson and quiz counts
- A plain-language report question
CrewMento server: prepare
- Photos auto-rotated and resized (Sharp)
- Assigned checklist definition added to logsheet prompts
- Company's own model and fallback model selected
Google Gemini (company's own key)
Multimodal: reads text, PDFs and images, returns structured JSON
CrewMento server: check
- Broken JSON repaired by a second call, then validated
- Readings cleaned and normalised
- Report plans checked against a whitelist (Zod)
- Every call logged per user and company
A person reviews
- Admin edits the draft checklist
- Operator corrects, Checker approves
- Trainer edits the course
- Manager reads the validated report
Key design decisions
-
A person approves every AI result
Checklists open as editable drafts, scanned logsheets pre-fill answers that the operator reviews before submitting, the normal Checker approval still applies, and courses still go Draft, Under review, Published.
-
Give the AI the exact checklist
For logsheet scans, Gemini receives the photo plus every question, answer type, unit and min/max limit, so it matches marks on paper to the right items instead of guessing.
-
Never let the AI write SQL
For reports, Gemini only produces a structured plan. The plan is validated against a whitelist of allowed fields and joins, then CrewMento's own code runs the query. If a question is ambiguous, the AI asks instead of guessing.
-
Bring your own key
AI features run only with the company's own encrypted Gemini key, so usage and billing sit with the customer's Google account.
-
Built to fail safely
A repair call fixes broken AI output, a fallback model takes over when the main model is overloaded, and users get clear messages for busy, quota, wrong-model and missing-key errors.
4Key features
SOP document to digital checklist
- Upload an SOP, manual or paper checklist (PDF, JPG, PNG or WebP, up to 20 MB), or just type a title and description
- Yes/No for confirmation steps, Pass/Fail for inspections and tests
- Required readings with operator, min/max and unit (°C, bar, PSI, %, RPM) when the document mentions a gauge or tolerance
- Photo rule (none, on fail, always) and comment rule per item
- Result opens as an editable draft; nothing goes live without the admin
Paper logsheet photo to filled checklist
For flameproof, cleanroom and no-phone zones
- One photo of the filled sheet (JPG, PNG or WebP, up to 15 MB), taken outside the zone
- For each item: answer, handwritten reading, remarks, whether a mark was detected, a confidence score and a short reason
- Readings cleaned automatically, e.g. "2.8" taken from "Measured 2.8 °C" while spec ranges are ignored
- Answers pre-fill the checklist with confidence shown; the operator corrects before submitting
- The photo is kept as evidence with the submission, and Checker approval still applies
AI course builder and quiz generator
- Course structure, lessons and quizzes drafted from a title, description and counts
- Quiz questions and course descriptions from a topic, difficulty and count
- The trainer edits everything before it is saved or published
AI reports in plain language
Live today for user, course and enrollment reports
- Ask a question such as "learners who haven't completed Fire Safety this month by branch"
- Gemini turns it into a report plan (subject, columns, filters, grouping, sorting), never SQL
- The plan is checked against allowed fields before CrewMento runs it
- The AI asks a clarifying question when the request is unclear
Control and safeguards
- Company's own Gemini key, encrypted at rest and masked in the UI
- Model and fallback model chosen per company, from the live model list
- Every AI call logged with user, branches, roles, prompt summary and model, plus usage counters
- Same AI features on web and Android
5Stack
- AI
- Google Gemini (multimodal) via the official @google/generative-ai SDK; per-company model and fallback model
- Backend
- Node.js, Express, Sequelize + MySQL, Redis + Bull (queues), Sharp (images), Multer (uploads), Zod (validation), Socket.io
- Web app
- React 18, Vite, Tailwind CSS
- Mobile
- Android app (offline-first) on the same backend endpoints
- Storage & messaging
- AWS S3, Firebase (push notifications)
6Timeline
-
AI features added
SOP-to-checklist, logsheet scanning, course and quiz builder, plain-language reports
7Outcome
What adding AI changed for plants using CrewMento.
Content in, without retyping
Admins start from a draft checklist built from their own SOP, with answer types, readings and photo rules already set, and spend their time reviewing instead of typing.
Paper out of no-phone zones
Handwritten logsheets become digital records from one photo, with the original kept as evidence and every answer checked by the operator and the Checker.
Training drafted, not written from scratch
Trainers get lessons, quizzes and descriptions to edit, and keep the same review and publishing steps.
Answers without waiting for an admin
Managers ask user, course and enrollment questions in plain language and get a validated report.
AI the customer stays in control of
Their own key and Google account, a person approving every result, and a log of every AI call.
Want AI inside your product, with people still in control?
We add AI to real workflows the way we did in CrewMento: useful drafts, validated output and a person approving every result.