badges on the right, evolution api sender

This commit is contained in:
Lucas Tettamanti
2026-01-26 01:21:08 -03:00
parent e85afab3e6
commit 53293ce9b3
13 changed files with 422 additions and 51 deletions

View File

@@ -80,13 +80,13 @@ export async function runTurnV3({
locale: "es-AR",
};
// Cargar configuración del tenant (se usa en NLU y handlers)
const storeConfig = await getStoreConfig({ tenantId });
let nluResult;
if (USE_MODULAR_NLU) {
// Nuevo sistema NLU modular con prompts editables
// Cargar configuración del tenant desde la DB
const storeConfig = await getStoreConfig({ tenantId });
nluResult = await llmNluModular({ input: nluInput, tenantId, storeConfig });
audit.nlu = {
raw_text: nluResult.raw_text,
@@ -123,6 +123,7 @@ export async function runTurnV3({
nlu,
order,
audit,
storeConfig,
};
// Regla universal: si quiere agregar productos, volver a CART