Creazione di un webhook per la conferma iterativa delle sequenze vocali
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo tutorial illustra la creazione di un flusso per la raccolta di sequenze alfanumeriche e di cifre lunghe in cui l'utente finale può pronunciare alcuni caratteri alla volta.
Un webhook ti consente di convalidare e confermare la sequenza una sezione alla volta,
pertanto gli utenti finali possono correggere facilmente l'agente quando, ad esempio, scambia "BVP" per "BBV".
Le lezioni del tutorial includono:
Utilizzo di entità regexp con adattamento vocale automatico.
Creazione di webhook per eseguire il looping della compilazione degli slot.
Utilizzo dei contesti per trasferire i dati tra gli intent.
L'interazione finale avrà il seguente comportamento:
Partecipante
Finestra di dialogo
Utente finale
Controlla il mio ordine.
Agente
Qual è la sequenza? Fai una pausa dopo alcuni caratteri per consentirmi di confermare man mano che procedi.
Utente finale
12ABC
Agente
12ABC. Ok, continua.
Utente finale
34DE
Agente
12ABC34BE. Ok, continua.
Utente finale
No, non è corretto.
Agente
Riproviamo. Che cosa segue 12ABC?
Utente finale
34DE
Agente
12ABC34DE. Ok, continua.
Utente finale
Questo è tutto.
Infine, l'webhook convalida l'intera sequenza e procede con il resto del flusso.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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."]]