Surf the DreamJustin Avery

Things I build · 01

Roleline

A careers-site assistant that answers candidates’ questions from content the employer has approved, and helps them find the right live vacancy.

getroleline.com

Stage
Live
Started
2026
Built with
Cloudflare Workers, Agents SDK, D1, Workers AI, Claude, AWS Bedrock, Jev
A Roleline chat. Asked "Do I need a degree?", it explains the Customer Adviser advert accepts equivalent experience and links to the role. Asked about visas, it says the approved careers information doesn't cover sponsorship yet and links to the recruitment team.

Candidates arrive at a careers site with a question, not a sitemap. “Do I need a degree, or is experience enough?” The answer is usually there somewhere: in a 23-page eligibility PDF, a job advert, an FAQ last updated two years ago. So they give up, or they email the recruitment team, who answer the same question again on Wednesday morning.

Roleline lets them ask. It answers in plain words from careers information the employer has reviewed and approved, and when that information doesn’t cover something it says so and points to an official next step instead of guessing. It never scores candidates or makes hiring decisions. I started it in July 2026 under Simple Things, and it’s now a product in its own right at getroleline.com.

The launch film, 102 seconds. The screens are illustrative examples, but each one is a feature that exists: the honest “not covered yet” answer, the gaps report, the approval trail and the region picker.

Answers, or an honest “not yet”

Each answer is written fresh for the question, in the employer’s voice, but the facts come only from the approved material. Where the source gives one, the reply ends with a real next step: the role’s advert, the application form or the recruitment team. Replies stream in as they’re written, and a conversation can open with up to four starter questions.

On the employer’s site it’s one script tag: a launcher and a chat panel, allowed only on the websites the owner lists, built to WCAG 2.2 AA and checked with a keyboard and a screen reader. Before the first question, candidates see what the assistant is and agree to its terms.

Where the answers ran out

Every month the employer gets a report of what candidates asked about, grouped into fixed topics, with outcomes and knowledge gaps: the questions the approved content couldn’t answer. It keeps topics and counts, never what people typed, and hides any group smaller than ten conversations so no one can be picked out.

A monthly report in the Roleline admin: what candidates ask about, as bars for role options, eligibility, pay and application process, then knowledge gaps such as visa sponsorship (38 conversations) with an Add content button. A footnote reads: topics and counts only, no conversation text is stored.
The monthly report: what candidates ask about, and the gaps the approved content doesn’t cover yet.

A gap is a to-do. The team writes the missing facts in a few plain sentences and submits them for approval, and the assistant works out each answer from them. The next candidate who asks gets all the way to the apply button.

The Add content screen for the visa sponsorship gap: a page title and a few plain sentences of facts, with Save draft and Submit for approval buttons.
Closing a gap: a few sentences of facts, then Submit for approval.

Nothing goes live until it’s approved

Content moves from draft to a saved version to a release, with history, a diff of what changed and a way to restore any earlier version. Before anything ships, the team can chat with the exact saved version on the model that will serve it, and compare models, or old and new versions, with the cost shown up front and a printable report for the client.

Staging and production are separate lanes. Production refuses a release without a recorded approval for that exact version, and a push to staging can require the client’s sign-off too. Each release is a fingerprinted file that can’t be changed afterwards, so what was approved is what runs.

A change moving through approval: submitted, approved by a senior HR manager, signed off by the HR director, deployed to staging with tests passed, then live in production. Beside it, a region picker set to United Kingdom, with the note that conversations run and are stored in the United Kingdom only.
The approval trail, and the choice of where conversations run and are stored.

Privacy as a setting

Where conversations run is part of the release. Roleline has a UK-only runtime on AWS in London: model calls go through Bedrock in the UK region with invocation logging off, and a release tied to it refuses any fallback outside the UK. The admin, metering and release stores sit in EU-jurisdiction storage on Cloudflare.

Conversations are deleted on fixed deadlines that activity can’t extend: seven days on Cloudflare, 72 hours on the UK runtime, one day on demos. Analytics and metering never store prompts or answers, and their schemas reject free text outright. Rate limits, a warning-then-close ladder for abuse, a 1,000-character cap on questions and a spend check before every model call keep it from being misused or running up a bill.

Live jobs from the employer’s own systems

Questions are only half of it. Candidates also want to know what’s open near them, so Roleline reads the employer’s vacancies from their applicant tracking system and keeps its own index fresh.

Three readers cover most of what employers publish: a single feed of every job, a jobs sitemap with schema.org JobPosting data on each page, and the listing pages themselves. The setup script recognises 19 ATS platforms, from Workday and SuccessFactors to Greenhouse and Lever, and picks the reader that suits. A Cloudflare cron refreshes the index every six hours or nightly. It reads robots.txt first, waits two seconds between requests and only fetches pages that are new or have changed.

Then it tidies up. Titles lose recruiter codes and store names. Every postcode is checked against postcodes.io, and the district wins when the stated town disagrees. Salaries become a minimum, a maximum and a unit, with “up to £X OTE” read as a ceiling. The same role posted at several stores becomes one card that says how many vacancies there are, with a pay row for each band. Jobs close when they leave the feed or pass their closing date, a refresh that comes back implausibly small is thrown away, and an index more than 72 hours old is shown as unavailable rather than passed off as live.

Search that works out what people mean

People don’t search the way adverts are titled. “Car tech” should find technicians, mechanics and patrol roles, but on one demo it used to find a single customer-care job instead of 126 technician roles. So the search now reads a query in layers.

Filters, towns and pay come out first: “near Leeds” becomes a 25-mile chip. The words left over are expanded in a fixed order: the employer’s own overrides, word forms, search terms written for each job, UK job-title equivalents from the ONS occupation coding index, a System One decision (more on that below), matches by meaning, and spelling last of all. The per-job search terms are 8 to 20 phrases that Claude Haiku writes for each new title when the index refreshes. Matching by meaning uses bge-m3 embeddings on Workers AI and only steps in when fewer than three roles match, and spelling never “corrects” a word that appears anywhere in the job text.

Ranking stays explainable: a match in the title beats one in the job’s search terms, which beats the summary, which beats the description. Clicks teach it which job family a word belongs to, but only after five clicks, fading over 30 days, and stored as hashed words and counts. The whole index sits in the Worker’s memory, so a warm search takes 18 to 51 milliseconds, down from 0.75 to 1.8 seconds when every search went to the database.

In chat, the assistant searches on the candidate’s behalf. It holds on to the role, job area and career stage they asked for, may relax hours or contract and then location, and says so when it widens. If nothing fits, it shows no cards and links to the employer’s own listings. If a place can’t be found, the search page says so plainly and offers every location, rather than quietly showing the wrong town.

System One: a model that decides instead of chatting

The most interesting layer is TypeSafe AI’s Jev, a System One model. Instead of writing text, it answers a typed multiple-choice question with a probability. Roleline asks one question per filter, such as “Which team does this search point to?”, and the options are only the values that exist in the index, plus “unclear”. What comes back is a choice and a confidence, which code can act on without parsing prose.

The thresholds do the work. Below 0.55, or “unclear”, the answer is ignored. From 0.55 it’s offered as a suggestion chip, and from 0.80 it lifts that team’s roles up the list. It only becomes a real filter when the keywords matched nothing and it doesn’t contradict a filter the candidate chose. That’s how “help companies buy other companies” finds the mergers and acquisitions roles without anyone writing a synonym for it.

Jev is only asked when it’s needed: an unknown word, a spelling fix, fewer than three matches, or a query that reads like a sentence. Email addresses, phone numbers and long runs of digits are stripped first, the query is capped at 200 characters, and it’s never logged. Three routes serve it, TypeSafe’s own API, OpenRouter and Workers AI, inside a shared 1.2-second budget, and a route that fails sits out for a minute. Measured live, it answers in about 0.2 seconds.

Each demo carries a test set of real queries, 108 across the three, and 100 of them run on every change. The recent relevance fixes each landed with tests that failed before the fix and pass after it.

A working demo in a day

Most of my work now is building the working version of an idea before a pitch, and Roleline is set up for exactly that. A prospect demo starts as one manifest: the employer, its careers pages and its vacancy source. A repeatable skill runs discovery, scaffolding, phase gates, live acceptance checks and a scripted evaluation on a shared demo module. A roadside-recovery company’s demo went from issue to deployed, passing 30 of 30 live checks, on the same day. Others cover a national supermarket’s hourly roles and a professional-services firm’s graduate and experienced hires. Each one is gated, labelled as not affiliated with the employer, and expires after 60 days.

Under the hood

One shared runtime, many tenants. Each employer and environment gets its own Cloudflare Worker, hostname, Durable Object storage and secrets, and the tenant is fixed when it’s deployed, never chosen by the browser. Conversations run on the Cloudflare Agents SDK over Durable Objects, with D1, R2, Workers AI and AI Gateway (payload logging off). Answers come from Claude, through the Anthropic API or through Bedrock in London for the UK-only runtime.

The first commit was on 24 July 2026. Since then: about 970 commits, 547 merged pull requests and 9,087 automated tests on the full check, plus a metering service that prices every conversation without keeping a word of it.

The marketing site went live on 2 September, and it uses Roleline to sell Roleline: Ask Roleline answers employers’ and agencies’ questions about the product, pilots and pricing from its own approved material.

Ask Roleline, the product guide on Roleline's own site, with four starter questions: how could this help our candidates, what does a pilot cost, what would we need to get started, and can we offer this to our clients.
Ask Roleline: the product guide, answering from Roleline’s own approved material.

Roleline is at getroleline.com. Bring one real careers-site problem to a free 20-minute fit call.

    Type to search titles and full text. ↵ opens the full results page.