topsapp: estruturar suporte

Signed-off-by: Rodrigo B. de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
rodrigo committed 2025-08-08 21:48:26 -03:00
1 parent 723ad8c268
commit 8dc6c594c9
7 files changed
+1687 -104

No files matched your search

+27 -3
View File
@@ -169,9 +169,9 @@ class NLPProcessor {
};
}
// Detectar comandos TopSapp - bloquear cliente
if (/bloquear|suspender|cortar/i.test(action) && /cliente|user/i.test(fullMatch)) {
let clienteId = match[3] || match[2]; // ID do cliente
// Detectar comandos TopSapp - bloquear cliente/serviço
if (/bloquear|suspender|cortar/i.test(action)) {
let clienteId = match[3] || match[2]; // ID/CPF/Nome do cliente
return {
action: 'bloquear_cliente',
@@ -181,6 +181,30 @@ class NLPProcessor {
};
}
// Detectar comandos TopSapp - listar serviços
if (/listar|ver|mostrar/i.test(action) && /serviços?|produtos?|planos?/i.test(fullMatch)) {
let clienteId = match[3] || match[2]; // ID/CPF/Nome do cliente
return {
action: 'listar_servicos',
target: clienteId ? clienteId.trim() : null,
confidence: 0.95,
type: 'topsapp_services_pattern'
};
}
// Detectar comandos TopSapp - liberar cliente/serviço
if (/liberar|ativar|religar|reconectar/i.test(action)) {
let clienteId = match[3] || match[2]; // ID/CPF/Nome do cliente
return {
action: 'liberar_cliente',
target: clienteId ? clienteId.trim() : null,
confidence: 0.95,
type: 'topsapp_unblock_pattern'
};
}
// Detectar comandos TopSapp - liberar cliente
if (/liberar|desbloquear|reconectar/i.test(action) && /cliente|user/i.test(fullMatch)) {
let clienteId = match[3] || match[2]; // ID do cliente