Product Requirements

Plock PRD, AI features, integrations (Fortnox, PostNord, DHL, Shopify), user personas

AI Features (Priority Order)

AI Features (Priority Order)

Overview

Plock is AI-native — not AI-bolted-on. Every data model is designed with AI querying in mind. The AI layer runs continuously; warehouse workers are alerted, not asked to check.

Target user for AI: A warehouse worker with dirty gloves asking var finns SKU-X on a cracked phone screen — not an analyst building pivot tables.

Language: Swedish first. Short, direct responses. Action-oriented. Mobile-friendly.


Priority 1 — Plock AI Chat (Launch)

Type: LLM natural language interface Model: Claude API (claude-sonnet-4-5) Language: Swedish

What it does

Example queries

Architecture


Priority 2 — Smart Picking (Launch)

Type: Route optimisation Engine: OR-Tools (Google) — VRP/TSP solver Reduction target: 30-70% travel time

What it does

How it works

  1. Order released — ML microservice receives order + bin locations
  2. OR-Tools VRP solver computes shortest path across warehouse zones
  3. Optimised pick list returned to mobile app in under 2 seconds
  4. Worker follows sequence — no backtracking

ROI


Priority 3 — Anomaly Detection (Launch)

Type: Statistical detection on inventory transactions Algorithms: Z-score + isolation forest (scikit-learn) Trigger: Real-time, on every transaction

What it detects

Alert flow

  1. Transaction recorded — Python microservice analyses against rolling baseline
  2. Z-score above 3 sigma or isolation forest flags as outlier — alert created
  3. Warehouse manager receives push notification + AI chat message
  4. Manager confirms or dismisses — feedback improves model

Priority 4 — Demand Forecasting (Month 6)

Type: Time-series forecasting Models: XGBoost + Prophet (Facebook) Input: Order history (minimum 90 days)

What it does


Priority 5 — Smart Slotting (Month 6)

Type: ML-based placement recommendations Input: Pick frequency, order affinity, SKU dimensions

What it does


Priority 6 — Labor Planning (Month 12)

Type: Shift optimisation Constraints: Swedish labour law (Arbetstidslagen)

What it does


AI Cost Model (per customer)

Feature Est. cost/month (Growth plan)
Plock AI Chat (1,000 queries/month) ~45 SEK (Claude Sonnet pricing)
Smart Picking (10,000 optimisations) ~5 SEK (OR-Tools compute)
Anomaly Detection (100K transactions) ~10 SEK (Python microservice)
Total AI cost per Growth customer ~60 SEK/month
Growth plan revenue 2,990 SEK/month
AI cost as % of revenue ~2%

Key Integrations

Key Integrations

Integration Priority Table

Integration Type Priority Launch Date
Fortnox REST v3, OAuth2 P0 Launch
PostNord REST, OAuth2 P0 Launch
DHL Sweden REST P1 Month 2
Instabee / Budbee REST JSON P1 Month 3
Shopify REST + GraphQL P1 Month 3
WooCommerce REST P2 Month 6
Visma REST P2 Month 6

P0 — Fortnox (Launch Critical)

Why P0: 598,000 Swedish companies use Fortnox. Fortnox Marketplace is the primary distribution channel. Deep integration = instant value for every new customer.

API: Fortnox REST API v3 (api.fortnox.se) Auth: OAuth2 (authorisation code flow)

Sync scope

Data Direction Frequency
Products (artiklar) Fortnox to Plock On demand + webhook
Suppliers (leverantorer) Fortnox to Plock On demand
Purchase orders Bidirectional Real-time
Sales orders Fortnox to Plock Real-time (webhook)
Stock levels Plock to Fortnox On every transaction
Invoices Plock to Fortnox On order completion

Fortnox Marketplace listing


P0 — PostNord (Launch Critical)

Why P0: PostNord is the dominant carrier for Swedish e-commerce (primary for ~70% of SMBs).

API: PostNord REST API (developer.postnord.com) Auth: OAuth2

Features


P1 — DHL Sweden (Month 2)

API: DHL Express REST (developer.dhl.com) Features: Label generation, booking, tracking, rate quotes Auth: API key


P1 — Instabee / Budbee (Month 3)

API: Instabee REST JSON (developer.budbee.com) Features: Label generation, booking, real-time tracking, consumer notifications Note: Instabee acquired Budbee — same API, two brands


P1 — Shopify (Month 3)

API: Shopify REST Admin API + GraphQL Auth: OAuth2 (Shopify Partner app)

Sync scope


P2 — WooCommerce (Month 6)

API: WooCommerce REST API Auth: API key Sync scope: Orders, products, inventory levels (similar to Shopify)


P2 — Visma (Month 6)

API: Visma eAccounting REST API Auth: OAuth2 Sync scope: Similar to Fortnox — products, orders, invoices, stock levels


Integration Architecture

All integrations run through the Integration Layer in the Kotlin backend:

File structure:

Queue: Redis + Kotlin coroutines for async integration jobs (label generation, carrier calls, sync tasks)

Error handling: Retry with exponential backoff, dead-letter queue, alert on persistent failure