Skip to content
Matt

Case studies 02 · Support chat

Case study · demo project

Website visitors get answers from the clinic's own FAQ, at any hour.

Built so the same questions about price, downtime and opening hours get a straight answer while the visitor is still on the page, and anyone ready to book goes straight to booking.

Demo build · sample clinic · sample data

Stack
  • n8n
  • claude-haiku
Demo
Support chat, answering live
Built in
demos/chat-widget/ · site/widget/
Status
Running live since 24 Nov 2026

01 / 08

The problem

A clinic's front desk answers the same few questions all day: how much a treatment costs, whether there's downtime after a peel, whether they're open on Saturday, whether a patch test is needed. Many of those questions come in late at night, when nobody is there to answer.

When someone is ready to book, they should land in booking, not in a long chat. And a chat on a clinic's site speaks for the clinic, so it can't make up a price or give medical advice.

02 / 08

The workflow

It starts when a visitor sends a message in the chat. The widget posts it, with the last 8 turns of the conversation, to an n8n webhook. n8n adds the clinic's FAQ and the rules, Claude answers in JSON with a reply, an action and a treatment, and the reply goes back to the widget.

The action decides what the visitor sees next. "none" shows the answer, with a card for the treatment when one is named. "book" adds a Book a consultation card; on the clinic's site it opens the booking window with the treatment already picked. "human" points to the enquiry form. The five steps run one after another, in the order below.

Run trace steps of a real run 25 Nov 2026 · test question sent by curl
  1. 01

    Chat message in

    → POST /webhook/holloway-chat, the message, a session id and up to 8 earlier turns

    n8n –
  2. 02

    Build Claude request

    → the clinic FAQ and the rules as the system prompt, the message cut at 1,000 characters

    n8n –
  3. 03

    Ask Claude

    → a JSON answer: reply, action and treatment

    claude-haiku –
  4. 04

    Parse reply

    → reads the first text block · treatment: "hydrafacial"

    n8n –
  5. 05

    Send reply to widget

    → HTTP 200 with the reply, the action and the treatment

    n8n –
Total 4.1 s round trip, timed with curl Only the round trip was timed on this run; the time per step wasn't recorded

The question · test

Where are you located?

Sent by curl, 25 Nov 2026

The reply · claude-haiku-5-5

Holloway Skin & Laser doesn't publish a street address, so I can't give you one. You're welcome to reach the team through the enquiry form…

No address invented · points to the site's own form

The question · test

How much is a HydraFacial and how long does it take?

Sent by curl, 25 Nov 2026

The reply · claude-haiku-5-5

…$189 and takes about 60 minutes…

treatment: "hydrafacial" · 4.1 s round trip

From two test questions on 25 Nov 2026, replies cut where marked. The price and length come from the sample clinic's FAQ in the prompt, and the reply also suggested the free 20-minute consultation. The FAQ says the sample clinic has no street address or phone line, so the chat says so instead of making one up.

03 / 08

The tools

n8n
Receives each message, calls Claude and returns the answer; holds the key
n8n Cloud · 5 nodes in one line: Webhook, Code, HTTP Request, Code, Respond to Webhook
Claude
Answers from the FAQ, and picks the action and the treatment
claude-haiku-5-5 via the Messages API (HTTP Request) · effort low · max_tokens 1,500 · 20 s timeout · credential "Anthropic API"
The widget
The launcher, the chat panel, three suggested questions, treatment and booking cards, the hand-over
Plain JavaScript and CSS, no build step · widget.js, widget.css · page timeout 25 s
The clinic site
Where "Book" in the chat opens the booking window, with the treatment picked
clinic.js listens for the widget's holloway:book event · booking window: case study 04

04 / 08

What's real and what's sample

Real

built
  • The workflow, running on n8n Cloud since 24 Nov 2026
  • Every answer in the chat: Claude's reply, live, on the demo page and on the sample clinic's site
  • The time under each answer, measured in the visitor's browser, network included
  • The fixes described below, each checked live after the change

Sample

sample
  • The clinic, Holloway Skin & Laser: a sample clinic with a made-up FAQ, prices, hours and practitioners
  • The questions quoted here: test questions, not visitors'
  • Demo mode: if no webhook is set, the widget answers from a scripted copy of the FAQ and its header says "Demo mode · scripted replies". That is keyword matching, not the AI
Live tests
24 Nov 2026, first live test: "Is there downtime after a peel?" got an answer about 3-5 days of light flaking, and "Can I book for Thursday?" came back with the action "book". 25 Nov, on the live clinic site: the same peel question, from the suggested-question row, got a tailored answer with the Chemical peel card (from $140, 45 min) in 4.3 s.
Not measured yet
What it would change for a clinic: questions answered without staff time, the share of chats that move on to booking, wrong answers found in review, running cost per month. Those need a real clinic's visitors, not test questions.

05 / 08

What broke, and the fix

In the first hours live, some answers went wrong in two ways. Haiku 5.5 thinks before it answers by default, so its answer can start with a thinking block. The first version of "Parse reply" read the first block, whatever it was. When that was the thinking block, a test question such as "what treatments do you have for oily skin?" got the fallback line, "Sorry, I'm not sure about that one".

The thinking also counts toward the token limit, which was 400. Some answers ran out mid-reply and reached the widget as raw, cut-off JSON, starting {"reply": "Our treatments include the HydraFacial from $189 (60 min), a ch.

The fix
"Parse reply" now reads the first text block. max_tokens went from 400 to 1,500; replies are still kept under 70 words by the rules, so only the thinking uses the extra room. Broken JSON never reaches the widget: the step keeps a complete reply if it can find one, or shows the fallback line. On 25 Nov effort was set to low (output_config). Each change was checked live.
Also changed
The same thinking issue hit the lead workflow on 25 Nov, and got the same effort setting.

06 / 08

The limits

  1. It's a proof of concept. Only test questions have gone through it.
  2. Since 25 Nov the webhook only takes browser calls from the site's own domains, but a script can still post to it. There's no spam filter or rate limit. The demo's Claude account has a $5 monthly limit; past it, the chat can't answer.
  3. The Claude step has no retry. If it fails, the visitor sees "Couldn't reach the assistant." with a Retry button; the page gives up after 25 seconds. What n8n sends back to the browser in that case hasn't been checked.
  4. Replies are kept under 70 words, only the last 8 turns are sent, and a message is cut at 1,000 characters.
  5. It doesn't book times itself. On the clinic's site "Book" opens the booking window with the treatment picked; on the separate demo page it goes to the clinic's enquiry form, without the treatment.
  6. Conversations are kept only in n8n's execution log.
  7. Adding or renaming a treatment needs a developer: the widget's treatment cards and the list in "Parse reply" must change with the FAQ.
  8. There's no offline mode. A "leave your number and we'll text you" option was left out on purpose: it would mean messaging a number a visitor typed.
  9. The time under each answer is measured in the visitor's browser and includes the network.

07 / 08

The handover

A clinic's team gets the workflow as a file to import into their own n8n, the widget's two files for their site, and a one-page guide. Everything the chat knows sits in one block of text in n8n, so changing a price is a one-line edit.

What the client gets

  • SOP Setup, a one-question test, editing the FAQ, reviewing conversations, known limits demos/chat-widget/SOP.md
  • Runbook A failed run shows visitors "Couldn't reach the assistant." with Retry; the owner also gets a Telegram alert from the error-alert workflow (live since 25 Nov 2026). A wrong answer doesn't fail a run, so the weekly read-through is the check for that SOP.md · How the clinic's team takes it over
  • Walkthrough video Planned: a price question, a medical question, and a booking request handed to the booking window on the clinic's site Script written, not recorded yet
  • Workflow and widget files The chat flow with the credential as a name only, the widget, and the three lines to embed it chat-workflow.json · widget.js · widget.css · README.md
Accounts they need
n8n (cloud or self-hosted) that the website can reach over HTTPS, an Anthropic API key with a monthly spend limit, stored in n8n as the "Anthropic API" credential, and access to the site's files to set the webhook address.
What they'd change
The FAQ block in "Build Claude request": prices, hours, policies, practitioners. The rules only with care. New treatments also need the widget's cards and the list in "Parse reply". The allowed web domains.
Weekly owner
One named person on the clinic's team, agreed at handover. Each week: read a sample of conversations in n8n's Executions (runs with the same session id are one conversation), fix the FAQ where an answer was wrong, and check Claude spend.

08 / 08

Run the demo

Ask about a treatment, a price or downtime, and see Claude's answer and how long it took. On the sample clinic's site, asking to book opens the booking window. If the workflow doesn't answer, the chat says so and offers a retry.

All case studies