feat: servidor mcp institucional y asistente interactivo guiado con spotlight didactico (SDD-011, v3.8.27)
This commit is contained in:
@@ -201,6 +201,19 @@
|
||||
const data = await res.json();
|
||||
if (res.ok && data.response) {
|
||||
appendMessage('assistant', data.response, data.quick_options || [], true);
|
||||
|
||||
// Si UdeCi emite una directiva de guía interactiva, activar el Spotlight
|
||||
if (data.guide_step && window.WalkthroughEngine) {
|
||||
const panel = document.getElementById('aiChatPanel');
|
||||
const launcher = document.getElementById('aiChatLauncher');
|
||||
if (panel && launcher) {
|
||||
panel.classList.add('d-none');
|
||||
launcher.style.transform = '';
|
||||
}
|
||||
setTimeout(() => {
|
||||
window.WalkthroughEngine.startStep(data.guide_step);
|
||||
}, 250);
|
||||
}
|
||||
} else {
|
||||
const errorMsg = data.detail || data.message || 'UdeCi no pudo procesar la respuesta en este momento.';
|
||||
appendMessage('assistant', `⚠️ ${errorMsg}`, [], false);
|
||||
|
||||
Reference in New Issue
Block a user