- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/integration/ai/controller.php
- Класс: Bitrix\Sender\Integration\AI\Controller
- Вызов: Controller::isAvailable
static function isAvailable(string $category, string $contextId = ''): bool { if (!Loader::includeModule('ai')) { return false; } $engine = Engine::getByCategory($category, new Context('sender', $contextId)); if (is_null($engine)) { return false; } return Option::get('sender', 'ai_base_enabled', 'N') === 'Y'; }