topsapp: adicionado opção de abrir suporte
Signed-off-by: Rodrigo B. de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
1 parent
1337e1c2d0
commit
3d35fc24cc
9 files changed
+1600
-1
No files matched your search
@@ -0,0 +1,30 @@
|
||||
const NLPProcessor = require('./src/nlp/processor');
|
||||
|
||||
// Teste do processador NLP para comandos de suporte
|
||||
const nlp = new NLPProcessor();
|
||||
|
||||
console.log('🧪 Testando detecção de comandos de suporte...\n');
|
||||
|
||||
const testCases = [
|
||||
'abrir suporte',
|
||||
'criar suporte para João Silva',
|
||||
'novo chamado',
|
||||
'suporte cliente 123.456.789-10',
|
||||
'adicionar suporte',
|
||||
'abrir suporte FRANCE CRISTINA DE SOUSA CAMARGO',
|
||||
'ticket',
|
||||
'atendimento'
|
||||
];
|
||||
|
||||
testCases.forEach((testCase, index) => {
|
||||
console.log(`${index + 1}. Teste: "${testCase}"`);
|
||||
const intent = nlp.processMessage(testCase);
|
||||
|
||||
console.log(` 🧠 Action: ${intent.action}`);
|
||||
console.log(` 🎯 Target: ${intent.target}`);
|
||||
console.log(` 📊 Confidence: ${intent.confidence}`);
|
||||
console.log(` 🔧 Type: ${intent.type}`);
|
||||
console.log('');
|
||||
});
|
||||
|
||||
console.log('🏁 Teste de NLP concluído!');
|
||||
Reference in new issue
Block a user