Skip to main content
Guide7 min read
WC

Written by William Cooke · Founder at VocUI

How to Add a Chatbot to Your Website (No Coding Required)

Adding a chatbot to your website used to mean hiring a developer and spending weeks on setup. Today you can train a chatbot on your own content and embed it on any website in under an hour — without writing a single line of code yourself.

What you need before you start

Before you log in and create your first chatbot, it helps to have a few things ready. None of them are technical — they're just content decisions.

  • A knowledge source This could be a URL to your FAQ page, a PDF of your service guide, or a simple list of questions and answers you type in manually.
  • A clear purpose What do you want the chatbot to do? Answer product questions? Handle customer support? Capture leads? Having one primary goal will make your setup cleaner.
  • Access to your website Specifically, the ability to add a script to your site. On most platforms, this takes about 60 seconds.

That's genuinely it. You do not need an OpenAI account, a developer, or any experience with AI. VocUI handles all the technical layers — the embeddings, the vector search, the model calls — so you just provide the content.

Step 1: Create your chatbot and connect a knowledge source

Sign up for a free VocUI account and click "New Chatbot." Give it a name — this is just for your reference, not what visitors will see.

Next, add a knowledge source. You have a few options:

  • URL Paste a web page address. VocUI will scrape the content automatically. You can add multiple URLs, including your entire help center or blog if you want.
  • PDF or DOCX Upload a document. This works well for product manuals, service guides, or any reference material you already have as a file.
  • Q&A pairs Type questions and answers directly. This is the fastest way to get something working if your FAQ exists as a list in a Google Doc or spreadsheet.

Once you add a source, VocUI processes it in the background — chunking the text, creating embeddings, and storing them in a vector database. For a typical help page or short PDF, this takes less than a minute. See our guide to knowledge base chatbots for more detail on how this works under the hood.

Step 2: Configure the widget

Go to the Settings tab of your chatbot. Here you can set:

  • Display name What visitors see in the chat header. “Support”, “Ava”, “Ask Us Anything” — whatever fits your brand.
  • Welcome message The first thing the chatbot says when someone opens it. Something like “Hi! I’m here to help. What can I answer for you today?” works well.
  • Brand color Pick your primary color and the widget header and button will match it automatically.
  • Position Bottom-right or bottom-left. Bottom-right is the convention most visitors expect.
  • System prompt Optional, but useful for defining the chatbot’s personality and boundaries. For example: “You are a helpful assistant for Acme Services. Only answer questions about our services. If someone asks something unrelated, politely let them know.”

Step 3: Copy the embed code

Go to the Deploy tab in your chatbot dashboard. You'll see a code snippet that looks something like this:

<script src="https://vocui.com/widget.js" data-chatbot-id="YOUR_ID" async></script>

Copy this snippet. That's the entire integration. One tag, one attribute with your chatbot ID, and you're done on the VocUI side.

Step 4: Paste the script into your site

Where exactly you paste it depends on your website platform. The rule is the same everywhere: it goes before the closing </body> tag.

WordPress

Install the free "Insert Headers and Footers" plugin. Go to Settings → Insert Headers and Footers, paste the snippet into the footer section, and save. Alternatively, you can add it to your theme's footer.php file directly.

Webflow

Go to Project Settings → Custom Code → Footer Code. Paste the script and publish your site.

Squarespace

Settings → Advanced → Code Injection → Footer. Paste and save.

Shopify

Online Store → Themes → Edit Code → theme.liquid. Find the </body> tag and paste just before it.

Plain HTML

Open your HTML file, find </body>, and paste the snippet immediately before it. Save and upload.

Following along? Create your chatbot now and try each step live.

Try it free

Step 5: Test the live widget

Open your website in a browser — not localhost, the actual live URL. The chat widget should appear in the bottom-right corner. Click it and ask a question that your knowledge base covers.

If the answer looks right, you're live. If it seems off, go back to your knowledge sources and check the content. The most common issue is that the source content was vague or the relevant information was buried in a long document. Adding a focused Q&A pair for the tricky questions usually fixes it immediately.

VocUI also has a built-in chat tester in the dashboard so you can iterate without having to check your live site every time.

Common mistakes to avoid

  • Skipping the system prompt. Without a system prompt, your chatbot will try to answer anything — including questions completely outside your business. A one-sentence prompt that defines the scope prevents this.
  • Using only one knowledge source. A single FAQ page often misses context. Add your pricing page, your “How it works” page, and your top product pages for much better coverage.
  • Never updating the knowledge base. If your pricing changes or you launch a new service, the chatbot won’t know until you update its sources. Make it part of your launch checklist.
  • Expecting it to replace your support team entirely. A well-configured chatbot handles 60\u201380% of routine questions. But complex issues, billing disputes, and upset customers still need a human. Set up live agent handoff for those cases. See our customer support chatbot guide for how to configure escalation.

What to do after launch

Once your chatbot is live, check the conversation history in your dashboard after the first few days. Look for questions that got poor answers or where the visitor immediately asked a follow-up — those are signals that your knowledge base has a gap.

Adding content for those gaps is the main ongoing task. Most businesses find that after two or three rounds of refinement, the chatbot handles the vast majority of incoming questions without any intervention.

If you want to use the chatbot for more than support — like capturing leads or booking appointments — check out our guides on lead capture chatbots and VocUI pricing.

FAQ

Do I need to know how to code to add a chatbot to my website?
No. Adding a VocUI chatbot requires pasting a single script tag into your site. Most website builders have a "custom code" or "header/footer scripts" section where you can paste it without touching any source files.
Does the chatbot work on WordPress?
Yes. You can add the embed script through a WordPress plugin like "Insert Headers and Footers," or paste it directly into your theme's footer.php file.
Will the chatbot slow down my website?
No. The widget script loads asynchronously and does not block page rendering. The impact on your Core Web Vitals score is negligible.
What if the chatbot gives a wrong answer?
The chatbot only answers from your knowledge base. If it gets something wrong, the fix is usually updating the knowledge source — adding clearer content or correcting the document it was trained on.

You read the guide -- now build it

Upload your content and follow along with a working chatbot in front of you.

Most people finish setup in under 5 minutes.

Create your chatbot

Free plan included -- no credit card needed