An AI chatbot on your website answers questions instantly, captures leads 24/7, and handles the same 20 questions your team answers every day. This guide walks you through building one with Claude.
Why You Need a Chatbot
62% of calls to small businesses go unanswered. 80% of callers won’t leave a voicemail — they call your competitor. 53% of customers expect 24/7 availability. A chatbot solves all three.
What a Good Business Chatbot Does
- Answers common questions — hours, pricing, services, policies
- Qualifies leads — asks what they need, timeline, budget
- Captures contact info — from visitors who would have bounced
- Books appointments — integrates with your calendar
- Escalates when needed — knows when to hand off to a human
Step 1: Document Your Chatbot’s Knowledge
Write down everything the chatbot needs to know: business basics (name, hours, location, contact), every service with description and price range, your top 15-20 most asked questions with answers, and policies (cancellation, payment, service area).
Step 2: Write the System Prompt
You are the AI assistant for [Business Name].
PERSONALITY: Friendly, professional, concise. Simple language.
Honest when you don't know something. Never pushy.
GOALS (priority order):
1. Answer the question accurately
2. If interested in a service, ask qualifying questions
3. Capture contact info naturally
4. Offer to book a call
5. Escalate complex questions to the owner
LEAD CAPTURE: After 3+ messages without contact info, ask:
"What's the best email to reach you in case we get
disconnected?"
[Paste your full FAQ document here]
Step 3: Build the Chat Widget
Ask Claude to generate a floating chat widget: button in bottom-right corner, clean design matching your brand, input field with send button, typing indicator, mobile responsive. Generate as a single JavaScript file you add with one script tag.
Step 4: Build the Backend
A simple Node.js API that receives messages from the widget, sends them to Claude API with your system prompt, returns the response, and logs conversations. Deploy to Vercel (free tier). Include rate limiting at 20 messages per session.
Step 5: Test These Scenarios
- Happy path: customer asks about service, gets info, books call
- Out-of-scope: bot escalates properly
- Frustrated customer: bot stays calm, offers human connection
- Price shopper: handles gracefully
- Mobile: widget works on phones
What This Costs
| Component | Hiring a Dev | With Claude |
|---|---|---|
| Chat widget | $2,000-5,000 | Free (Claude generates) |
| Backend API | $1,000-3,000 | Free (Claude generates) |
| Claude API usage | N/A | $10-30/month |
| Hosting | $20-50/month | Free (Vercel) |
| Total first year | $5,000-15,000 | ~$200-400 |
When to Hire a Professional
Build it yourself if it’s a straightforward Q&A bot. Hire a professional if you need CRM integration, payment handling, regulatory compliance (healthcare, legal, finance), voice support, or multilingual capabilities. A professional AI development studio can have your chatbot live within 1-2 weeks, fully customized and maintained.