블로그로 돌아가기
guideschatbots

How to Build an AI Chatbot for Your Website in 15 Minutes

Mochii Team

Visitors arrive on your website with questions. If the answer takes more than a few seconds to find, many of them leave. An AI chatbot trained on your own content can answer instantly, at any hour, in the visitor's language.

You do not need a developer to set one up. This guide walks through the whole process in Mochii.

What you need

  • A free Mochii account
  • The content you want the chatbot to know: your website, help articles, or documents such as PDFs
  • Access to your website's HTML, or to a field where your site builder lets you add custom code

Step 1: Add your content

The chatbot is only as good as what it knows, so start with the knowledge base.

Open the knowledge base and choose Create Knowledge. Then either enter the URL of a page on your site or upload documents. PDF, Word, Excel, CSV and text files are supported.

Put everything for this chatbot into one category, for example "Website support". Categories are how you tell a chatbot which content it may use.

Tip: start with the pages that already answer your most common questions: pricing, shipping, returns, opening hours, getting started. Ten good pages beat a hundred irrelevant ones.

Step 2: Create the chatbot

Open Chatbot in the sidebar and create a new chatbot. There are three short steps:

  1. Basic information. Name the chatbot and choose the AI model that powers it. A fast, lightweight model is a good default for customer questions.
  2. Personality. Write a short prompt that explains who the chatbot is and how it should behave.
  3. Knowledge base. Select the category you created in step 1.

Here is a prompt you can adapt:

You are the support assistant for [company]. Answer questions about our
products and services using the knowledge base. If the answer is not in
the knowledge base, say you are not sure and suggest contacting
[email]. Keep answers short, friendly and factual.

The instruction about what to do when the answer is unknown matters most. It keeps the chatbot from guessing.

Step 3: Test it

Open the Playground and ask the questions your customers ask. Check three things:

  • Is the answer correct?
  • Does it come from your content rather than general knowledge?
  • Does it admit when it does not know?

If an answer is wrong or missing, the fix is almost always to add or improve content in the knowledge base, not to rewrite the prompt.

Step 4: Add it to your site

Go to Connect and copy the chat bubble script. It looks like this:

<script src="https://www.mochii.ai/widget.js"></script>
<script>
  new MochiiWidget({
    apiKey: "YOUR_API_KEY",
    domain: "https://www.mochii.ai",
    title: "Customer Support",
    firstMessages: ["Hi! How can I help you today?"],
  });
</script>

Paste it before the closing </body> tag of your website. Most site builders have a "custom code" or "footer scripts" setting for this. Reload your site and the chat bubble appears in the corner.

You can change the color, position, greeting and suggested questions. The widget reference lists every option.

Step 5: Improve it with real conversations

Once the chatbot is live, the Activity view shows what visitors actually ask. Read through it once a week:

  • Questions it could not answer tell you what content to add.
  • If a reply was wrong, use Improve Answer to correct it. The correction is saved to the knowledge base.
  • Frequent questions make good suggested messages for the widget.

Going further

  • Capture leads. Let the chatbot collect contact details from interested visitors.
  • Add messaging channels. Connect the same chatbot to Telegram and WhatsApp.
  • Keep content fresh. Set a refresh interval on website sources so the chatbot follows changes to your pages.
  • Set a credit limit. Cap how much a chatbot can use, so a traffic spike never surprises you.

Ready to start? Create your chatbot, or read more about AI Chatbots in Mochii.

최고의 AI 모델을 오늘 바로 활용해 보세요

몇 초 만에 무료 계정을 만들고 채팅을 시작하거나, 캐릭터를 만들거나, 웹사이트용 챗봇을 출시해 보세요.

무료 플랜 제공. 신용카드 없이 시작할 수 있습니다.