Troubleshooting

When Your Bot Goes Rogue: Debugging Guide

A comprehensive guide to diagnosing and fixing common chatbot issues. Get your AI assistant back on track.

12 min readUpdated January 2026

Key Takeaways

  • Check API status and rate limits when bot stops responding
  • Hallucinations usually mean missing or outdated knowledge base content
  • Missing citations? Ensure documents are properly processed
  • Slow responses can be improved by optimizing knowledge base size
  • Contact support with your chatbot ID for faster resolution

Even the best AI systems occasionally misbehave. This guide helps you quickly diagnose and fix the most common issues with your Chat.co chatbot.

Quick Diagnosis

Before diving deep, try these quick fixes: refresh the page, clear browser cache, check your internet connection, and verify your API key hasn't expired.

1. Bot Not Responding

If your chatbot isn't responding at all, here's how to diagnose the issue.

Symptoms

  • Messages show "loading" indefinitely
  • No response after sending a message
  • Widget appears but doesn't accept input
  • API calls return no response

Common Causes & Solutions

Invalid or Expired API Key

Your API key may be invalid, expired, or not associated with a chatbot.

Fix:

  1. 1. Go to Settings → API Keys in your dashboard
  2. 2. Verify your key hasn't expired
  3. 3. Ensure the key is assigned to a chatbot
  4. 4. Generate a new key if needed

Rate Limit Exceeded

You may have exceeded your message credits or hit API rate limits.

Fix:

  1. 1. Check your usage in Settings → Billing
  2. 2. Wait for rate limits to reset (15 minutes)
  3. 3. Upgrade your plan if consistently hitting limits

Chatbot Frozen

After a plan downgrade, excess chatbots may be frozen.

Fix:

  1. 1. Go to your dashboard and check for frozen bots
  2. 2. Upgrade your plan to unfreeze, or
  3. 3. Delete unused bots to free up slots

API Error Codes

Error CodeMeaningAction
INVALID_API_KEYKey missing or invalidCheck/regenerate API key
CHATBOT_ACCESS_DENIEDKey not linked to botAssign key to chatbot
MESSAGE_LIMIT_EXCEEDEDMonthly credits usedUpgrade plan or wait for reset
CHATBOT_FROZENBot inactive due to downgradeUpgrade or free up bot slots

2. Incorrect or Hallucinated Answers

AI "hallucinations" occur when the model generates plausible-sounding but incorrect information. Here's how to minimize them.

Symptoms

  • Responses contain factually incorrect information
  • Bot invents details not in your documents
  • Answers don't match your knowledge base
  • Confident-sounding but wrong responses

Root Causes & Solutions

Missing or Incomplete Knowledge Base

If your documents don't cover a topic, the AI may try to fill gaps with its general knowledge, which may be wrong.

Fix: Upload comprehensive documents that cover all topics your bot should know about. Enable "I don't know" responses for topics outside your KB.

Conflicting Information in Documents

Multiple documents with contradictory information confuse the AI.

Fix: Audit your knowledge base for outdated documents. Remove duplicates and ensure information is consistent across sources.

Poor Retrieval Accuracy

The wrong documents are being retrieved for the user's question.

Fix: Increase topK to retrieve more context, or adjust similarityThreshold to filter out irrelevant matches.

Pro Tip: Enable citations in your chatbot settings. When users can see the source of information, they can verify accuracy and trust builds naturally.

3. Missing Citations

Citations are crucial for trust. If your bot isn't providing sources, here's how to fix it.

Symptoms

  • Responses have no citation links
  • Citations array is empty in API response
  • "Show sources" button doesn't appear

Common Causes & Solutions

Citations Disabled in Settings

Check Appearance → Advanced → Show Citations is enabled.

No Relevant Documents Retrieved

If the similarity threshold is too high, no documents may be retrieved.

Fix: Lower similarityThreshold from 0.8 to 0.6-0.7.

Document Processing Incomplete

Documents still being processed won't appear in citations.

Fix: Wait for all documents to show green checkmarks in Sources.

Expert Bot Configuration Issues

For expert bots using Bedrock Agents, citations require proper agent configuration.

Fix: Verify the Bedrock Agent is correctly associated with your Knowledge Base. Check that attribution is enabled in agent settings.

4. Slow Response Times

If your chatbot takes too long to respond, users may abandon the conversation.

Symptoms

  • Responses take more than 10 seconds
  • First message is much slower than subsequent ones
  • Intermittent slowdowns

Optimization Strategies

Streaming is Enabled by Default

Chat.co uses streaming responses by default, so users see text as it's generated. If responses still feel slow, this is likely due to model or knowledge base factors below.

Choose a Faster Model

Claude 3.5 Haiku is faster than Sonnet for simple queries.

Reduce Retrieved Context

Lower topK from 10 to 5 to reduce context processing time.

Optimize Knowledge Base

Remove redundant documents. Smaller, focused KBs perform faster.

Expected Response Times

ScenarioExpected Time
Simple question, streaming enabledFirst token: <1s
Complex question, non-streaming3-8 seconds
First message (cold start)+2-3 seconds

5. Document Ingestion Failures

When documents fail to process, they won't be available for your chatbot to reference.

Symptoms

  • Red X or error icon next to document in Sources
  • "Processing failed" status
  • Document not appearing in source count

Common Causes & Solutions

File Too Large

Maximum file size is 50MB. Split large documents into smaller files.

Scanned PDF (Image-Only)

PDFs containing only images need OCR processing. Try running OCR before upload or use a different format.

Password-Protected File

Remove password protection before uploading.

Corrupted File

Try opening the file locally to verify it's not corrupted. Re-export if needed.

Unsupported Format

Supported formats: PDF, DOCX, DOC, TXT, MD, HTML. Convert other formats first.

Tip: If a document repeatedly fails, try converting it to plain text (.txt) format. This bypasses most parsing issues.

6. Embed Not Loading

If the chat widget isn't appearing on your website, check these common issues.

Symptoms

  • No chat bubble visible on website
  • Widget frame appears but is blank
  • Console shows JavaScript errors

Troubleshooting Steps

1

Check Embed Code Placement

The embed script should be placed just before the closing </body> tag.

2

Verify Chatbot ID

Ensure data-chatbot-id matches your actual chatbot ID from the dashboard.

3

Check CSP Headers

Content Security Policy may block the widget. Add widget.chat.co to your allowed sources.

4

Check Browser Console

Open DevTools (F12) and check the Console tab for JavaScript errors.

5

Test Chatbot Visibility

Make sure the chatbot is set to "Public" in settings if embedding on a public website.

Correct Embed Code

<!-- Place before </body> -->
<script
  src="https://widget.chat.co/embed.js"
  data-chatbot-id="YOUR_CHATBOT_ID"
  async
></script>

7. When to Contact Support

If you've tried the above solutions and still have issues, our support team is here to help.

Contact Support When:

  • Issues persist after following troubleshooting steps
  • You encounter error codes not listed above
  • You need help with enterprise configurations
  • You suspect a platform-wide issue
  • You need custom integrations or features

How to Get Help

Include in Your Support Request

  • Your chatbot ID and account email
  • Steps to reproduce the issue
  • Error messages or codes you're seeing
  • Screenshots or screen recordings if applicable
  • Browser and device information

We're Here to Help

Our team is committed to your success. Don't hesitate to reach out—we're happy to help you get the most out of Chat.co.

logo

Empowering your growth, one chatbot at a time

Information

About UsFAQ

© Copyright 2026 - Chat.co