Back to home

The monthly view of what the agents did on their own: emails answered, new questions added to the knowledge base, links found between weather and visits.

polepositionagency.nl
What's inside
  • Number plate recognition
  • Savings programme
  • Come-back voucher
  • Chatbot
  • Facebook and Instagram
  • Social media
  • Weather
  • Customer value
  • Revenue
  • Tasks and reports
Under the hood

One database for every car wash, the AI on top of it, and a person on every decision that costs money.

TypeScriptReactPostgreSQL + pgvectorSupabase Edge Functions (Deno)Row-level securityOpenAI embeddingsLLM routingPostmark inboundANPR camera webhooksMeta Graph APIOpen-Meteopg_cron
The email agent, step by step
  1. Mail comes in through a webhook
  2. Filters, rate limit and idempotency
  3. Triage, member lookup and thread history in parallel
  4. Hybrid search: pgvector and Dutch full-text, fused with RRF
  5. A small or a large model writes the reply
  6. Every claim checked against the sources
  7. Send, ask the customer, or hand it to the owner

Hybrid retrieval

Vector search alone misses prices and number plates. Cosine similarity and Dutch keyword rank are fused with Reciprocal Rank Fusion, so an exact keyword hit survives even below the similarity threshold.

Checked against its sources

Every concrete claim in a reply is checked against the retrieved answers and rewritten once if needed. Still ungrounded means a draft for the owner, and a question without a source never gets a reply on its own.

Knowledge that grows

When the owner answers, a curator model turns that answer into a reusable entry without personal data. It waits for approval, and a gate in the database itself rejects IBANs, plates, phone numbers and email addresses.

Cost-aware routing

A small model triages and answers simple mail; complaints, attachments, several topics or another language go to a larger one. Measured: $0.0068 of AI per email thread on average.

Patterns in the visits

Number plate scans per location are correlated with each kind of weather, a drop of a quarter below the 30-day average raises an alert, and customers are scored on recency, frequency and value.

Isolated and safe to show

Every query is bound to company and location by row-level security. The public demo runs on a token that Postgres forces into read-only transactions.

142edge functions
262database migrations
252row-level security policies
$0.0068AI cost per email thread
Visitor recognition

Who is coming in?

Cameras read the plate on arrival and match it to the customer profile: new or returning, how often, with or without a purchase. So the right offer is ready.

Visitor recognition: scans, returning visitors, visit frequency and the AI's analysis
Visitor recognition
AI at work

The right model per email

A small model triages and handles simple emails; complaints, attachments and harder questions go to a larger one. On average an email thread costs $0.0068 in AI.

AI at work: automatic actions this month, emails answered, questions learned and weather patterns
AI at work
On a phone

The car wash in your pocket

Owners check visits, members and campaigns on their phone, and work through the week's tasks between two cars.

The dashboard on a phone
Home on a phone
Number plate recognition on a phone
Plates on a phone
The monthly report on a phone
Reports on a phone
The task list on a phone
Tasks on a phone
Thirteen months

The merger's first project

Set up as Common Grounds' first project. The platform stood within thirteen months; today it runs for 39 locations across 17 businesses.

Many locations

Per location or per group

Each location has its own view, groups of locations sit side by side, and every number can be brought down to one site.

Next project · Loyalty platform · 2026

Sparen bij BZG.

View project