UK chatbot beta launch: blog post, homepage CTA, featured tools#1073
UK chatbot beta launch: blog post, homepage CTA, featured tools#1073vahid-ahmadi wants to merge 19 commits into
Conversation
Add "Bringing AI to policymaking: a chat interface to PolicyEngine UK" with Vahid Ahmadi and Anthony Volk as co-authors. Reuses the multi-agent workflows cover image for now. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add high-level technical content adapted from the engineering draft: an inline-SVG architecture diagram of the tool-use loop, the bounded loop with its iteration cap and repeated-call breaker, the deterministic vs non-deterministic contract, structural plan mode, the six typed tools, and the version-stamped engine reference. Claims verified against the policyengine-uk-chat runtime; engine attributed to policyengine-uk-compiled. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…p code block - Rework the opening to lead with AI's growing role in policymaking - Set subtitle to a plain description of the chat interface - Remove the related-work sentence and the tool-loop code block Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the borrowed placeholder with a dark-mode screenshot of the
UK Chat interface ("What's on your mind today?").
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…label - Shorten three section headings - Soften strong/informal phrasings toward neutral language - Reposition the "result → back into model" diagram label so the dashed return arrow no longer crosses it Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… UK-gov sources - Lead with the guess-vs-compute contrast; add H1 title - Drop unsupported "version-stamped" engine-reference claim - Attribute calculations to the compiled engine (policyengine-uk-compiled) - Surface the audit-vs-trust contract early; name the failure mode - Describe input-token routing, single-tool error path, and eval checks - Add "For technical readers" divider; add free/citable/checkable trust line - British English (artefact) and trimmed repetition - Add three UK public-sector sources (GOV.UK AI Playbook, POST, NAO) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ep-link citations - Remove the H1 title (title comes from posts.json) and the "For technical readers" and "Constraints" sections - Group the technical deep-dive under "How it works" with H3 subsections; make The architecture and The tool-use loop numbered lists - Replace the duplicated six-tools prose/table with a single SVG graphic - Generalise "A Claude model" to "AI tools like Claude or ChatGPT"; drop the compiled-build aside and the eval-cross-check sentence - Deep-link the AI Playbook and add a Wikipedia citation for next-token generation, both via #:~:text= fragments - Move the loop-diagram caption to a lead-in above the diagram; trim repetition - Update the cover image Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ix, cover - Shorten section/subsection titles to short noun phrases (no interrogatives) - Replace the six-tools figure with a centred, grouped (Calculate/Support) SVG; add a figure lead-in and drop the trailing synthetic-illustration note - Generalise "Anyone comparing two reforms"; unlink Claude/ChatGPT mention - Deep-link the POST and NAO citations to their exact sentences (#:~:text=) - Fix ordered/unordered list rendering: restore list markers that Tailwind preflight had reset, so numbered steps show their numbers - Update the cover image Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Hero: add a second CTA button "Try the AI chatbot" (navy, distinct from the teal "Enter PolicyEngine") linking to the PolicyEngine UK Chat - FeaturedResearchBanner: refresh the four UK cards to the latest featured tools, led by UK CliffWatch (then fuel duty, UC rebalancing, energy shock) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…s' into feat/uk-chatbot-beta-launch
…ools' into feat/uk-chatbot-beta-launch
…nalysis preview - Open the post with a beta announcement; subtitle reads 'Launching the beta version of PolicyEngine UK Chat'; drop the redundant re-introduction - Set the post date to 2026-06-27 - Exclude the chatbot launch post from the home 'Expert policy analysis' preview (it is a product announcement, not policy analysis) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…e banner Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ation guard The app/ home components are ported to website/ and blocked by the PR guard. Apply the same changes in the active website/ tree instead: - HeroCTA: add 'Try the AI chatbot' button - FeaturedResearchBanner: feature latest UK tools, led by UK CliffWatch tool - HomeBlogPreview: exclude the chatbot launch post from policy-analysis preview - MarkdownFormatter: restore ordered/unordered list markers Data (posts.json, articles, apps.json) is symlinked, so those changes already apply to website/. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
I think the core idea here is strong, but I would rework the article so it reads more like a product launch and design discussion than a full technical breakdown. A few specific suggestions:
|
|
One additional point: I would change the article URL slug away from |
|
Vahid, what do you think about treating the following as the basis for the article? I think this is closer to the product-launch framing: it leads with what UK Chat is, keeps the design discussion focused on the predictive/deterministic boundary, and trims the deeper implementation details. We could still use more detail on what makes the tool unique, and we could possibly include more about # Introducing PolicyEngine UK Chat: AI tax and benefit answers grounded in microsimulation
PolicyEngine is excited to announce PolicyEngine UK Chat, a new beta conversational interface for UK tax and benefit questions that connects AI to the PolicyEngine microsimulation model.
The product starts from a simple problem. People increasingly ask AI systems questions about tax and benefit reforms. Large language models can understand these question and explain answers clearly, but tax and benefit questions often require a degree of accuracy that models do not yet offer: the figure needs to come from a model whose assumptions can be inspected and verified.
PolicyEngine UK Chat is designed around that split. The AI reads the question, works out what kind of policy task the user is asking for, and writes the explanation based upon verifiable, deterministic calculations, parameter lookups, and output formatting from PolicyEngine UK. In this way, PolicyEngine UK Chat leverages the strengths of large language models, grounded by the accuracy and testability PolicyEngine UK offers.
Try the beta at [policyengine.org/uk/chat](https://policyengine.org/uk/chat).
## What it does
PolicyEngine UK Chat lets users ask UK tax and benefit questions in plain English, underpinned by the accuracy and verifiability of PolicyEngine UK. Users can:
- Look up current policy settings, including allowances, rates, thresholds, benefit amounts, limits, and tapers
- Calculate illustrative synthetic households to see modelled taxes, benefits, and net income under stated assumptions
- Explore parametric reforms across the UK population, including budgetary impact, programme changes, poverty measures, decile impacts, winners and losers, and caseloads
- Turn computed outputs into charts when a visual comparison is clearer than prose or a table
- Ask follow-up questions in the same thread, moving from a rule lookup to a household example or reform analysis without switching tools
<!-- OPTIONAL POLICYBENCH SECTION START
This section is optional. Remove from this heading through OPTIONAL POLICYBENCH SECTION END if the final launch post should avoid the benchmark discussion or keep the article shorter.
-->
## Why this needs more than a language model
PolicyEngine has been measuring this problem directly. In [PolicyBench](https://policyengine.org/us/research/introducing-policybench), PolicyEngine evaluated how accurately and efficiently AI models can compute taxes and benefits from household prompts without tools or lookups and scored their answers against deterministic PolicyEngine outputs.
The result is clear: unaided predictive AI is not yet accurate enough to calculate taxes and benefits without a deterministic model powering it. In the PolicyBench launch results, the top model, OpenAI GPT-5.5, came within $1 of PolicyEngine on 80.3% of scored outputs. Computed amounts were especially difficult. Federal and state income tax before credits scored far lower than many eligibility flags, because they require sequencing income concepts, thresholds, exclusions, and credits correctly.
PolicyEngine UK Chat addresses this finding by placing the deterministic PolicyEngine UK model at its heart. AI can interpret the user's question, but the tax and benefit facts come from PolicyEngine calculations, model parameters, and clearly stated assumptions.
<!-- OPTIONAL POLICYBENCH SECTION END -->
## How the product is designed
The central design principle is the boundary between predictive AI and deterministic software.
The predictive portions are the parts where language models are useful: interpreting the user's wording, deciding which type of analysis is being requested, drafting explanations, and suggesting follow-up questions. Those tasks are open-ended and language-heavy.
The deterministic elements are the parts where users need verifiable outputs: validating request shape, looking up parameters, constructing household inputs, running simulations, producing chart data, and returning structured results. These tasks should not depend on model memory.
That boundary is enforced in the runtime. If the opening question is not ready for calculation, a gateway step can route it to a lightweight response, a scope explanation, or a clarification question.
When a question is ready for computation, the model then enables calculation tools and a generated reference for the installed engine. That reference is built from the engine itself, including capabilities and parameter schema, so the model's view of the available calculation surface is tied to the deployed version of PolicyEngine rather than to a hand-written prompt that can drift.
The heart of PolicyEngine UK Chat is its scoped tool surface, which serves as the boundary between the predictive AI layer and PolicyEngine's own deterministic calculations. These tools ensure accurate outputs and lower model runtime. The current surface includes tools for parameter lookup, illustrative household calculation, economy-wide simulation, reform validation, and chart generation, thought the exact list of tools will change as the beta evolves.
## Try it out
PolicyEngine UK Chat is available now in beta. Try it with a tax or benefit question, a household scenario, or a reform you want to understand.
When an answer looks wrong, incomplete, or confusing, use the Report issue button in the chat. It opens a prefilled GitHub issue with a shared thread and your note, so we can inspect the question, the tools used, the calculated outputs, and the final explanation. |
Address @anth-volk's review feedback by reframing the blog post from a technical breakdown into a product-launch piece, using his draft as the basis: - Retitle to "Introducing PolicyEngine UK Chat: AI tax and benefit answers grounded in microsimulation"; lead the intro with the product, the user problem, and the novelty rather than the beta status. - Add a "What it does" section listing concrete user capabilities. - Ground the motivation in PolicyBench (measurable unreliability), not just generic hallucination. - Reframe "How the product is designed" around the predictive/deterministic boundary; keep the tool surface secondary and explicitly subject to change. - Trim implementation detail from limitations to a short user-facing version. - Add a "Try it out" conclusion with the in-app Report issue feedback path. - Rename slug uk-chat-cant-make-up-numbers -> introducing-policyengine-uk-chat (article, cover image, posts.json, HomeBlogPreview filter). - Replace the dense architecture/tool SVGs with a single light-mode predictive/deterministic boundary diagram. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@anth-volk thanks — this was really helpful. I've reworked the post using your draft as the basis and pushed it (
A couple of things worth a look:
🤖 Generated with Claude Code |
|
@vahid-ahmadi a couple minor follow-ups:
|
Address review follow-ups: clarify that PolicyBench evaluates the US tax and benefit system (the lesson carries to the UK), and change "When an answer looks wrong" to "If an answer looks wrong". Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@anth-volk both done in 38ab5b1:
|
Title: 'PolicyEngine UK Chat: AI tax and benefit answers grounded in the PolicyEngine model' (drops 'microsimulation'). Date moved to 2026-06-30. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
MaxGhenis
left a comment
There was a problem hiding this comment.
CI is green and I don't see code-correctness blockers (agent-assisted review). The post renders (website posts.json/authors.json/articles are symlinks to the app-side files this PR edits), both bylines resolve, all four banner links return 200 on prod, and the PolicyBench figures match the live post (GPT-5.5 first at 80.3% exact, US-based, income-tax-before-credits hardest). HeroCTA uses design tokens, is UK-gated, and opens in a new tab safely.
Main thing: this PR is the launch, not a staged setup. On merge + deploy, three things go live immediately with no flag or date gate — the "Try the AI chatbot" button on the UK homepage, the refreshed featured banner, and the post at /uk/research/introducing-policyengine-uk-chat (also in the /uk/research list and sitemap). So we shouldn't merge until we want it public.
Decisions to make first:
- The CTA and the post both point at https://policyengine-uk-chat.vercel.app/. policyengine.org/uk/chat is a 404 — no productionized route yet. The alias works, but linking the public homepage and a launch post to a bare *.vercel.app is off-brand, skips our analytics/SEO, and cuts against our multizone convention. I'd rather stand up /uk/chat as a multizone (appZoneRoutes.ts) or a custom domain first; if we ship the vercel.app link for beta, let's do it knowingly. Either way, make CHAT_URL an env var or internal path like CALCULATOR_URL so moving it isn't a code change.
- The cover image is a dark-mode screenshot; the earlier ask was light-mode and the inline diagram is light. Real product screenshot is the right call — just recapture it light to fit the research surface.
- Post date is 2026-06-30, already a week old. No future-date gate, so it publishes on merge but sorts below anything dated later. Set it to the actual launch day at merge.
Copy: drop "only" in "matched PolicyEngine exactly on only 80.3%" — the 47.1%/53.3% hardest-case numbers already make the point. "PolicyEngine is excited to announce" is the one line leaning promotional against our neutral tone; fine for a launch, but "PolicyEngine has launched" is tighter.
Non-blocking: HomeBlogPreview excludes the post via a hardcoded slug (could key off a tag); branch is 16 behind main, worth updating before merge. Also the title and date changed after the last review round, so the current head hasn't had a sign-off from that reviewer.
One PR consolidating the UK AI chatbot launch work (supersedes #1070 and #1072).
Blog post — "AI chatbot for policymaking" (beta)
app/src/data/posts/articles/uk-chat-cant-make-up-numbers.md+ cover image, dated 2026-06-27.posts.json: title "AI chatbot for policymaking", beta subtitle, date 27 Jun.Homepage
Apps
apps.jsonand the home banner. (The CliffWatch apps.json entry itself already merged via Add UK CliffWatch to the apps registry #1071.)Fixes
MarkdownFormatter: restore ordered/unordered list markers that Tailwind preflight reset (numbered steps now show their numbers).Note: the POST citation deep-link is best-effort — that page blocks automated fetching, so the exact-sentence highlight is unverified (falls back to page top if it doesn't match).
🤖 Generated with Claude Code