Chatbot Builder - Help

Chatbot Builder - Help

Complete guide for creating AI chatbots from various documents and web sources

πŸ“–

Overview

Chatbot Builder (Chatbotty.ai) is a Redis Cache optimized platform for creating AI chatbots from various documents and web sources. It serves everyone who needs to provide quality answers to user queries based on current documents and sources - government offices, organizations, businesses, and individuals. The platform includes a public REST API, webhook automation, support ticket management, and full conversation history.

✨ Key Features

πŸ€– AI and Processing

  • β€’ AI chatbots from various documents and web sources
  • β€’ Smart AI routing for optimal response quality
  • β€’ Vector database for semantic search
  • β€’ Advanced chunking by document type

⚑ Performance and Reliability

  • β€’ Multi-level caching (Memory β†’ Redis β†’ PostgreSQL)
  • β€’ Asynchronous widget without page speed impact
  • β€’ Protection against abuse and bot attacks
  • β€’ Flexible rate limits for individual chatbots

πŸ“Š Management and Analytics

  • β€’ Extensive personalization and configuration options
  • β€’ Automatic document replacement with new versions
  • β€’ Real-time analytics and quality optimization
  • β€’ Automatic subscription and tier management

πŸ”Œ Integration and Automation

  • β€’ Public REST API for custom integrations
  • β€’ Webhook actions for event-driven automation
  • β€’ Support ticket system for customer escalation
  • β€’ Conversation history and management

🎯 Ideal for

  • Government offices and public institutions

    Automation of information services for citizens, answers to frequent questions about official procedures

  • E-commerce and online services

    Smart customer support without call center, handling orders and complaints

  • Companies with extensive documentation

    Quick search in internal resources, onboarding new employees

  • Educational institutions

    Support for students and answers to frequent questions, information about study programs

  • Healthcare Facilities

    Patient information and administrative support, patient guides

  • Law Offices

    Quick access to legal documents and precedents, legal case analysis

  • IT and Technology Companies

    Technical support automation and API documentation, solving common problems

  • Consulting Companies

    Sharing expertise and best practices, internal knowledge base

  • Marketing Agencies

    Customer needs analysis and content optimization, creative brief assistance

πŸš€

Getting Started

🎯 Quick Guide

  1. 1
    Registration and Login

    Create your account. Every new account starts with a free 14-day Evaluation trial: 1,000 AI replies and all key features, no credit card. After 14 days it switches to Free automatically, with no charge.

  2. 2
    Creating Your First Chatbot

    Click "New Chatbot" β†’ enter name and description β†’ choose response style (formal/friendly/professional). After creation, you'll be redirected to detailed settings where you can customize all chatbot parameters according to your needs.

  3. 3
    Document Upload

    In your chatbot's Documents tab, click "Upload document" β†’ drag & drop PDF/DOCX/TXT/MD files or enter web page URL. For best results, use Markdown (.md) files β€” they preserve document structure and produce the highest quality AI responses.

  4. 4
    Testing and Embedding

    Test the chatbot in preview mode β†’ copy embed code β†’ insert on your website

⚑ Quick Tips for Getting Started

πŸ“„ Document Preparation

  • β€’ Format: Plain text without images β€” Markdown (.md), TXT, or well-structured PDF
  • β€’ Structure: Use headings, paragraphs, and bullet points β€” avoid tables and multi-column layouts
  • β€’ Ideal format: FAQ style β€” questions as headings, full answers below each one
  • β€’ Coverage: Each section should fully cover its topic β€” avoid scattered or partial information
  • β€’ Content: Remove duplicates, promotional fillers, and irrelevant parts
  • β€’ Language: Consistent terminology throughout the document
  • β€’ Up-to-date: Always use the latest document versions

🎨 Widget Integration

Add the following code to your website before the closing </body> tag:

<script 
  src="https://chatbotty.ai/chatbot-embed.js"
  data-chatbot-id="xxxxxxxx">
</script>
  • β€’ Asynchronous loading without page blocking
  • β€’ Cross-domain support
πŸ€–

Chatbot Management

βž• Creating Chatbots

🎯 Basic Configuration

Basic information:

  • β€’ Chatbot name: Identification of your chatbot
  • β€’ Description: Brief description of the chatbot's purpose
  • β€’ Response style: Formal / Friendly / Professional / Informal

🎨 Appearance

Customizing chatbot widget appearance:

  • β€’ Theme color: Selection from preset colors
  • β€’ Welcome message: Text for first contact with user
  • β€’ Allowed domains for embedding: Specify where widget can be used

πŸ’Ž Maximum Number of Chatbots by Plan

Free

1 chatbot

Evaluation

1 chatbot

14 days trial

Support

2 chatbots

Automate

3 chatbots

πŸ—‘οΈ Delete Confirmation

⚠️

Safe Deletion Process

When deleting a chatbot, a confirmation dialog appears to prevent accidental deletion. This ensures you don't lose important data by mistake.

⚠️ Warning:

All chatbot data, documents, and analytics will be permanently removed and cannot be recovered.

πŸ”§

Advanced Chatbot Settings

🧠 AI Behavior and Prompts

πŸ“ System Instructions

Define the personality and behavior of the AI assistant. Contains guidelines for:

  • β€’ Communication style and response tone
  • β€’ General behavior and rules
  • β€’ Critical instructions for limitations
πŸ“ž Handoff Contact

Where the chatbot sends customers when it doesn't know the answer – phone, e-mail, opening hours or a contact form link (field below the instructions).

  • β€’ Used only for questions about your business that the documents don't answer, or when a customer asks how to reach you – never for off-topic questions
  • β€’ With support tickets enabled, the chatbot offers a ticket and gives the contact
  • β€’ Left empty, the chatbot only gives contacts found in your documents – it never invents one
🏷️ Available Placeholders

The following placeholders can be used in instruction prompts and messages:

  • β€’ {current_datetime} - Current date and time
  • β€’ {chatbot_id} - Unique chatbot identifier
  • β€’ {fallback_message} - Your Force fallback reply text

⚑ Search and Response Quality

πŸ” Search Parameters

  • β€’ Similarity threshold (0.4): Minimum match to use document
  • β€’ Number of Document Chunks in Context (5): How many document chunks AI receives
  • β€’ Smart Model Routing: Automatically selects better model based on query complexity
  • β€’ Automatic Support Tickets: When AI cannot answer, it offers to create a support ticket. Requires user consent and email.
  • β€’ Force Fallback: When enabled, queries with low document relevance get a fixed reply without AI, followed by the handoff contact. When disabled, AI will respond even without relevant documents (conversational mode).
  • β€’ Force fallback reply: The fixed text for Force Fallback mode (default: "Sorry, I don't have that information."). Without Force Fallback the AI says it doesn't have the information and offers a ticket or the handoff contact – it never asks the customer to rephrase, except for a vague question, where it asks a clarifying one.

βš™οΈ Language Preferences and AI Parameters

  • β€’ Chatbot response language: Language in which chatbot will respond
  • β€’ Timezone: For responses about current date and time
  • β€’ Creativity (Temperature): 0.0 = precise, 1.0 = creative responses
  • β€’ Maximum response length (tokens): Limit in tokens (β‰ˆ 375 words for 500 tokens)

πŸ›‘οΈ Anti-spam Protection

  • β€’ Max requests/day: Maximum number of requests from one IP address per 24 hours (anti-bot protection)
  • β€’ Max requests/session: Maximum number of requests per session (2-hour window for abuse prevention)
  • β€’ Rate Limit per Minute: Protection against spam queries
  • β€’ Cache TTL (seconds): How long to cache responses

πŸ”„ Reset to Defaults

πŸ”„

Restore Default Settings

The 'Reset to Defaults' button restores all advanced settings to their default values. A confirmation dialog appears before resetting to prevent accidental changes.

ℹ️ Note:

You can always reset your settings back to the defaults if you want to start fresh or if something isn't working as expected.

πŸ“„

Document Management

πŸ“€ File Upload

πŸ“‹ Supported Sources

πŸ“„

Files

PDF, DOCX, TXT, MD, HTML

Not in Free
🌐

Web URL

Automatic scraping

πŸ”„

Updates

Automatic version replacement

🎯 Optimal Document Preparation

βœ… Recommended practices:

  • β€’ Clear headings and structure
  • β€’ PDF with readable text (not images)
  • β€’ Consistent formatting
  • β€’ Logical section numbering

❌ Avoid:

  • β€’ Scanned images without OCR
  • β€’ Excessive text fragmentation
  • β€’ Inconsistent formatting
  • β€’ Files larger than 10MB

πŸ’Ύ Storage Limits by Plan

Free

10MB total

Evaluation

10MB total

Support

50MB total

Automate

100MB total

πŸ“‹ Duplicate Detection

πŸ“‹

Smart Duplicate Handling

When uploading a document with the same name as an existing one, a confirmation dialog appears with options to prevent accidental overwrites.

Available Options:

  • β€’ Replace: Overwrites the existing document with the new version
  • β€’ Keep Both: Keeps both versions (new file gets a numbered suffix)

πŸ“„ Document Upload Process

1

Open your chatbot

Go to Chatbots, open your chatbot, switch to the Documents tab and click "Upload document" β€” the document is added to that chatbot

2

Select upload method

πŸ“Ž Files (PDF, DOCX, TXT, MD)

Maximum 10 MB per file

Not in Free

🌐 Web URL

Automatic web page scraping

3

Select document type

System automatically optimizes processing by type:

βš–οΈ

Legal document:

Laws, regulations, contracts

πŸ”§

Technical manual:

Guides, specifications, procedures

πŸ“°

News:

Articles, press releases

πŸŽ“

Academic text:

Scientific papers, studies

πŸ“„

General document:

Universal settings

4

Describe document (optional)

Add description for easy future navigation in document list

πŸ’‘

File update tip

When entering the same document name, you have the option of automatic replacement of the original version without having to delete the outdated document. Your data will stay current.

πŸ’¬

Chat Widget

πŸ”§ Web Embedding (displaying chatbot on your website)

πŸ“‹ Getting Embed Code

You can find the embed code for each chatbot in the context menu (three dots). Click "Copy embed code" and paste it on your website before the closing </body> tag.

<script 
  src="https://chatbotty.ai/chatbot-embed.js"
  data-chatbot-id="xxxxxxxx">
</script>

πŸ’‘ Tip: Widget loads asynchronously and does not affect your page speed. The chat bubble appears once configuration is loaded in the background.

πŸ”΄ Note: If the chatbot is deactivated, the widget will not appear on the website at all.

⚠️ Installing via GTM: If you embed the widget through Google Tag Manager and a visitor rejects cookies, GTM won't load and the chatbot won't appear. We recommend embedding the code directly in HTML, outside of GTM.

βš™οΈ Widget Configuration

You can fully customize the widget in the "Appearance" section when editing the chatbot. All settings are automatically applied to the embed code.

🎨 Appearance and position:

  • β€’ Theme color: 6 preset colors (blue, red, green, yellow, purple, orange)
  • β€’ Widget position: Bottom right / Bottom left
  • β€’ Welcome message: User greeting

βš™οΈ Chatbot behavior:

  • β€’ Chatbot name: Displayed in header
  • β€’ Description: Short description of chatbot purpose (not displayed on web)
  • β€’ Response style: Professional, friendly, formal
  • β€’ Status: Active/inactive chatbot

🎯 Widget Customization

Position Options:

  • β€’ Bottom-right (default)
  • β€’ Bottom-left

Bubble Effects:

  • β€’ Pulse effect - Animated bubble to attract attention (can be toggled on/off)

πŸ‘οΈ Widget Preview

Use the widget preview modal to test your chatbot before embedding:

  • β€’ Click "Preview" button in chatbot settings
  • β€’ Opens widget in modal window
  • β€’ Test all features and appearance
  • β€’ No code installation needed

πŸ”— Public Widget Page

Access your widget at: /widget-embed/[widgetId]

  • β€’ Standalone page for testing
  • β€’ Can be shared with team members
  • β€’ No website integration required

πŸ’‘ Tip: All changes take effect immediately on all websites with embedded widget. No need to change code.

⚑ Performance Optimization

πŸš€ Asynchronous loading

  • β€’ Asynchronous loading in the background
  • β€’ Bubble appears once configuration is ready
  • β€’ Zero impact on main page speed
  • β€’ Progressive enhancement

πŸ’Ύ Smart Cache

  • β€’ 90%+ cache hit rate
  • β€’ 5-minute configuration validity
  • β€’ Fast loading via Redis
  • β€’ Smooth operation even during Redis Cache outage

πŸ”’ Security and Restrictions

🌐 Domain restrictions

Limit access only to allowed domains:

Configuration example:

  • β€’ example.com
  • β€’ *.example.com (including subdomains)

πŸ›‘οΈ Anti-spam Protection

Request limit settings for protection against spam and abuse

Max requests/day

50

Maximum number of requests from one IP address per 24 hours (anti-bot protection)

Max requests/session

20

Maximum number of requests per session (2-hour window for abuse prevention)

Request limit/min

10

πŸ›‘οΈ Protection against spam queries

Cache TTL (seconds)

300

⚑ How long to cache responses

πŸ“ Note:

These parameters are fully user-configurable in advanced settings of each chatbot for maximum flexibility.

πŸ“Š

Analytics

🎯 Access by Plan

πŸ†“ Free

Basic analytics

  • β€’ Overview and usage chart
  • β€’ Top queries
  • β€’ Chatbot stats

⭐ Evaluation

Full access

14-day trial with detailed analytics and export

πŸ”΅ Support

Detailed analytics

Everything listed on the right

πŸ‘‘ Automate

Detailed analytics

  • β€’ Success rate
  • β€’ Data export
  • β€’ Detailed reports
  • β€’ Interactive interface
  • β€’ Analytics for each chatbot separately

πŸ€– Detailed Chatbot AnalyticsNot in Free

πŸ“‹ Display for each chatbot

  • β€’ Individual overview: Separate analytics for each chatbot
  • β€’ Query filtering: Display only relevant conversations
  • β€’ Isolated metrics: Individual chatbot performances separated
  • β€’ Chatbot comparison: Ability to compare performance of different bots

πŸ” Detailed query display

  • β€’ Complete query: Display of entire question from user
  • β€’ Response reliability: Exact confidence score value
  • β€’ AI response: Complete text of chatbot response
  • β€’ Timestamp: Date and time of each query

πŸ’‘ Practical use: Enables precise analysis of how individual chatbots respond to user queries, identification of problem areas and document optimization for each chatbot separately.

πŸ“ˆ Available Metrics

🎯 Main KPIs

πŸ“Š
Total queries
Number of all messages per period
βœ…
Success rate
Percentage of complete answers
⚠️
Partial answers
Percentage of partial answers
πŸ“ˆ
Average reliability
Document similarity score

πŸ“Š Response Quality

βœ… AnsweredXX%
Full answer found
⚠️ PartialXX%
Partial answer
❌ No answerXX%
Answer not found

⚠️ Data History Limitations

Older data may be automatically deleted for database performance optimization. Export your data regularly if you need the full history.

πŸ“€ Export and Reports

πŸ“‹ Availability: Export is available on Support and Automate and during the 14-day Evaluation trial.

πŸ’‘ Tip: We recommend exporting data on the last day of each month to track full customer query history.

πŸ’Ύ Export Formats

  • β€’ CSV: Tabular data for Excel
  • β€’ JSON: Structured data for API

πŸ” Data Filters

πŸ• Time filters:

  • β€’ This week: Last 7 days
  • β€’ This month: Current month
  • β€’ This year: Current year

πŸ“‹ Filters by response:

  • β€’ All queries: Complete history
  • β€’ βœ“ Answered: Successful responses
  • β€’ ⚠ Partially answered: Incomplete responses
  • β€’ βœ— Unanswered: No response
πŸ’Ž

Subscription

🎯 Plan Overview

Monthly
Yearly2 months free

Start with a 14-day free trial

All key features, 1,000 AI replies. No credit card. Switches to Free automatically after 14 days – no charge.

White-label is available on Automate.

Free

Free forever

$0

β€’1 chatbot, 100 AI replies/month (β‰ˆ 25 conversations)

β€’10 MB of documents

β€’Answers from your documents – Markdown works best (also PDF, DOCX, TXT)

β€’Smart context search – understands follow-up questions

β€’Basic analytics

β€’API & MCP – connect your apps and AI assistants

You still get the 14-day trial first (1,000 replies), then 100/month.

Popular

Support

Answers questions, captures leads

14 days free Β· no card
$18/month

β€’2 chatbots, 5,000 AI replies/month (β‰ˆ 1,250 conversations)

β€’Answers from your documents – Markdown works best (also PDF, DOCX, TXT)

β€’Import content straight from a web page (URL)

β€’Can't answer? Creates a ticket with the visitor's email – a ready-to-follow-up lead

β€’Detailed analytics & export

β€’Smart context search & Reranking – understands follow-up questions and picks the most relevant answers

β€’API & MCP – connect your apps and AI assistants

No card Β· 5,000 replies Β· then Free or $18/mo

Automate

Answers, captures leads and takes action in your systems

14 days free Β· no card
$30/month

Everything in Support, plus:

β€’3 chatbots, 9,000 AI replies/month (β‰ˆ 2,250 conversations)

β€’Actions in your systems – calls any REST API or webhook (your backend, n8n, Make…): order status, bookings, leads

β€’White-label – no Chatbotty logo

β€’100 MB of documents

No card Β· actions & white-label Β· then Free or $30/mo

Need more chatbots or replies? Contact us

πŸ’‘ Data Usage

10MB of data corresponds to approximately 1000 pages of PDF document. In purely text formats, even much more.

Warning: The original size of the uploaded file counts towards data limits. Embedded images in documents can significantly increase the uploaded file size.

πŸ’° Annual Subscription

Save 2 months with annual billing – pay for 10 months only!

Annual billing offers significant savings compared to monthly payments. You can change your billing period or subscription at any time.

⏰ Trial Period Expiration

  • β€’ Automatic downgrade to Free plan after 14 days
  • β€’ Seamless transition without data loss

πŸ“Š Usage Tracking

πŸ“Š Dashboard Tracking

Track your plan usage directly in real-time:

πŸ“ˆ Monthly Limits
  • β€’ Number of messages per month
  • β€’ Forecast until end of month
  • β€’ Automatic reset every month
πŸ“‹ Permanent Limits
  • β€’ Storage capacity (MB/MB)
  • β€’ Number of chatbots (count/limit)
πŸ“Š Statistics
  • β€’ Total created chatbots
  • β€’ Active and functional chatbots
  • β€’ Total queries from users
  • β€’ Uploaded documents
πŸ“ˆ Visualization
  • β€’ Colored progress bars
  • β€’ Real-time tracking

⚠️ Limit Enforcement

  • β€’ Storage exceeded: Upload blocked with upgrade prompt
  • β€’ Chatbot limit: Creation blocked, upgrade dialog shown
  • β€’ Monthly messages: Widget won't load (silent failure)
  • β€’ Analytics access: Feature restrictions by plan

πŸ’° Extra Requests

Extra requests are add-on packages that extend your monthly AI reply quota. They are available on every plan, including Free. Unlike your monthly quota, extra requests never expire.

πŸ”„ How it works:

  1. Your monthly quota is consumed first
  2. When it runs out, extra requests are used automatically
  3. Extra requests stay on your account until fully used (no expiration)
  4. Remaining requests are shown on the dashboard in real time

πŸ“¦ Available packages:

πŸ’‘ When to buy:

  • β€’ Seasonal traffic spikes
  • β€’ Special campaigns
  • β€’ Testing before an upgrade
  • β€’ One-time high usage

πŸ’³ Purchase: Click β€œBuy Extra Requests” on the dashboard or in the usage card when you approach your limit.

πŸ“„

Invoices

πŸ“‹ Overview

All your invoices and payment history are available directly in the customer portal. You can find subscriptions, add-on purchases, and all past payments there.

πŸ”— How to Access

  1. Go to Subscription in the dashboard sidebar
  2. Click the Manage Subscription button
  3. You will be redirected to the customer portal where you can view all invoices and payment history
βš™οΈ

Settings

πŸ‘€ User Account Management

πŸ“ Change Name

Personal Information

  • β€’ Name: Displayed username
  • β€’ Can be changed anytime
  • β€’ Shows in profile and communication

πŸ“§ Change Email

After submitting the new address, confirmation links are sent to both your current and new email. The change takes effect only after clicking both links.

  • β€’ Check your current inbox and confirm from there
  • β€’ Check your new inbox and confirm from there
  • β€’ Only after both confirmations will the new email become active

πŸ”’ Change Password

Password must be at least 6 characters

Password requirements:

  • β€’ Minimum 6 characters
  • β€’ Combination of letters and numbers
  • β€’ Current password required

Forgotten password:

  • β€’ Reset via email
  • β€’ Secure reset link
  • β€’ Immediate delivery

🌐 Language Settings

Switch between English and Czech interface

  • β€’ Click language selector in top navigation
  • β€’ Available languages: English (EN) / Czech (CS)
  • β€’ Automatic page reload - The page automatically reloads after language change to apply all translations
  • β€’ Language preference is saved to your account

⚠️ Danger Zone

Actions in this section are irreversible. Proceed with caution.

⚠️ Deleting your account will permanently remove all your data, chatbots, documents and conversations. This operation is irreversible.

The "Delete Account" button will trigger complete removal of all data from the database.

πŸ”—

API

πŸš€ Programmatic Access to Chatbots

πŸ’Ž Available on All Plans

API access is available on all plans, including Free. API requests count towards your plan's monthly AI replies. It allows you to integrate your chatbots into custom applications, websites, or systems.

πŸ“‹ What You Get

  • β€’ REST API: Standard HTTP requests
  • β€’ Chat endpoint: /api/v1/chat for sending messages
  • β€’ Document endpoints: /api/v1/documents for managing documents
  • β€’ Chatbot info: /api/v1/chatbot β€” which chatbot the API key belongs to, its plan, quota and knowledge base overview
  • β€’ Conversations, analytics & tickets: /api/v1/conversations, /api/v1/analytics, /api/v1/tickets
  • β€’ Webhook actions: /api/v1/webhooks β€” create, test, change and delete webhooks and their tools; API keys and header values are never returned (Automate plan and Evaluation trial, see Webhook Actions)
  • β€’ MCP connector: Connect your chatbot to Claude, Claude Code or n8n without writing code (see MCP Connector)
  • β€’ Code examples: Available in Dashboard β†’ API & MCP
  • β€’ Chatbot ID: Unique identifier for each chatbot
  • β€’ Complete Documentation: Available directly in the app

πŸ’‘ How to Get Started: After logging into the application, you'll find the "API & MCP" section in the menu, where you can access detailed instructions including connection examples for various programming languages and test samples.

πŸ” API Authentication

How it works

API access uses Bearer token authentication. Each API key is tied to a specific chatbot.

  1. Create API key in Dashboard β†’ API & MCP for your chatbot
  2. Include API key in Authorization header as Bearer token
  3. Send POST request to /api/v1/chat endpoint
  4. Chatbot is automatically identified from the API key

Important: You do NOT need to send chatbot_id in the request body. The chatbot is determined from your API key.

Error Codes

  • β€’ UNAUTHORIZED (401) β€” Invalid or missing Bearer token
  • β€’ RATE_LIMITED (429) β€” Exceeded the per-minute rate limit of the endpoint
  • β€’ QUOTA_EXCEEDED (403) β€” Monthly message quota exceeded
  • β€’ FORBIDDEN (403) β€” Plan doesn't have API access
  • β€’ INVALID_REQUEST (400) β€” Malformed request body
  • β€’ NOT_FOUND (404) β€” Resource not found
  • β€’ LIMIT_EXCEEDED (403) β€” Webhook actions: the plan's number of webhooks or tools is used up
  • β€’ INVALID_URL (400) β€” Webhook actions: the URL is invalid, not HTTPS or points to a private address
  • β€’ EDIT_FAILED (400) β€” Document edit: the text to replace or the heading was not found, or appears more than once
  • β€’ NOT_EDITABLE (400) β€” Document edit: only Markdown and text documents can be edited
  • β€’ CONFLICT (409) β€” Document edit: the document changed since you read it β€” read it again and repeat the edit
  • β€’ GONE_USE_V1 (410) β€” Old endpoint, migrate to /api/v1

πŸ”‘ API Keys Management

Create API Keys

Generate secure API keys for programmatic access to your chatbots.

Features:

  • β€’ Custom names - Label keys for easy identification
  • β€’ Max 50 keys - Per chatbot limit
  • β€’ Secure tokens - Full token shown only once at creation
  • β€’ Activity tracking - Last used timestamp
  • β€’ Toggle active/inactive - Temporary disable without deletion

Security:

  • β€’ Tokens are masked in UI (show first/last characters only)
  • β€’ Copy to clipboard for easy use
  • β€’ Delete compromised keys immediately

⚑ Monthly Quota: API usage counts against your monthly message limit. Extra messages can be purchased when quota is exceeded.

πŸ“„ Document Management API

Upload Document

POST /api/v1/documents β€” Asynchronous upload, returns 202 Accepted

  • β€’ File: multipart/form-data with file (.pdf, .docx, .txt, .md) β€” max 10 MB
  • β€’ description: Optional document description
  • β€’ replace_existing: "true" to overwrite same filename (default)
  • β€’ document_type: Category β€” legal, technical, academic, news, general (default)

Response: { "document_id": "uuid", "status": "pending" }

Upload Document as JSON

The same endpoint also accepts application/json β€” useful for scripts and AI agents. Send exactly one source:

  • β€’ content: Plain text or Markdown with a filename ending in .md or .txt
  • β€’ content_base64: A binary file (PDF, DOCX) encoded in base64 β€” up to about 3 MB
  • β€’ url: A public file URL that Chatbotty downloads (max 10 MB, plans with web URL upload)
  • β€’ upload_id: A file uploaded beforehand via an upload URL (see below)

To update a document, upload it again with the same filename.

Upload Large Files

POST /api/v1/documents/upload-url β€” Returns a one-time upload URL valid for 2 hours

  1. Request an upload URL with { "filename": "pricing.pdf" }
  2. Upload the raw file to upload_url with an HTTP PUT request (max 10 MB)
  3. Call POST /api/v1/documents with { "upload_id": "..." } to process it

Read Document Content

GET /api/v1/documents/{id}/content β€” Text content of a document, paginated by characters

  • β€’ offset / limit: Character range (default limit 20,000, max 50,000)
  • β€’ Markdown and text files are returned unchanged with a content_hash, so you can edit them in place (see below) or upload them again
  • β€’ PDF and DOCX files are returned as extracted text

Edit Document Content

PATCH /api/v1/documents/{id}/content β€” Change part of a Markdown or text document without sending the whole file

  • β€’ edits: Find and replace β€” each old_text must appear exactly once in the document. If any edit fails, nothing is changed
  • β€’ append: Add a new section at the end of the document, or at the end of the section named in after_heading
  • β€’ expected_hash: Optional content_hash from reading the document β€” if the document changed in the meantime, the edit is rejected (409 CONFLICT)

The edited document replaces the old one under a new document_id and is processed in the background. Until then, your chatbot keeps answering from the previous version. Only .md and .txt files can be edited this way.

List Documents

GET /api/v1/documents β€” Paginated list of chatbot documents

  • β€’ limit: Results per page (default 20, max 100)
  • β€’ offset: Pagination offset (default 0)
  • β€’ status: Filter by pending/processing/completed/failed

Get Document

GET /api/v1/documents/{id} β€” Document detail and status

Returns 404 if document doesn't exist or belongs to another chatbot.

Delete Document

DELETE /api/v1/documents/{id} β€” Delete document and all chunks

Response: { "deleted": true, "document_id": "uuid", "deleted_chunks": 42 }

πŸ’‘ Find examples: Code samples for all endpoints are available directly in the app under Dashboard β†’ API & MCP.

πŸ“‹ Response Format

Envelope Structure

All responses use a consistent envelope:

  • β€’ { "success": true/false, "data": {...}, "timestamp": "..." }
  • β€’ data: Response payload (message, sources, metadata). In chat responses, metadata.tools_executed lists the tools the chatbot used, e.g. [{ "name": "get_weather", "ok": true }]
  • β€’ error: Error object with code, message, details

πŸ’‘ Full examples: Response format examples are available directly in the app under Dashboard β†’ API & MCP.

⚠️ Important Notes

  • β€’ API keys are chatbot-specific - Each key works with one chatbot only
  • β€’ Up to 50 keys per chatbot - Create multiple keys for different applications
  • β€’ Keys can be disabled - Temporarily deactivate without deletion
  • β€’ Monthly quota applies - Limited by your subscription tier messages/month + extra messages purchased
  • β€’ Per-minute rate limits - Chat and analytics 60 req/min, reading conversations, documents and tickets 120 req/min, changes 60 req/min per API key; webhook test 20 req/min
  • β€’ No domain validation - API works from any origin (use with caution)
  • β€’ Conversation context - Every response returns a conversation_id. Pass it in subsequent requests to maintain context β€” the system loads the last 20 messages automatically. Without conversation_id, each request starts a fresh standalone conversation with no context β€” this is perfectly fine if you don't need conversational memory (e.g. one-off data lookups).
  • β€’ Secure your keys - Never expose API keys in client-side code
πŸ”Œ

MCP Connector

πŸ€– Work with Your Chatbot in AI Assistants

The MCP connector lets AI assistants work with your chatbot directly. Ask your AI assistant to find questions your chatbot could not answer, read the related conversations, and update your documents β€” without writing any code. It uses the Model Context Protocol (MCP) and the same features as the REST API.

It works with Claude and with any other AI tool that supports MCP, such as n8n, Cursor or VS Code. Claude connects by signing in to your Chatbotty account; other tools use the same API key as the REST API.

Server URL: https://www.chatbotty.ai/api/mcp

πŸ’Ž Plans: Available on all plans, including Free.

πŸ”— How to Connect

Claude (claude.ai) and Claude Desktop

  1. Open Settings β†’ Connectors β†’ Add custom connector
  2. Paste the server URL and confirm
  3. Sign in to Chatbotty and choose the chatbot to connect

Claude Code

claude mcp add --transport http chatbotty https://www.chatbotty.ai/api/mcp

Sign in through the browser, or add --header "Authorization: Bearer <API_KEY>" to use an API key.

Other AI tools (n8n, Cursor, VS Code and more)

Add a remote MCP server (Streamable HTTP) with the server URL and send an API key from Dashboard β†’ API & MCP as a Bearer token: Authorization: Bearer <API_KEY>. It is the same API key you use for the REST API.

In n8n, use the MCP Client Tool node with Server Transport "HTTP Streamable" and Bearer Auth.

πŸ’‘ Ready-to-copy commands are in Dashboard β†’ API & MCP.

🧰 Available Tools

  • β€’ Chatbot info: Which chatbot is connected, your plan, message quota and knowledge base overview
  • β€’ Knowledge gaps: Questions your chatbot could not answer, with links to the conversations
  • β€’ Documents: List, read, upload, edit and delete documents β€” the AI can change just one passage or add a new FAQ section without rewriting the whole document
  • β€’ Conversations: Search and read conversations, filter by answer quality
  • β€’ Analytics: Summary, trends over time and top questions
  • β€’ Support tickets: List tickets, change status, add notes (plans with ticket management)
  • β€’ Webhook actions: Create, test, change and delete webhooks and their tools β€” connect your chatbot to an API with one sentence (Automate plan and Evaluation trial, see Webhook Actions)
  • β€’ Test the chatbot: Send a message and check the answer, including which tools the chatbot used (counts against your message quota)

⚠️ Important Notes

  • β€’ One connector = one chatbot - For another chatbot, add another connector
  • β€’ Disconnect - Signing in creates an API key labeled "MCP connector" in Dashboard β†’ API & MCP. Delete it to revoke access
  • β€’ Editing documents - Without a local copy (e.g. in Claude on the web), the AI edits Markdown and text documents in place and sends only the change. If you keep the document as a file on your computer, edit it there and upload it again with the same filename. Each change creates a new version that is processed in the background
  • β€’ Limits - 300 MCP requests per minute per key, plus the limits of the underlying API endpoints
πŸ’¬

Conversations

πŸ“ How It Works

The Conversation History feature automatically logs all chatbot sessions with comprehensive metadata for analytics, compliance, and quality assurance purposes.

  • β€’ Session Logging: Every conversation is recorded with unique session ID
  • β€’ Metadata Tracking: IP address, page URL, referrer, user agent
  • β€’ Timestamps: Precise timing for each message exchange
  • β€’ Contact Info: User-provided email and name when available

πŸ” Viewing Conversations

Access conversation history from Dashboard β†’ Conversations in the main menu.

Available Filters:

  • β€’ Period: Filter by time period (this month, last 7 days, etc.)
  • β€’ Filter (Chatbot): Show conversations for a specific chatbot or all
  • β€’ Source: Filter by source (widget, API, etc.)

Columns Displayed:

  • β€’ Session ID, Date/Time, Chatbot name
  • β€’ Message count, Source, Contact email
  • β€’ IP address (anonymized), Page URL

πŸ“‹ Conversation Details

Click on any conversation to view the full message history with detailed information.

  • β€’ Message Timeline: All user questions and AI responses
  • β€’ Timing Data: Exact timestamps for each message
  • β€’ Source Metadata: Page URL, referrer, user agent
  • β€’ Contact Information: Email and name if user provided them

πŸ’‘ Tip: Use conversation history to identify frequently asked questions and improve your chatbot's knowledge base. Patterns in user queries can help you add missing documentation.

🎫

Support Tickets

πŸ‘‘

Support & Automate Feature

AI-powered support tickets are available on the Support and Automate plans and during the 14-day Evaluation trial.

πŸ€– How It Works

The AI Support Ticket system automatically detects when the chatbot cannot answer a user's question and offers to create a support ticket for human follow-up.

  • β€’ Smart Detection: AI recognizes when it cannot provide a satisfactory answer
  • β€’ User Consent: System asks user if they want to create a ticket
  • β€’ Email Collection: Collects user's email for follow-up
  • β€’ AI Summary: Generates a summary of the conversation for support team

πŸ“ Ticket Creation Flow

The multi-turn conversation flow for ticket creation:

  1. Trigger: AI detects unanswerable question or user expresses frustration
  2. Offer: "Would you like me to create a support ticket for you?"
  3. Consent: User confirms they want to proceed
  4. Email: "Please provide your email address for follow-up"
  5. Summary: AI generates conversation summary automatically
  6. Confirmation: Ticket created with reference number

πŸ“‹ Managing Tickets

Access and manage support tickets from Dashboard β†’ Support Tickets.

Status Workflow:

  • β€’ Open: New ticket awaiting review
  • β€’ In Progress: Support team working on the issue
  • β€’ Resolved: Issue addressed, awaiting confirmation
  • β€’ Closed: Ticket completed and archived

Available Actions:

  • β€’ View full conversation context
  • β€’ Update ticket status
  • β€’ Add internal notes
  • β€’ Send email response to user

βš™οΈ Configuration

Enable and configure support tickets in Chatbot Settings β†’ Support Tickets tab.

  • β€’ Enable/Disable: Toggle ticket creation for this chatbot
  • β€’ Email Notifications: Receive alerts for new tickets
  • β€’ Auto-response: Custom message sent to user after ticket creation
  • β€’ Triggers: Configure when ticket offers are made

πŸ’‘ Tip: Review tickets regularly to identify gaps in your knowledge base. Common ticket topics indicate areas where you should add more documentation.

πŸ”—

Webhook Actions

πŸ‘‘

Automate Feature

Webhook actions are available on the Automate plan (up to 10 webhooks, up to 10 tools total across all webhooks) and during the 14-day Evaluation trial (up to 5 webhooks, up to 5 tools total across all webhooks).

πŸ”— Overview

Webhook Actions allow your chatbot to interact with external systems through AI-triggered tool calls. Define custom webhooks with specific tools that the AI can invoke during conversations.

  • β€’ Custom Webhooks: Define endpoints with authentication
  • β€’ AI Tools: Specify tools the AI can call (e.g., get_order_status)
  • β€’ Parameters: Define required and optional parameters for each tool
  • β€’ Response Handling: AI processes webhook responses naturally

βš™οΈ Setting Up Webhooks

Configure webhooks in Dashboard β†’ Webhooks for each chatbot.

  1. Create Webhook: Enter name, URL, and optional authentication headers or secret URL parameters
  2. Define Tools: Add tools the AI can call (e.g., get_order_status, check_inventory)
  3. Set Parameters: Define required parameters (e.g., order_id, product_sku)
  4. Test: Use the test feature to verify your webhook works correctly
  5. Activate: Enable the webhook for production use

Two modes

  • β€’ Automation webhook (default): For n8n, Make or Zapier. The request includes the tool name and the chatbot and conversation IDs. Use it when you need several requests in a row, data processing or your own private system (orders, CRM)
  • β€’ Direct API: The chatbot calls a public API itself. Tool parameters are sent under their own names (GET = query parameters, POST = JSON body) and no chatbot IDs are sent. Use it when one request returns the answer, e.g. weather or exchange rates

Limits: The chatbot calls tools once per answer (no chaining β€” e.g. geocoding then forecast needs n8n). Only the first 10 KB of the response reach the chatbot, so prefer endpoints that return small JSON. Timeout 1–30 seconds (default 10), no redirects.

πŸ€– Set Up with an AI Agent

Connect Claude or another AI assistant through the MCP connector and describe what you need in one sentence. The agent picks a suitable API, creates the webhook and tools, tests them and asks your chatbot a sample question to check that the tool was used.

What the agent can do

  • β€’ Create a webhook with its tools in one step and test it with real arguments
  • β€’ Change an API key or a header without touching the rest of the setup
  • β€’ Edit a tool description or parameters, add or remove tools
  • β€’ Pause or delete a webhook (it asks you before deleting)

Example prompts

  • β€’ "Connect my chatbot to the weather so it can answer questions about current weather. Use Open-Meteo, it needs no key."
  • β€’ "Add current weather from OpenWeatherMap, here is my API key: …"
  • β€’ "Let the chatbot answer questions about exchange rates (EUR, USD, CZK)."
  • β€’ "Connect my n8n webhook https://…/webhook/order-status so the chatbot can tell customers where their order is."
  • β€’ "Change the weather API key to …" Β· "Make the weather tool also trigger on questions about rain." Β· "Delete the weather action."

πŸ”‘ Keys stay secret: API keys are stored as secret URL parameters or headers and are never returned β€” neither to the agent nor in the dashboard. A key pasted into the URL (e.g. ?appid=…) is moved to the secret parameters automatically.

πŸ”„ n8n Integration

n8n is a powerful workflow automation tool that works seamlessly with our webhook system.

Quick Setup:

  1. Create a new workflow in n8n
  2. Add a Webhook trigger node (POST method)
  3. Copy the webhook URL to your chatbot webhook configuration
  4. Build your workflow logic (API calls, database queries, etc.)
  5. Return JSON response that the AI will process

Example Response Format:{"status": "shipped", "tracking": "1Z999AA1", "eta": "2024-01-15"}

πŸ’‘ Example Use Cases

πŸ“¦ Order Status Lookup

Customer asks "Where is my order?" β†’ AI calls get_order_status with order number β†’ Returns tracking info

πŸ‘€ CRM Integration

User provides email β†’ AI calls lookup_customer β†’ Returns account details and recent activity

πŸ“… Appointment Booking

User requests appointment β†’ AI calls check_availability then book_appointment β†’ Confirms booking

πŸ” Inventory Check

Customer asks about product availability β†’ AI calls check_stock β†’ Returns current inventory

πŸ”’ Security

  • β€’ HTTPS Required: All webhook endpoints must use HTTPS
  • β€’ Custom Headers: Add authentication tokens in headers
  • β€’ Secret URL Parameters: API keys that the API expects in the URL (e.g. appid, api_key) are added only when the call is made and never shown again
  • β€’ Timeout Handling: Configurable timeout (1–30 seconds) prevents hanging requests
  • β€’ SSRF Protection: Private IP addresses are blocked on every call and redirects are not followed
  • β€’ Rate Limiting: Built-in protection against excessive calls

⚠️ Important: Do not leave API keys in the webhook URL. Put them into headers or secret URL parameters β€” a key pasted into the URL is moved there automatically.

πŸ’‘ Tip: Start with simple read-only operations (like order lookup) before implementing write operations. Test thoroughly using the built-in webhook tester before activating in production.

πŸ’‘

Tips & Tricks for Document Preparation and Successful Chatbot Implementation

πŸ“„ Document Preparation

πŸ“‹ Content Structuring

  • β€’ Thematic division: One file = one topic
  • β€’ Logical structure: Clear sections and headings
  • β€’ Easy updates: Change only relevant parts
  • β€’ Clarity: Quick content orientation

πŸ“ Format and Naming

  • β€’ Text formats: TXT, DOC, DOCX (without images)
  • β€’ Clear names: Descriptive file names
  • β€’ Auto-update: Same name = replacement
  • β€’ Worry-free: Old version deleted automatically

πŸ’‘ Tip: Prepare documents in advance in plain text format. Images and complex formatting can worsen chatbot response quality.

🎯 Semantic Search

πŸ” How Chatbot Finds Answers

  • β€’ Semantic matching: Searches for similar meaning, not exact text
  • β€’ Keywords: Identifies important terms in query
  • β€’ Context: Considers entire sentence meaning
  • β€’ Similarity: Compares with existing information

✍️ Optimal Formulation

  • β€’ Direct answers: "X is Y years old" instead of "X celebrated Y years"
  • β€’ Various formulations: Use different ways of expression
  • β€’ Expected questions: Think about possible user queries
  • β€’ Keywords: Include synonyms and variants

❌ Less suitable:

"Big Ben celebrated its 165th anniversary"

βœ… Better:

"Big Ben is 165 years old"

Why: The second version better answers questions like "How old is Big Ben?" or "What is the age of Big Ben?"

πŸ“Š Analytics-Based Optimization

πŸ” Gap Analysis

  • β€’ Unanswered queries: Track frequent questions without answers
  • β€’ Low reliability: Identify queries with low confidence
  • β€’ Recurring problems: Find patterns in unsuccessful queries
  • β€’ User frustrations: Observe points where users get "stuck"

🎯 Targeted Improvements

  • β€’ Document expansion: Add missing information
  • β€’ Reformulation: Clarify unclear passages
  • β€’ New formulations: Add different ways of expression
  • β€’ Test and iterate: Test changes and measure improvements
πŸ’― Reliability Interpretation

< 30%

Unsuccessful answer

30-40%

Partially answered

> 40%

Successful answer

πŸ’‘ Tip: Test your modifications directly in the chatbot. Ask the same questions again and monitor reliability changes. The goal is to consistently achieve over 40% reliability.

Why such low values? For 100% reliability, the query would need to be identified exactly in the same wording in the document, which happens very rarely. Therefore, realistic values for English environment are lower.

❓ FAQ Optimization

πŸ“ˆ Most Frequent Queries Analysis

  • β€’ Track trends: Identify recurring questions
  • β€’ Prioritization: Focus on most frequent queries
  • β€’ Patterns: Look for similar formulations of the same question
  • β€’ Problems: Find queries with low reliability

πŸ“ FAQ Document Creation

  • β€’ One paragraph = Q&A: Question and answer together
  • β€’ Natural language: Use common formulations
  • β€’ Complete answers: All necessary information at once
  • β€’ Various variants: Include synonyms and alternatives
✨ Optimized FAQ Example

How long does passport application processing take?Passport application processing takes a standard 6-8 weeks from submission of a complete application. For urgent travel needs, expedited processing is available within 2-3 weeks for an additional $60 fee. You can collect your passport in person at the application center or have it mailed to your address.

πŸš€ Result: FAQ document dramatically increases reliability of answers to most frequent queries. You'll satisfy 80-90% of user questions with high accuracy.

πŸ“Š Long-term Analysis

πŸ” Regular Monitoring

  • β€’ Weekly check: Track unsuccessful answers
  • β€’ Monthly overview: Analyze trends and changes
  • β€’ Partial answers: Identify areas for improvement
  • β€’ Problem patterns: Find recurring deficiencies

πŸ“€ Analytics exportNot in Free

  • β€’ CSV format: For MS Excel and Numbers
  • β€’ Detailed data: All queries and answers
  • β€’ Reliability: Confidence level for each query
  • β€’ Timestamp: Tracking trends over time
πŸ“ˆ Recommended Workflow

1. Weekly export

Download data from last week

2. Excel Analysis

Filter by reliability < 40%

3. Updates

Modify documents based on insights

πŸ’‘ For advanced users: Use Excel pivot tables to group similar queries and identify the most common problem areas.

🌐 Using Web Sources

πŸ”— Web URL scrapingNot in Free

  • β€’ Direct import: Load content from a web page by its URL
  • β€’ FAQ sections: Ideal for existing Frequently Asked Questions
  • β€’ Documentation: Use existing ready-made documentation
  • β€’ One-time import: The page is fetched once and processed like any other document

βœ… Web Scraping Benefits

  • β€’ Time saving: No manual rewriting
  • β€’ Quick start: Get existing web content into the chatbot in seconds
  • β€’ Updates: Not automatic – when the page changes, import the URL again
  • β€’ Structured content: Headings and lists are preserved
πŸ“‹ Ideal Sources for Scraping

βœ… Suitable pages:

  • β€’ FAQ sections
  • β€’ Product documentation
  • β€’ Guides and procedures
  • β€’ Contact information

❌ Less suitable:

  • β€’ Pages with many images
  • β€’ Navigation menus
  • β€’ Advertisement content
  • β€’ JavaScript generated content

πŸ’‘ Tip: If you have a clean FAQ or documentation page on your website, URL import saves you manual rewriting.

⚠️ Best results: Most web pages contain a lot of clutter – menus, footers, cookie banners, ads – which lowers answer quality. Clean Markdown files work much better. You can also let an external AI agent extract the content from your website, save it as Markdown and upload it to your chatbot via the MCP connector.

πŸ’‘ Tips for Getting the Most Value

Get better answers from your chatbot and make the most of your monthly message quota with these tips:

πŸ“„ Document Quality:
  • β€’ Remove unnecessary content before upload β€” cleaner documents = more accurate answers
  • β€’ Use well-structured documents with clear headings and sections
  • β€’ Avoid duplicate information across documents
❓ Encourage Good Questions:
  • β€’ Specific, focused questions get better answers than vague ones
  • β€’ Well-prepared documents lead to faster, more precise responses
πŸ“Š Monitor Your Usage:
  • β€’ Track your message quota in dashboard analytics
  • β€’ For seasonal traffic spikes, use extra message add-ons instead of upgrading your plan
  • β€’ Review monthly trends to decide if your current plan fits your needs
πŸ”§

Troubleshooting

⚠️ Common Issues

πŸ€– Chatbot Not Responding

Possible causes:

  • β€’ Monthly message limit exceeded
  • β€’ Domain is blocked by restrictions
  • β€’ Rate limiting activated
  • β€’ Widget loading error

Solution:

  • β€’ Check usage in dashboard
  • β€’ Verify allowed domains
  • β€’ Browser developer tools β†’ Network tab
  • β€’ Contact support with error details

πŸ“„ Document Not Processing

Common problems:

  • β€’ File larger than plan limit
  • β€’ Unsupported format
  • β€’ Corrupted or password-protected PDF
  • β€’ Processing queue overload

Diagnostics:

  • β€’ Check file size vs plan limit
  • β€’ Try selecting text in PDF
  • β€’ Processing status in documents
  • β€’ Retry upload if stuck

🌐 Widget Won't Load

Loading problems:

  • β€’ CORS policy blocking
  • β€’ Script loading timeout
  • β€’ CSP (Content Security Policy)
  • β€’ Ad blocker interference

Solution steps:

  • β€’ Error messages in browser console
  • β€’ Try different browser/incognito
  • β€’ Temporarily disable ad blockers
  • β€’ Check allowed domains settings

πŸ†˜ Support Contact

πŸ“§ Email Support

support@chatbotty.ai

  • β€’ Priority plans: within 24h (exceptionally up to 48h)
  • β€’ Free plans: usually within 72h
  • β€’ Attachments: Screenshots, logs welcome

πŸ” What to Include

  • β€’ Browser type and version
  • β€’ Error message or screenshot
  • β€’ Chatbot ID and widget URL
  • β€’ Reproduction steps
  • β€’ Console errors (F12)