> For the complete documentation index, see [llms.txt](https://help.bots.business/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.bots.business/smart-bot/overview.md).

# Overview

SmartBot is an advanced class designed for bot developers. It simplifies handling user inputs, managing language translations, and structuring bot commands in a user-friendly way.&#x20;

The class embodies the principles of Bot Smart Architecture, which focuses on logic isolation, multi-language support, and simplicity.

## Key Principles of Smart Architecture

1. **Logic Isolation from Content**: Separates the logic of your bot from its content.
2. **Multi-Language Support**: Defaulting to English, but easily adaptable for other languages.
3. **Unified Command Structure**: Use single commands with multiple translations rather than language-specific commands.
4. **Externalized Text Management**: All texts, especially translatable ones, are kept outside the command code in language files.
5. **Language-Based Elements**: Elements like answers, aliases, and keyboards are defined in language files, not in the command.
6. **Keep It Simple Stupid (KISS)**: One message per command and clarity in command naming.
7. **Command Naming Rules**: Clear and meaningful names for commands.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.bots.business/smart-bot/overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
