To add AI chat for website visitors, you embed a chat widget with a short script, connect it to an AI model that answers from your own business information, and set rules for when a human takes over. A small business can do this in an afternoon. The real work is choosing the right type of bot and writing the knowledge it answers from.
This guide is for small business owners, marketers and support leads who want a website chatbot that answers real questions without trapping customers in loops or creating surprise bills. Current as of November 2026.
If you want a widget that works alongside an AI agent and a shared inbox, see the Pinlyx live chat widget with built-in AI replies.
What is AI chat for a website, and how does it work?
AI chat for a website is a chat window that answers visitors with a language model instead of fixed menus. The model reads the question, looks at the information you gave it, and writes a reply in plain language.
Under the hood there are three parts. The widget is a small script in your page that shows the chat bubble. The backend stores conversations and passes each message to an AI model such as one from OpenAI, Anthropic or Google. The instructions and knowledge tell the model who it speaks for, what it may say, and when to stop and call a person.
The quality of answers depends far more on that third part than on the model brand. A strong model with vague instructions will guess. A modest model with clear, specific knowledge will usually answer well.
Free widget, scripted bot or LLM agent: which one do you need?
Most small businesses fit one of three options, and the right one depends on how varied your visitors' questions are. If people ask the same five things, a scripted bot is enough. If questions are open-ended, you need an LLM agent with a human backup.
| Type | How it answers | Good for | Hidden costs |
|---|---|---|---|
| Free chat widget (human only) | A person replies; no AI | Low volume, staff always online | Missed chats after hours, branding you cannot remove, upgrade walls on basic features |
| Scripted bot (decision tree) | Buttons and fixed answers you write | Narrow, repeat questions like hours or order status links | Time to build and maintain every branch; visitors leave when their question is not on the menu |
| LLM agent | Writes answers from your knowledge base | Varied questions, sales and support | Per-message AI usage, credit caps on bundled plans, time spent writing knowledge and testing |
Many tools blend these: a scripted greeting, then an AI agent, then a human. That mix is often the best chatbot for website use because each layer handles what it does well. For a deeper comparison of the categories, read AI agent vs chatbot: the one real difference.
Is there a free AI chatbot for website use, and what does free cost?
Yes, free plans exist, but "free" usually means a capped number of AI replies, a vendor logo in the widget, or no AI at all. Read the limits before you install anything on a page that matters.
The common catches are easy to spot once you know them:
- Credit or message caps. Bundled AI plans sell a set number of AI replies. When you run out mid-month, the bot goes silent or falls back to a form, and the visitor sees "out of credits" behavior.
- Per-seat pricing. The widget is free, but each teammate who answers chats costs extra.
- Locked handoff. Routing to a human, office hours or saved replies sit on paid tiers.
- Data limits. Short chat history or no export of conversations.
Example: a bundled plan includes 1,000 AI replies a month. If a typical conversation takes 4 AI replies, that covers about 250 conversations. A busy launch week can use that in days. With a bring-your-own-key setup, you pay the AI provider directly per use instead, which removes the hard cap but means you watch your own bill.
Open-source options from GitHub are another free route. They give you full control, but you host the server, update it, secure it and pay for the AI model yourself. That suits teams with a developer, not most shop owners.
How do you add an AI chatbot to your website, step by step?
The setup is the same on almost any platform: prepare knowledge, configure the bot, install the script, test, then go live with a human backup.
- List your top questions. Pull them from your inbox, call notes and contact form. Write the answer to each in one or two sentences.
- Write the knowledge base. Cover prices or where to find them, hours, delivery areas, returns, booking and what you do not offer. Missing facts are where bots invent answers.
- Set the voice and limits. Tell the bot who it is, how formal to be, and what it must never promise, such as discounts or delivery dates.
- Define handoff. Decide which words or topics send the chat to a person: complaints, refunds, "talk to a human", and anything the bot is unsure about.
- Install the widget. Paste the script before the closing body tag, or use your site builder's custom code field. Our guide to installing a live chat widget on any website covers WordPress, Shopify, Wix and plain HTML.
- Test with real questions. Ask the ten hardest questions you get, plus a few the bot should refuse.
- Launch in suggest mode first, if available. Let the AI draft and a person approve for a week, then switch on automatic replies.
How should handoff to a human work?
Handoff should happen before the visitor gets frustrated, not after. The bot should pass the chat when it is unsure, when it hears certain keywords, or when someone asks for a person.
A clean handoff has three parts. First, the visitor is told plainly that a person will reply and roughly when. Second, the human sees the full conversation so the customer never repeats themselves. Third, the bot stays quiet once a human joins, so two voices do not answer at once.
After hours, the bot should collect a name and an email or phone number so someone can follow up. That one detail turns a missed chat into a lead. For more on catching and keeping those contacts, see lead generation from DMs and chats.
What makes an AI chatbot for website customer service actually useful?
Useful bots answer the specific question with your real facts, and admit when they do not know. Visitors forgive "let me get someone" far more than a confident wrong answer.
Check these before you trust a bot with customers:
- It quotes your policy, not a generic one.
- It refuses things outside its knowledge instead of improvising.
- It keeps answers short enough to read on a phone.
- It works in the languages your visitors use.
- Its conversations land in the same inbox as your email and social messages, so nothing is lost.
That last point matters more as you grow. A website chat that lives in its own separate tool becomes one more place to check. Our roundup of the best omnichannel inbox tools for small business compares options that combine chat with other channels.
How to add AI chat to your website with Pinlyx
Pinlyx combines a live chat widget, an AI agent and a shared inbox. Live chat and AI agents need the Pro plan (live chat on 1 site, up to 3 agents) or Business (unlimited agents). They are not on Free.
- Create a workspace at app.pinlyx.com and choose a Pro or Business plan on the pricing page.
- Set up the live chat widget for your site and paste its script into your pages.
- Open AI Agents and click "New AI agent". Pick a template (Customer Support, Sales SDR or Lead Qualifier) or "Learn from your chats".
- Enter your own LLM key. Pinlyx is bring-your-own-key: you can use OpenAI, Anthropic, Google Gemini, Mistral, Groq and others, and the AI usage is billed by that provider to you.
- Add knowledge base entries as a title plus free text. Paste answers in; URL and PDF import are not available.
- Add rules: a condition (keyword, regex, stage or platform) and an action such as reply, tag, change stage or hand off to a human.
- Choose the channel and reply mode: Auto-send, Suggest or Draft only. Start with Suggest, then test.
- Go live. When an operator replies to a contact, the agent stays silent for that contact, and every chat is saved as a contact in the CRM.
More detail on agent behavior is on the AI agents page, and the full list of channels is on the features page.
Try it: set up your workspace on the free Pinlyx plan, explore the CRM, no credit card needed, then upgrade when you want the website chat and AI agent. One honest limit: the free plan does not include live chat or AI agents, and you supply your own AI key.
Frequently asked questions
Can I add a chatbot to my website without coding?
Yes. Most chat tools give you one script to paste into a custom code or footer field, and site builders like WordPress, Wix and Shopify have a place for it. You do not need to write code. The part that takes effort is writing clear answers for the bot, not installing it.
Are AI chat websites like ChatGPT the same as a website chatbot?
No. AI chat sites such as ChatGPT are general assistants you visit to ask anything. A website chatbot sits on your own site and should only answer about your business, using your knowledge and rules. It often uses the same kind of language model, but with tight instructions and a handoff to your team.
Will an AI chatbot replace my support staff?
For a small business, it usually takes over repeat questions such as hours, delivery and how to book, while people handle complaints, refunds and sales that need judgment. Plan for a human backup from day one. A bot with no escalation path frustrates customers on exactly the conversations that matter most.
Is there a good AI chatbot for website on GitHub?
Several open-source chat projects exist on GitHub, and they can work well if you have a developer. You will host the server, apply security updates, connect an AI provider and build the handoff yourself. For a team without technical staff, a hosted tool is usually cheaper once you count the time.
How do I stop the bot from giving wrong answers?
Give it specific facts, tell it to say it does not know when information is missing, and set a rule to hand uncertain chats to a person. Test with your hardest real questions before launch, and review conversations weekly. Most wrong answers trace back to a gap in the knowledge you supplied.
Related reading
- AI Agent vs Chatbot: The Four Categories, the One Real Difference, and the Metric That Hides Your Failures
- Live Chat Conversion Rate: Why 2.8x Measures Your Visitors, Not Your Widget
- How to Build a WhatsApp Chatbot in 2026: No-Code Setup, AI Agents, and the Rules That Get Bots Blocked
- Lead Generation: How Small Businesses Capture and Keep Leads From DMs and Chats
