How to Train an AI Chatbot for Better Performance

A complete guide to training your onWebChat AI bot with manual texts, website crawling, document uploads, and WooCommerce product sync.

Overview This guide provides step-by-step instructions and best practices for training your onWebChat AI bot to deliver accurate, helpful, and engaging responses to website visitors. Whether you are just getting started or optimizing an existing chatbot, you will learn practical methods to build a strong knowledge base.

Method 1 Add Custom Texts Manually

Manually adding training data takes a bit more effort, but it usually produces clearer, more relevant, and better-structured content, which leads to better chatbot performance.

How to Use

  1. Access Custom Texts: In the AI Chatbot section, select "AI Bot Training Data" and click "Add Text".
  2. Enter Training Text: Add the content you want the bot to learn. This can be simple information, statements, or question-and-answer pairs.
  3. Add Subject and Source URL: We recommend adding a subject and source URL (if the content comes from a specific page). This helps the AI match the most relevant training data and generate more accurate replies.
  4. Keep It Clear: Short, clear entries usually give the best results.
  5. Save and Test: Click "Save" to add the text to the training dataset, then test your bot right away.
Edit Training Text modal in AI Bot Training Data - add subject, text, and source URL

Tips: Be specific. Focus on key customer concerns or unique aspects of your business. Do not overthink grammar; minor mistakes are usually fine.

Examples

Correcting Inaccurate Responses

User Asks: "What is your phone number?"

Bot Incorrectly Replies: "Our phone number is +123..."

Solution: Add a custom text such as: "What is your phone number? Our phone number is +1 567-890-1234. You can contact us Monday to Friday, 9:00 AM to 9:00 PM."

Handling Specific Requests

User Asks: "Can I speak to an agent please?"

Solution: Add a custom text such as: "Can I speak to an agent please? If an agent is online, they will contact you shortly. Otherwise, please leave your email address, and we will get back to you."

Updating Default Bot Message

If your bot replies with "I am sorry, I am specifically trained to assist with inquiries about our ... . Can I help with that?" and you want to change the wording, update the default bot message in Chatbot -> Website Settings.

Method 2 Crawl Your Full Website

With one click, you can crawl your entire website. This saves time and helps your chatbot learn from all publicly available content.

How to Use

  1. Access the Crawl Feature: In the AI Chatbot page, open the "Website Crawler" tab and select "Crawl Full Website".
  2. Click "Start Crawling" to initiate the process.
  3. The AI bot automatically extracts text from your website and adds it to its training data.

Tips

  • May Take Time: This process can take a few minutes, depending on the size of your website.
  • Remove Unwanted Content: Remove repetitive or irrelevant content.
  • Structured Content: Well-organized content improves the bot's ability to learn effectively.

Method 3 Submit URLs for Crawling

Automatically extract and use text content from your website pages as training data for your AI bot.

How to Use

  1. Access the Crawl Feature: In the AI Chatbot page, open the "Website Crawler" tab and select "Crawl specific pages".
  2. Enter URLs: Input the URLs of the web pages you want the AI bot to learn from.
  3. Start Crawling: Click "Start Crawling" to begin.
  4. The AI bot automatically extracts text from the selected pages and adds it to its training data.
Website Crawler - crawl specific pages with URL input

Tips

  • Select Relevant Pages: Include pages with FAQs, product details, and support information.
  • Ensure Up-to-Date Content: Make sure the pages contain current and accurate information.
  • Structured Content: Well-organized content improves the bot's ability to learn effectively.

Method 4 Upload Documents

Upload documents directly to train your AI bot. Supported file types are PDF, TXT, DOC, and DOCX, with a maximum file size of 10MB per upload. This method is ideal for user manuals, support guides, product catalogs, and internal documentation. The content is automatically processed and added to the bot's knowledge base.

How to Use

  1. In the AI Chatbot page, select the "AI Bot Training Data" tab and click the "Upload File" button.
  2. Select Files: Choose the file you want to upload.
  3. The AI bot automatically extracts text from the uploaded file and adds it to its training data.

Method 5 Sync WooCommerce Products (WordPress Plugin)

If you use WooCommerce for your online store, you can sync all your product data to your AI chatbot with one click using our free WordPress plugin. It automatically imports product names, descriptions, categories, and other relevant information, so your bot can answer product questions accurately.

How to Use

  1. Install the Plugin: Download and install the free onWebChat WordPress plugin from your dashboard or the WordPress plugin directory.
  2. Connect Your Account: Link your onWebChat account with the plugin.
  3. Sync Products: Open plugin settings and click "Sync WooCommerce Products". Product data will be imported into your AI Chatbot training data.
  4. Automatic Updates: You can enable automatic product sync to keep your chatbot data up to date.
onWebChat Settings - WooCommerce Product Sync tab showing Enable Product Sync and Bulk Sync Status

This method is especially useful for e-commerce businesses because it removes manual product entry and helps your chatbot answer questions about features, availability, and recommendations.

Training Best Practices

a. Use High-Quality, Relevant Data

  • Accuracy Matters: Make sure all training content is correct and up to date.
  • Stay On Topic: Only include information relevant to your products or services.

b. Maintain Structured Data

  • Add text in a clear and easy-to-understand format.

c. Avoid Redundancy

  • Prevent Confusion: Remove duplicate entries or texts with the same or similar meaning.

d. Important Limits and Performance Tips

  • Maximum AI texts: 10,000 entries per chatbot.
  • Recommended for Best Performance: A few hundred well-crafted, manually added entries. Adding several thousand entries can slow response times and make updates harder to manage.
  • Quality over Quantity: Focus on high-quality, relevant training data instead of maximizing the number of entries.

Ongoing Maintenance

Training your AI bot is an ongoing process. Regular maintenance ensures optimal performance.

a. Monitor Bot Conversations

  • Review Chat History: Regularly check conversations for accuracy.
  • Identify Gaps: Look for questions the bot could not answer well.

To better understand how the bot generated a reply, click the "View AI training sources" icon (see screenshot below). You will see up to five training texts used for that response. This helps you identify inaccurate, outdated, or duplicate training content so you can continuously improve bot performance.

View AI training sources icon in chat - shows up to 5 training texts the AI bot used to create its reply

b. Update Training Data

  • Reflect Changes: Update the bot with any new products, services, or policy changes.
  • Remove Obsolete Info: Delete outdated information to prevent misinformation.

c. Expand the Knowledge Base

  • Add New Texts: Add new FAQs or emerging topics of interest.
  • Team Collaboration: Encourage staff to contribute common customer questions.

Conclusion

By carefully selecting and maintaining your AI bot's training data, you improve its ability to provide valuable assistance to your customers. The key to a successful AI Chatbot is continuous learning and refinement.

If you have any questions or need assistance with training your AI bot, please contact our support team.

Enhance your customer support today

Sign up now and get one month of our Pro AI plan, plus 50 free AI chatbot credits.

Start your 1-month free trial
We use cookies to ensure that we give you the best experience on our website.