Jake Shaw
Back to work
Featured

AND Digital Website & AI Chatbot

Rebuilt AND Digital's website from the ground up with an AI chatbot at its centre, working AI-native: Claude Code agents wrote most of the code while I planned, decided, reviewed and built the tooling that keeps them honest.

AND Digital logo
01

The problem

AND Digital's old website was out of date, and its content management system blocked the company from building anything agentic on top of it. A prototype called Ask Andi had already shown that visitors would rather ask questions than browse menus, but it was a prototype, not a production website, so the only real fix was to architect and build an entirely new site. It had to do three things the old one couldn't: serve every page and every chatbot answer from one headless CMS, so publishing a case study updates both; answer from AND's real published work, citing what it used and never inventing a client or a link, in the company's tone of voice even when someone tries to break it; and run at production quality from day one, with real hosting, release controls, security, monitoring and cost limits, because a public AI feature with no spending cap is a risk.

“Working AI-native didn't make my coding knowledge less useful. It meant applying it a level higher.”
02

The approach

We were a small team reporting directly to senior stakeholders and the company's founder, and a team that size can't build all of this the traditional way in a few months, so working AI-native was the plan from the start. We treated Claude Code as a team of specialists: humans own the decisions, agents do most of the building, and every step between a ticket and a merge has a check on it. Tickets were interrogated for gaps before anyone built them, and I reran the checks myself before committing, because an agent saying "all green" is a claim, not proof.

03

Laying the foundations

I worked across the whole stack, and led the project's epics for prompt hardening and for the release pipeline to production. Early on I brought the design system into the web app as its source of truth with Storybook for our components, modelled the first CMS content types, and ran a staged migration that moved existing case studies onto the new sector model without losing data. On the chatbot, I rewrote its API route on the Vercel AI SDK with tools to look up case studies and run semantic search over published content, built a provider layer so the same code runs against a local model in development or a hosted one in the cloud, and built the chat interface: its ready, thinking, answered and error states, source chips linking to the content it used, a side panel of related work, and an accessibility pass over the whole page.

04

Making the chatbot trustworthy

Taking the prompt from a first draft to something we'd put in front of the public meant measuring every change before it shipped. I replaced hand-written test fixtures with a harness that captures transcripts from the live chatbot against real content, plus a simulated visitor to drive multi-turn conversations. I moved the company's tone rules into one machine-readable spec that both the production prompt and the automated graders read, with a drift test that fails the build if they disagree, and replaced a single pass mark with named gates for tone, safety and security, including jailbreak and prompt-injection cases, so CI blocks a prompt change that fails them. The tone-of-voice rewrite started out failing every tone case and, after a disciplined loop of one fix at a time, passed consistently across independent live runs. Demoing it to the company's founder was the moment the project went from "interesting prototype" to "this is how the company will talk to visitors." In production, the chatbot now logs topics we had no content for as a derived topic only, never the visitor's words; de-escalates hostile conversations while giving a visitor who calms down a way back; and sticks to AND's own content even when a tool fails.

05

What I learned about measuring AI

The most useful lesson came from evals that looked good. To check our AI judge, I hand-scored a set of chatbot conversations and we measured how often the judge agreed with people. It agreed far less often than we needed, and we recorded that honestly instead of tuning the numbers until they passed. Later, with the evals passing comfortably, I checked what that pass actually proved, without touching any code: our gates measured tone and safety, and none of them measured whether the bot could actually help. An eval only tells you about the thing it measures, so now I always ask what a passing score really proves before I trust it.

06

Moving clouds

Partway through the build, we moved the platform from Google Cloud to AWS. I ran the spike that confirmed the new platform could support what we needed and audited the target setup, then built a large share of the new platform as infrastructure as code, from networking and containers through to DNS and TLS. I put every non-production environment behind a login gate, rebuilt the webhook receiver that re-indexes content for semantic search whenever an editor publishes, and built preview environments so every change can be tested on a real URL before it merges. Afterwards I helped decommission the old Google Cloud estate.

07

Taking it to production

I led the epic that built our path to production: protected production environments, infrastructure changes that need an approval before they apply, automatic deploys for releases that only change the app image, one-click rollback, a smoke test that blocks a bad release, and a runbook so anyone on the team can do a release. The first production run hit CI bugs, which I fixed the same day, and we then shipped several production releases in a single week, rehearsing rollback as we went. I tested every control rather than assuming it worked, so both the website and the chatbot have a proven way back if a release goes wrong. Alongside it came observability: a structured log line for every chatbot turn, a dashboard, alerting, synthetic checks on the homepage and the chatbot, and cost controls.

08

Security

Before launch I was one of the testers in our internal red-team exercise, attacking the site and the chatbot under a written test plan, with AI agents running test cases under my supervision. I then fixed what came out of it and retested each fix against the attack it was meant to stop before calling it done. Around launch I also treated automated security findings as fixes to make properly, not warnings to suppress, kept dependencies patched and the Content Security Policy strict, and added a gate so a production release can't start until a person explicitly starts it. To make this repeatable, I built a Claude Code skill that triages automated security findings: it groups related findings onto one branch, suggests a fix for each, and checks whether a ticket already covers the issue.

09

The website itself

The chatbot is only part of the site. I built the homepage from the design prototype, the insight article page, a publications hub with downloadable reports, and the Thought Leadership page with editor-picked featured papers, and migrated our chosen blog posts into the CMS word for word, with a script that proved they matched the originals exactly. To protect search rankings, I mapped the old site's addresses to their new homes and built a crawl and a coverage gate, so a missing redirect fails the pipeline instead of becoming a 404, and added content lint so an editor can't save a page address the chatbot can't look up. In the run-up to launch I worked through the design team's audit in small batches across every major page, each with before and after screenshots for sign-off.

10

Tooling for an AI-native team

Some of my most useful work was improving how the team builds, not the product itself. Our AI coding tool couldn't watch merge requests on our platform, so I built a mod that does it in the background and tells the agent when a review, pipeline result or teammate comment arrives. I also wrote some of the team's first agent skills, which later work built on, and rolled out a ticket format with a plain summary up front and the technical detail folded away, so non-technical colleagues can follow the board.

11

The outcome

We went from first commit to go-live in a matter of months, and the site is live and already bringing in work: visitors used the chatbot from its first week. What I'm most proud of is how far I've come in this way of working. Working AI-native didn't make my coding knowledge less useful. It meant applying it a level higher. Most days I wasn't writing code line by line but deciding what should be built, setting the boundaries for the agents doing it, and judging whether the result was right, which pushed me to learn far more about architecture, about making and recording decisions, and about what makes an application good rather than just working. Next is the post-launch observation window, and improving the chatbot based on what real visitors ask it.