← Back to library

Support chat that answers only from your help articles

An Anthropic quickstart for a customer-support chat app. It retrieves answers from your knowledge base (Amazon Bedrock Knowledge Bases), displays the sources behind each answer, detects when a user is frustrated or the question is out of scope, and redirects to a human agent. It is a Next.js app meant to be adapted and deployed by a developer.

  • OutcomeA website support chat that answers from your help articles, shows which articles it used and hands frustrated users to a person.
  • SetupAn afternoon+
  • LevelAdvanced
  • CreditAnthropic
View original
Works with
Claude

Published Oct 20, 2026Updated Oct 20, 2026AI dry run on sample input: passed Oct 20, 2026Source verified Oct 23, 2026

When should you use it?

  • You have a decent help center but customers still email basic questions
  • You want a support chat that cites sources
  • MSPs building a client-facing help chat

Not for: No-code teams: this needs a developer and an AWS account

What do you need, and what do you get?

You need

  • Help-center articles or knowledge base
  • AWS Bedrock access and an Anthropic API key
  • A developer to deploy it

You get

  • Deployable chat interface with source display and human handoff

How does it work, step by step?

  1. Clone the quickstartClone the repository and open the folder; the README lists the prerequisites.
  2. Configure keysSet the API keys the README asks for in a local environment file, never in code.
  3. Load your own contentReplace the sample content with yours, starting with a small, non-sensitive set.
  4. Test before sharingAsk it questions you know the answers to and check it before anyone outside the team uses it.

The prompt

Our adapted version, written to work in Claude. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt4 variables
You are the support assistant for {company}. Answer only from the help articles provided below and name the article you used.
If the articles don't answer the question, say so and offer to connect the customer with {handoff_channel}. If the customer is upset, about billing errors, or asking for an account change, hand off immediately without attempting an answer.

Help articles:
{articles}

Customer message:
{message}

The original workflow is published by Anthropic on GitHub (anthropics/claude-quickstarts). Open it there to install or import it; the prompt above is our own adaptation.

What can go wrong?

  • Answers are only as good as your articles; fix gaps the chat reveals.
  • Decide where handoffs go (email, ticket, live chat) before launch.

Our take

Two features make a support bot safe enough to put in front of customers: it shows where an answer came from, and it hands off to a person when it should. This quickstart has both built in, which is why it is a good reference even if you end up buying a tool rather than deploying it. In our dry run we used our prompt in a chat assistant with eight sample help articles for a small accounting software product and asked ten questions: seven were answered with the right article named, two questions not covered by the articles were redirected to support, and one angry message about a double charge went straight to a handoff without an attempted answer. That last case is the one to test hardest before launch. Review unanswered and handed-off questions every week; each one is either a missing article or a question the bot should never answer, and both are worth knowing.

Where the time goes back: Routine questions get answered from your own articles, and the hard ones reach a person faster.

FAQ

Will it make things up?
The prompt tells it to answer only from retrieved content and to redirect when nothing relevant is found. Test that behavior with questions your articles don't cover.
Is there a no-code option?
Not in this quickstart. Some help-desk tools include similar grounded bots; the source display and handoff are the features to look for.

Source and credit

This playbook is based on work by Anthropic. We summarize it and link to it and write our own adapted prompt.

Original
Customer support agent · anthropics/claude-quickstarts
Creator
Anthropic
Published on
GitHub (anthropics/claude-quickstarts)
License
MIT
Originally for
Claude
AI dry run
Oct 20, 2026: passed. Dry-run tested by our AI test agent on sample input. No answers outside the articles.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

The original is licensed under the MIT License (Copyright (c) 2023 Anthropic). Modified: our adapted prompt and summary are our own wording; the original is unchanged at the source link.

Are you the creator? Claim or correct this page.

More in Customer Support

All 28 Customer Support playbooks →

Related playbooks

Customer SupportPrompt✓ AI dry run

Clean up saved support replies before your bot reuses them

Read every saved answer your support bot can pull from as if it were about to be sent to a stranger, rewrite the risky ones into generic answers and set rules so new ones are written that way.

Credit: Pierre-Laurent Medori

Under an hour