This chapter covers the core features and capabilities of Chatbot Builder.
# 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.pyFollow this guide to get Chatbot Builder up and running in your environment.
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
Chatbot config is a JSON object with these keys:
| Key | Type | Description |
|---|---|---|
name | string | Bot display name |
greeting | string | Opening message when conversation starts |
fallback_responses | list[str] | Random responses when no intent matches |
intents | list[Intent] | Intent definitions (see below) |
states | dict | State machine transitions (optional) |
| Key | Type | Description |
|---|---|---|
name | string | Unique intent identifier |
patterns | list[str] | Regex patterns to match user input |
keywords | list[str] | Keywords that trigger this intent |
responses | list[str] | Response templates (supports {variables}) |
context_set | string | Context key to set after matching (optional) |
context_require | string | Context key required to match (optional) |
Get the full Chatbot Builder and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.