Urgent.News

What's breaking now, across hundreds of outlets.

AI

I Added an AI Chatbot to a Website: What Broke, What Fixed It, and How I Tested It

By Columbus | AI Chatbot Engineer Disclosure: Some links in this article are affiliate links. I may earn a commission if you buy through them, at no extra cost to you. I only write about tools I have actually used. If you run a small business website, you already know the pattern. The same questions arrive every week: How much does it cost? What are your hours? Do you deliver to my area? Can I…

Setting up an AI chatbot for a website can be a great way to provide instant answers to common customer questions. However, the quality of the bot's responses depends on several factors, including the accuracy of the source material it learns from, the instructions given to shape its answers, and thorough testing before going live.

I built a demo support bot for my own site on DocsBot's free plan. The free tier allows one bot, up to 50 source pages, and 100 AI credits per month. I added my existing FAQ, pricing, and service pages as source material for the bot to learn from. However, I encountered an issue when trying to crawl my Notion public pages, as the bot's crawler couldn't read the JavaScript-rendered content. The solution was to switch to uploading my content as question-and-answer pairs instead.

Next, I wrote the instructions or base prompt for the bot, defining its role, scope, tone, and escalation procedure. The bot was instructed to act as a support assistant for my site, using only the provided sources to answer questions, and providing short, friendly responses in plain language. If it couldn't find an answer in its sources, it would refuse to guess and instead point the user to a human contact.

To test the bot, I collected real questions from my inbox, contact form, and direct messages. Five test questions were prepared, covering topics such as what an acceptance test is, the price and turnaround time, what is included in the scorecard, whether the bot can build a bot for someone without one, and a deliberately out-of-scope question about the capital of France. For each question, I specified the expected answer based on my sources.

After uploading my content and setting the instructions, I ran the test questions through the bot and evaluated the responses against my criteria: factual accuracy, correctness, readability, and proper escalation when the bot didn't know the answer. All five test questions were answered correctly, with the bot providing succinct, fact-based responses and declining to guess when the question was out of scope.

This successful test demonstrated that with accurate source material, clear instructions, and thorough testing, an AI chatbot can provide valuable assistance on a website without causing embarrassment or frustration for users.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

DeepSeek founder worth US$55 billion after latest fundraising

The surge means that Liang has put more distance between his own wealth and that of rival US-based founders.

  • Liang Wenfeng's net worth reaches US$55 billion after DeepSeek's major fundraising
  • DeepSeek's valuation rises to US$86 billion with 100 billion yuan investment
  • Liang's ownership in DeepSeek decreases from 81.65% to 67.4%

Saudi engineer used OpenAI’s vibe-coding app to more efficiently bug its office, feds say

Prosecutors say ex-OpenAI engineer Abdulrahman Alfozan used Codex, Dropbox and a hidden recorder to capture confidential meetings.

  • Abdulrahman Alfozan used OpenAI's Codex app to secretly record meetings at the AI company.
  • Alfozan modified a recording device and organized recordings in Dropbox.
  • Alfozan's lawyer argued insufficient evidence for charges like espionage or trade secrets theft.

More from Monday 23 November →