How to Build a Smart Chatbot for Your Website

Step-by-step tutorial to create, train, and deploy an AI chatbot on your website using BotByte AI.


This guide walks you through creating a fully functional AI chatbot and embedding it on your website in under 15 minutes. No coding skills required.

Prerequisites

  • A Google or GitHub account to sign into BotByte
  • An API key from one of the supported AI providers:

If you prefer guided in-app onboarding, start here: botbyte.in/dashboard/onboarding


Step 1 - Configure Your Account

  1. Open botbyte.in/dashboard/settings
  2. Get an API key from your chosen provider (see links above)
  3. Paste the API key in your BotByte settings

For OpenAI specifically, make sure your account has a payment method configured or API calls will be rejected.


Step 2 - Upload Training Content

Your chatbot needs content to reference when answering questions. This is what makes it smart about your specific business.

  1. Open botbyte.in/dashboard/files
  2. Click Upload and select a file (PDF, DOCX, TXT, CSV, etc.)
  3. The file is processed and indexed for retrieval

What makes good training content:

  • FAQ documents with common questions and answers
  • Product documentation or user guides
  • Knowledge base articles
  • Company policies and procedures

Alternatively, use a Crawler to automatically scrape your website content.


Step 3 - Create Your Chatbot

  1. Open botbyte.in/dashboard/new/chatbot
  2. Fill in:
    • Name - A display name for your dashboard
    • AI Provider - OpenAI, Anthropic, or Google
    • Model - e.g. GPT-4o, Claude 3.5 Sonnet, Gemini 1.5 Pro
    • Welcome Message - The first message users see
    • System Prompt - Instructions for the AI (see our prompt guide)
    • Files - Select the files you uploaded in Step 2
  3. Click Create

Test your chatbot immediately by clicking Chat from the chatbot list at botbyte.in/dashboard/chatbots.


Step 4 - Embed on Your Website

The easiest way is the JavaScript SDK. Add one line of code before your closing body tag:

<script src="https://botbyte.in/sdk/botbyte-sdk.js" data-chatbot-id="YOUR_CHATBOT_ID"></script>

Replace YOUR_CHATBOT_ID with your actual chatbot ID (found in your dashboard).

That is it. A floating chat button will appear on your website. When clicked, it opens a chat window where visitors can talk to your AI assistant.

For more embedding options (iframe, React, user context), see the Embedding documentation.


What Happens Next

  • Visitors click the chat button on your website
  • They type a question in natural language
  • The AI searches your uploaded content for relevant information
  • It generates a personalized, accurate response using that context
  • The conversation continues with full thread history

Next Steps