Fix NLU flow: media_id, upload perm, catalog filter, nlu_description field
- WpWebhook: inject media_id into context before calling BotRouter so MediaTranscriber can download audio/image (was passing caption='') - BotRouter: use context['media_id'] for transcription (non-breaking fallback) - AiBot::processMedia: fix canUpload to include permType 1 (solo reporta) - AiBot::buildFlowCatalog: include text flows that have nlu_description set - DashboardController + index.php: add nlu_description field per flow card Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
bb4b5dab10
commit
1d9484a1e0
@@ -395,6 +395,7 @@ $routes = [
|
||||
|
||||
// Flows
|
||||
$flowKeys = $_POST['flow_key'] ?? [];
|
||||
$flowNluDescs = $_POST['flow_nlu_desc'] ?? [];
|
||||
$flowTypes = $_POST['flow_type'] ?? [];
|
||||
$flowMessages = $_POST['flow_message'] ?? [];
|
||||
$flowFunctions = $_POST['flow_function'] ?? [];
|
||||
@@ -443,6 +444,9 @@ $routes = [
|
||||
|
||||
$f = ['type' => $ftype];
|
||||
|
||||
$nluDesc = trim($flowNluDescs[$i] ?? '');
|
||||
if ($nluDesc !== '') $f['nlu_description'] = $nluDesc;
|
||||
|
||||
if ($ftype === 'text') {
|
||||
$f['message'] = trim($flowMessages[$i] ?? '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user