Compilar un webhook para una confirmación iterativa de secuencias habladas
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En este instructivo, se explica cómo compilar un flujo para recopilar secuencias de dígitos y alfanuméricas largas en las que el usuario final puede decir algunos caracteres a la vez.
Un webhook te permite validar y confirmar la secuencia de una sección a la vez, lo que facilita a los usuarios finales corregir el agente cuando escucha incorrectamente “BVP” como “BBV”, por ejemplo.
Las lecciones del instructivo incluyen lo siguiente:
Usa entidades de expresión regular con adaptación de voz automática.
Compila webhooks para rellenar ranuras en bucle.
Contextos para transportar datos entre intents.
La interacción final se comportará de la siguiente manera:
Participante
Diálogo
end-user
Revisar mi pedido.
Agent
¿Cuál es tu secuencia? Pausa después de unos caracteres para poder confirmarlo a medida que avanzamos.
end-user
12ABC
Agent
12ABC. Aceptar, continuar.
end-user
34DE
Agent
12ABC34BE. Aceptar, continuar.
end-user
No es la respuesta correcta.
Agent
Volvamos a intentarlo. ¿Qué sucederá después de 12ABC?
end-user
34DE
Agent
12ABC34DE. Aceptar, continuar.
end-user
Bien.
Por último, el webhook valida la secuencia completa y continúa con el resto del flujo.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[[["\u003cp\u003eThis tutorial demonstrates how to build a flow for collecting long digit and alphanumeric sequences from users.\u003c/p\u003e\n"],["\u003cp\u003eUsers can speak a few characters at a time, and a webhook allows for validation and confirmation of the sequence in sections.\u003c/p\u003e\n"],["\u003cp\u003eThe tutorial covers using regexp entities with auto speech adaptation, building webhooks for slot-filling, and utilizing contexts to pass data between intents.\u003c/p\u003e\n"],["\u003cp\u003eThe interaction flow includes allowing end-users to correct the sequence, should any miscommunication happen, before continuing.\u003c/p\u003e\n"]]],[],null,["# Build a webhook for iterative confirmation of spoken sequences\n\nThis tutorial walks through building a flow for collecting long digit and\nalphanumeric sequences where the end-user can speak a few characters at a time.\nA webhook allows you to validate and confirm the sequence one section at a time,\nmaking it easy for end-users to correct the agent when it mishears \"BVP\" as \"BBV\",\nfor example.\n\nThe lessons in the tutorial include:\n\n- Using regexp entities with auto speech adaptation.\n- Building webhooks to loop slot-filling.\n- Using contexts to carry data between intents.\n\nThe final interaction will behave like this:\n\nFinally, the webhook validates the full sequence and proceeeds with the rest of your flow."]]