Build an AI customer support bot
A support bot answers common customer questions on your website, around the clock, and hands off to a human when it can't help. It starts from our chatbot stack, but support adds two must-haves: answers grounded in your own help docs, and a clear escalation path.
Uses the picker's Chatbot stack, with advice specific to this use case.
Recommended stack
Model
- Google Gemini 3.8 Flash: Free tier available; paid ~$0.75 in / $3.75 out per 1M until 2026-12-31, then $1.50/$7.50 (verified 2026-11-22)
- OpenAI GPT-6 Luna: ~$0.10 in / $0.50 out per 1M tokens (verified 2026-11-22)
- OpenRouter: 25+ free models (50 requests/day); paid models at provider list price plus a 5.5% fee on credit purchases (verified 2026-11-15)
Framework
- Vercel AI SDK: Free, open-source TypeScript SDK
- LangChain / LangGraph: Open source (free); LangSmith Developer $0 (5k traces/mo), Plus $39/seat/mo (verified 2026-11-15)
Hosting
- Vercel: Hobby $0 (personal, non-commercial); Pro $20/mo incl. $20 credit (verified 2026-11-15)
No-code alternative
Rough monthly cost
$0–15/mo (free hosting + cheap model)Approximate. Tool prices checked 2026-11-15.Difficulty
BeginnerSome links may be affiliate links. Disclosure
Why this stack
- The Vercel AI SDK gives you a streaming chat widget in TypeScript; LangChain helps when you add retrieval over your help center.
- Gemini Flash and GPT-6 Luna are fast and cheap enough for high-volume support chats; OpenRouter lets you switch models with one key.
- Voiceflow is built for support and CX teams (free trial, usage-based pricing), and Dify offers an open-source, self-hostable builder with a knowledge base.
- Grounding answers in your FAQ and policies (see the RAG guide) is what stops the bot inventing refund rules.
Step-by-step
- Export your top 30 support questions and the help-center pages that answer them.
- Load those pages into a knowledge base (Dify, Voiceflow, or LlamaIndex + Chroma) and require the bot to answer only from them.
- Write a system prompt: what the bot covers, tone, what it must never promise (refunds, legal or medical advice), and when to escalate.
- Add a human handoff: a "talk to a person" button that opens your email or ticket form with the chat transcript.
- Test with 30 real past tickets, fix wrong answers by improving the docs, then embed the widget and review logs weekly.
Common pitfalls
- Bots that invent policies are worse than no bot. Make it cite the help page and say "I don't know" otherwise.
- Don't send customer personal data you don't need. On the Gemini API free tier, prompts may be used to improve Google's products; use a paid tier for customer data.
- Add rate limits and a max message length before launch; public chat widgets get abused.
- Tell users they are chatting with an AI and make the human option easy to find.
FAQ
What's the cheapest way to add an AI support bot to my website?
A no-code builder (Voiceflow or Dify) or a Vercel AI SDK widget on Vercel's free Hobby plan with a low-cost model like Gemini Flash or GPT-6 Luna. Note that Vercel Hobby is for non-commercial use, so a business site needs Pro.
How do I stop the bot making things up?
Give it only your help-center content as context, instruct it to answer only from that content, show the source link, and escalate to a human when nothing relevant is found.
Can it hand off to a human?
Yes. Add an escalation step that sends the transcript to your email, helpdesk or ticket form whenever the user asks for a person or the bot isn't confident.
Try it in the picker: Customer support bot for my website · AI that answers customer FAQs · Support chatbot that hands off to a human
Customise this stack in the picker →Related stacks
- Build an AI chatbot (Chatbot)
- Build a docs Q&A (RAG) app (RAG / docs Q&A)
- Build a chat-with-your-PDFs app (Chat with your PDFs)
Last updated 2026-11-22.