Project: build an AI FAQ helper
Add an AI helper that answers only from a business's real FAQ, admits when it doesn't know, keeps the key on the server and passes a test set.
What you'll build
A small chat box on a website (a gym, a salon, a club) that answers visitors' questions from the business's own FAQ and opening hours, and says 'I'm not sure, here's how to contact us' when the answer isn't there. It's the most common AI feature businesses ask for, and it teaches the habits that keep AI features honest, safe and affordable.
Step 1: Gather the knowledge and the tests
Collect the real FAQ, hours, prices and policies into one document (the knowledge base). Then write 15 test questions with the answer you expect, including three it should refuse, such as a price that isn't listed. These become your eval: the way you'll know it works before anyone else tries it.
Step 2: Build it with the key on the server
Prompt your builder: 'Add a chat box labelled AI helper. Send questions to a server route, never from the browser, using the AI provider's API with the key from an environment variable. The system prompt: answer only from this FAQ; if the answer isn't in it, say you're not sure and give the contact details; never invent prices or policies; keep answers under 80 words.' Paste the FAQ where the system prompt can use it.
Step 3: Test it, limit it, ship it
- Run your 15-question eval. Aim for at least 13 right, with every refusal correct. Fix the prompt or FAQ, not just the one answer.
- Add a rate limit (for example, a few questions per minute per visitor) and set a monthly spending limit with the AI provider.
- Label it clearly as an AI helper, add a 'talk to a person' option, and don't ask visitors for personal details in the chat.
- Deploy, ask the business owner to try to break it, and re-run the eval whenever the FAQ changes.
Key terms
- Knowledge base
- Documents an AI agent can look up, like your FAQ, policies or price list.
- System prompt
- Hidden standing instructions that shape every answer an AI app gives.
- API key
- A secret code that identifies your app to a service and is often tied to billing.
- Environment variable
- A setting or secret the app reads at run time, kept outside the code.
- Eval
- A set of real examples with expected answers, run to measure an AI feature's quality.
- Rate limit
- The most requests or tokens a key may use in a period, such as per minute.
- Hallucination
- A confident AI answer that is false or made up.
- Server
- A computer (usually in the cloud) that runs your app's back end and answers requests.
Try it
Build it for a real business
- Pick a local business or club and gather its FAQ, hours and policies into one document.
- Write 15 test questions with expected answers, including three it should refuse.
- Build the helper with the Step 2 prompt and the key in an environment variable.
- Run the eval, fix the prompt until it passes, then mark the AI FAQ helper Build Challenge as built.
Ask an AI tutor about this guide
Copy a prompt into ChatGPT, Claude or Gemini to go deeper. Check what it tells you against the guide.
- Explain it like I'm 12
- Quiz me (5 questions, one at a time)
- Show me a real example for my situation
- What do beginners get wrong?
Knowledge check
Five questions. Get 4 right to earn the AI Feature Builder badge. You can retake it as often as you like.
Question 1 of 5
Finished the Build projects guides? Take the Build projects track test for ten mixed questions.
My notes
Write what clicked, what confused you, and what you want to try. Saved in this browser only.
Learn it live
Digital Builders University runs small live workshops where you build something real with an instructor beside you, starting with Vibe Coding 101.
See workshopsPractise it
- Build Challenge: AI FAQ helper on a website (Pro, 4 hours)
Official sites
- OpenAI API docs (opens in a new tab)
- Anthropic docs: Prompt engineering overview (opens in a new tab)
Last reviewed November 25, 2026. AI tools change fast; check each tool’s own site for current features, plans and prices.
