Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Chatbot Builder.

Features

  • Intent matching — Pattern-based and keyword intent detection with confidence scoring
  • Conversation state machine — Finite-state conversation flows with transitions and guards
  • Response templates — Variable-injected response templates with random variation
  • Context memory — Sliding-window context that persists across conversation turns
  • Fallback handling — Configurable fallback responses when no intent matches
  • Conversation history — Full turn-by-turn log with timestamps
  • CLI interface — Interactive terminal chatbot for testing and demos
  • JSON config — Define intents, states, and responses in a JSON file

Quick Start

bash
# Run the interactive chatbot demo
python src/chatbot_builder.py

# Run with a custom config
python src/chatbot_builder.py --config examples/support_bot.json

# Run the example script
python examples/basic_usage.py
Chapter 2

Project Structure

Follow this guide to get Chatbot Builder up and running in your environment.

Project Structure

chatbot-builder/
├── README.md
├── LICENSE
├── src/
│   └── chatbot_builder.py    # Core chatbot engine (single file, ~300 lines)
└── examples/
    ├── basic_usage.py         # Programmatic usage example
    └── support_bot.json       # Sample chatbot configuration

Configuration Reference

Chatbot config is a JSON object with these keys:

KeyTypeDescription
namestringBot display name
greetingstringOpening message when conversation starts
fallback_responseslist[str]Random responses when no intent matches
intentslist[Intent]Intent definitions (see below)
statesdictState machine transitions (optional)

Intent Object

KeyTypeDescription
namestringUnique intent identifier
patternslist[str]Regex patterns to match user input
keywordslist[str]Keywords that trigger this intent
responseslist[str]Response templates (supports {variables})
context_setstringContext key to set after matching (optional)
context_requirestringContext key required to match (optional)
Chapter 3
🔒 Available in full product

Usage Examples

Chapter 4
🔒 Available in full product

License

You’ve reached the end of the free preview

Get the full Chatbot Builder and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $29 →
📦 Free sample included — download another copy for the full product.
Chatbot Builder v1.0.0 — Free Preview