Plainstamp

An assistant that explains German bureaucracy in plain language and links the official page behind every answer.

Our own product

Plainstamp home page: the headline "German bureaucracy, in plain words" above topic cards for moving, residence, tax and health insurance, and a question box.
Plainstamp (desktop)
Plainstamp home page on a phone, with the headline and the question box.
Plainstamp (mobile)
Type

AI assistant, open source

The problem

People new to Germany meet forms and offices in German officialese. A general chatbot answers fluently from memory and can be wrong about a rule that differs by state. They need an answer they can check against the office’s own page.

What was built
  • A retrieval pipeline over official pages. It rewrites the question into German search queries, searches by meaning and by keyword, and writes the answer only from the pages it found.
  • Every claim carries a citation with a link to the source and the date the page was last checked. If no page supports an answer, it says so and points to the responsible office.
  • State-aware answers. A person can pick one state, a from and to pair for a move, or Germany only, and the search is limited to those states.
  • A static chat page with several chats that stay in the browser, plus a stateless Cloudflare Worker that stores no questions, answers or IP addresses.
  • An offline ingestion pipeline that crawls official pages politely, cleans them to Markdown, splits them by section and loads them into the search index.
Stack

TypeScript, Cloudflare Workers, Postgres with pgvector and German full-text search on Neon, Gemini for the model, Vite for the chat page, Python for ingestion.

What makes it hard

Keeping the model honest. Retrieved pages are treated as untrusted data, and an answer whose citation points at nothing it retrieved is dropped.

German law differs by state. The system asks which state applies when it matters, keeps each rule attributed to its state, and says which states it does not cover yet.

Running a public pilot at no cost without leaking privacy. The Worker fails closed without its rate limiter and bot check, and tests assert it never logs a request.

Outcome

Live as a free pilot covering federal rules plus Berlin, Brandenburg and Bavaria, about 40 pages. On our 121-question test set the right page was cited 93% of the time. Open source under AGPL-3.0, not legal advice.