Loading...
Loading...
Workshop management system where organizations track vehicle repairs, assign technicians, and monitor performance. Users create reports with registration numbers, problem descriptions, categories, and time tracking. An org-scoped AI assistant powered by Z.AI GLM-4.7 handles multi-step workflows — parsing Excel uploads into reports, querying the database, generating charts, and bulk-updating records — with human-in-the-loop approval before any destructive action. The whole interface is Swedish-first, built for field teams who may not be familiar with AI tools.
System prompt gets prepended to the first user message to work around GLM's missing system role. AI tools use names_only flags and pagination to keep token usage low during multi-step operations. RLS policies enforce org + role scoping at the database level, and server actions validate membership before any mutation. Client-side Canvas API compression reduces image payloads by 60-80% with iterative quality reduction. Rate limiting (30 req/hour per user per org) prevents abuse without blocking normal usage.
Used in production by a workshop organization to track repairs and technician workload. The AI assistant handles the bulk of data entry — field technicians snap a photo or paste an Excel export and the assistant turns it into structured reports after confirmation. What started as a KPI dashboard grew into the primary tool for day-to-day operations.