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 22 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>
|
@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.
|
@MaxGhenis thanks for the review — addressed in
Local validation included website tests (115/115), lint, typecheck, Markdown drift checks, route-audit unit tests, live destination-fallback shell auditing, tracking audit, and a production website build. The remaining non-code item is launch approval/reviewer sign-off, since merging publishes the homepage CTA, refreshed banner, and launch article immediately. |
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