New: auto-reply to comments on your LinkedIn Page, with keyword rules or AI, posted publicly.

Read the guide
MySampark
News

How to Add an AI Chatbot to Your Website

How to Add an AI Chatbot to Your Website

You do not need a developer to add an AI chatbot to your website. The whole job takes an afternoon: teach the chatbot about your business, paste one line of code (or install a plugin), and test it. This guide walks you through the five steps in plain words.

Key Takeaways

  • You can add a chatbot with one script snippet, a Shopify app, or a WordPress plugin.
  • The chatbot is only as good as what you teach it. Add your website, documents and common questions first.
  • Test it with the real questions your customers ask before you go live.
  • Choose a tool that lets a person take over a chat in one click.
  • You can change the look, greeting and tone any time without touching code.

What You Need Before You Start

  • Access to your website (to paste a snippet, or to install a plugin).
  • A list of your top 10 customer questions.
  • Your product list, price list or FAQ, if you have one.

Step 1: Teach the Chatbot About Your Business

An AI chatbot answers from what you give it. In MySampark you can add:

  • Your website. Crawl your whole site, or paste specific page links.
  • Documents. Upload PDF, DOC, DOCX, TXT or MD files, or paste text.
  • Custom Q&A. Write the exact answer to questions you hear every day.
  • Your product catalog. Add products by hand, upload an Excel sheet, or sync Shopify or WooCommerce.

Result: the chatbot can now answer in your words, with your prices.

Step 2: Choose How It Looks and Sounds

  • Name and logo. Use your brand name so visitors feel at home.
  • Colours and layout. Pick a modern or classic style, button position, and left or right side.
  • Greeting and welcome message.
  • Tone. Pick a preset, or write your own instructions.

Result: the widget looks like part of your site.

Step 3: Add It to Your Website

Your website How to install
Any website (HTML, custom, most builders) Paste one script snippet before the closing </body> tag
Shopify Install the MySampark Shopify app
WordPress or WooCommerce Install the MySampark Connect plugin

After you add it, MySampark can check that the widget is installed correctly, so you do not have to guess.

Result: a chat button appears on your site.

Step 4: Set the Rules

  • Lead capture. Ask for name, email or phone before the chat, or skip it.
  • Support hours. Show when your team is online. The AI can keep answering after hours.
  • Proactive message. Pop up after a few seconds or when someone is about to leave.
  • Allowed domains and limits. Stop spam by limiting where the widget works and how many messages one visitor can send.

Result: the chatbot behaves the way your business does.

Step 5: Test Before You Go Live

Open your site and ask the chatbot the real questions customers ask. Try:

  1. "How much is [product]?"
  2. "Do you deliver to [city]?"
  3. "What is your return policy?"
  4. A question you did not teach it. It should say it is not sure, or offer to connect a person.

If an answer is wrong or missing, add the right information to your knowledge and ask again.

Quick Fixes if Something Looks Wrong

Problem Likely cause Fix
No chat button on the site Snippet pasted in the wrong place, or the page is cached Paste it before </body> on every page and clear the cache
Chat opens but will not answer Your domain is not in the allowed list Add your domain in the widget settings
Wrong price or answer Old information in the knowledge Update the product or Q&A, then re-index the page
Answers feel too long Reply length is set high Shorten reply length in the settings

What to Do After You Launch

  • Read your chats for the first two weeks. They show what customers really ask.
  • Add any missing answers.
  • Check that your team can take over a chat when needed. See chatbot vs live chat.

Get Started with MySampark

Add an AI chatbot to your website in one afternoon. Start free with MySampark. The free plan has every feature and 100 free credits. Read more in our guide to the AI website chat widget.

Ready to answer every customer automatically?

Free plan · No card required · Live in one snippet