How to Add a Free AI Chatbot to Your Website (Step-by-Step Guide)

11 min readUpdated 15 July 2026

Learn how to add a chatbot to your website free in under 2 minutes with ApnaAI. No coding, works on WordPress, Shopify, HTML, and more.

Want this on your website today?

Train ApnaAI on your FAQs and embed a free chatbot in minutes.

Why every Indian small business website needs a chatbot in 2026

Customers visit your website when you are sleeping, when you are busy with delivery, or when your phone is on another call. If nobody replies in that moment, they leave — and often they never come back.

A chatbot sits on your website 24/7 and answers the same questions you answer every day: opening hours, price, delivery time, address, return policy, course fees, appointment slots.

This guide shows you how to add a chatbot to your website free using ApnaAI — a free AI customer support chatbot built for Indian small businesses. No developer required.

What you will need

  • A website (WordPress, Shopify, HTML, Wix, Framer, or any site where you can paste a script)
  • Your business details written in plain English (or Hindi mixed with English — keep it clear)
  • About 5 minutes

That is it. No payment card. No complicated plugins.

Step 1 — Create your free ApnaAI account

  1. Open https://apnaai.online
  2. Click Get Started for Free or login
  3. Sign in with your account

You will land on the dashboard where you configure one chatbot for your business.

Step 2 — Fill business settings

In the dashboard, add:

  • Business name — exactly how customers know you
  • Support email — where people can still write to a human
  • Knowledge base — the heart of your chatbot

Think of the knowledge base as a smart notebook you give to a new staff member. Write what they must know to answer common questions.

Tip: Write short, clear lines. Use bullet points. Include prices and timing exactly as you say them on WhatsApp.

Step 3 — Paste a knowledge base template

Copy this template, fill the blanks, and paste it into ApnaAI:

Business name:
What we sell / do:
City / area we serve:
Business hours:
Phone / WhatsApp:
Address (if any):
Website:

Popular products or services:
1)
2)
3)

Pricing (current):
- 
- 

FAQs customers ask every day:
Q: 
A: 
Q: 
A: 

Delivery / visit policy:
Returns / refunds / cancellation:
How to book / order:
Anything the bot must NEVER say incorrectly (policies, medical, legal limits):

Save after you paste. Your bot now knows your business.

Step 4 — Get your embed code

Open Embed ChatBot in the dashboard. You will see a script similar to:

<script
  src="https://apnaai.online/chatBot.js"
  data-owner-id="YOUR_OWNER_ID">
</script>

Copy the full tag. Your owner ID is unique — do not share someone else's code.

Step 5 — Add the chatbot to your website

WordPress

  1. Go to Appearance → Theme File Editor, or use a plugin like "Insert Headers and Footers"
  2. Paste the script before </body>
  3. Save and refresh your site

If you use Elementor or a page builder, use their custom code / footer script option.

Shopify

  1. Online Store → Themes → Edit code
  2. Open theme.liquid
  3. Paste the script just before </body>
  4. Save

Custom HTML / any host

Open your main HTML file (or layout template) and paste before </body>. Upload/save and reload.

Wix / Framer / other builders

Look for Custom code, Embed, or Body end scripts. Paste the ApnaAI script there.

Step 6 — Test like a real customer

Open your website in an incognito window and ask:

  • "What are your timings?"
  • "How much does ___ cost?"
  • "Do you deliver to ___?"
  • "How do I contact support?"

If an answer is wrong or vague, go back to the knowledge base and add that detail clearly. Then retest.

Common mistakes to avoid

  1. Empty knowledge base — the AI cannot invent your prices safely. Always write them.
  2. Outdated prices — update ApnaAI the same day you change price lists.
  3. Pasting in the wrong place — script must load on every page where customers chat (usually site-wide footer).
  4. Hiding the bot on mobile — most Indian visitors use phones; keep the widget visible.
  5. No human fallback — always list WhatsApp or phone so urgent cases reach you.

How ApnaAI stays useful after install

  • Customers get instant answers at night
  • You spend less time on the same WhatsApp questions
  • Your website feels more "professional" without hiring staff
  • You can improve answers every week by editing one text box

For niche ideas, read our guides on restaurant websites, ecommerce, and coaching institutes.

Free chatbot vs paid tools — quick reality check

Many paid chatbots charge monthly fees, force long onboarding, or need a developer. For most kirana websites, local services, coaches, clinics, and shops, a free embed like ApnaAI covers the basics brilliantly:

  • FAQ answers
  • Business info
  • Lead capture through conversation
  • 24/7 presence on the site

If you later need call routing, CRM sync, or multi-agent chat, you can upgrade your stack — but start free and go live today.

How to write answers the AI will use correctly

Treat the knowledge base like instructions for a new receptionist:

  • Prefer facts with numbers: "Delivery in Pune: 2–3 days" beats "fast delivery"
  • Prefer one answer per topic — avoid contradicting lines in different places
  • Prefer current season notes: festive hours, monsoon delays, exam-season batches
  • Prefer clear handoff: "For custom quotes, WhatsApp +91-XXXXXXXXXX"

If the bot says something vague, that usually means your notes are vague. Fix the notes first — not the script.

WordPress, Shopify, and custom HTML — troubleshooting

Script not showing? Hard refresh (Ctrl/Cmd + Shift + R). Check browser console for blocked scripts. Confirm you published to the live domain, not only a draft preview.

Showing on staging but not production? You may have pasted only into a staging theme copy. Repeat the embed on the live theme.

Wrong business answers? You may have an old knowledge base draft. Re-save settings, then retest in incognito.

Slow on cheap hosting? The ApnaAI script loads when the page loads; if your theme already loads many plugins, clean unused WordPress plugins for overall speed.

After go-live: a simple weekly routine

Every Monday, spend 10 minutes:

  1. List three questions customers asked on WhatsApp that week
  2. Add or improve those answers in ApnaAI
  3. Ask one team member to test the bot on mobile
  4. Update prices that changed

This tiny habit keeps your free chatbot more accurate than expensive tools that nobody maintains.

Who should install this first in your team?

Pick one owner — usually the founder, marketing person, or shop manager. Give them login access. When prices change, that person updates ApnaAI the same day. Clarity of ownership beats fancy features.

Internal checklist before you share your site

  • [ ] Knowledge base saved with prices and hours
  • [ ] Embed code live on production domain (not only localhost)
  • [ ] Tested on mobile Chrome
  • [ ] Support email / WhatsApp listed in knowledge base
  • [ ] Related FAQs added for your top 10 questions
  • [ ] One teammate assigned to weekly updates

Get your free chatbot now

You now know how to add a chatbot to your website free. The hard part is not technology — it is writing clear business notes once.

Ready? Open ApnaAI, sign in, paste your knowledge base, and embed the script. Your website can start answering customers tonight.

Frequently asked questions

Is ApnaAI really free to add a chatbot to my website?
Yes. You can sign up, train the bot on your business information, and embed it on your website for free. Start at https://apnaai.online.
Do I need coding skills to add a chatbot?
No. After you save your knowledge base, you copy one script tag and paste it before the closing body tag of your site. That is all.
Will the chatbot work on WordPress and Shopify?
Yes. ApnaAI works on WordPress, Shopify, Wix, custom HTML, and most website builders because it uses a simple JavaScript embed.
What should I put in the knowledge base?
Add business name, hours, location, products or services, pricing, FAQs, refund policy, and contact details. The clearer your notes, the better the answers.
How long does setup take?
Most small businesses finish setup in under 5 minutes — login, paste knowledge base, copy embed code, and publish.

Related guides

Get your free ApnaAI chatbot

Sign in, paste your knowledge base, embed one script — done.