diff --git a/services/AiBot.php b/services/AiBot.php index 51daa33..ba2da35 100644 --- a/services/AiBot.php +++ b/services/AiBot.php @@ -408,6 +408,9 @@ PROMPT; if ($isUpload && !in_array($permType, [1, 3], true)) continue; if ($isDownload && !in_array($permType, [2, 3], true)) continue; + // Flujos marcados como internos — no exponer al NLU + if (!empty($flow['nlu_skip'])) continue; + // Skip internal/navigation flows unless they have an explicit NLU description $hasNluDesc = isset($flow['nlu_description']) && $flow['nlu_description'] !== ''; if (in_array($type, ['text', 'image'], true) && !$isUpload && !$isDownload && !$hasNluDesc) continue;