Build a webhook for iterative confirmation of spoken sequences
Stay organized with collections
Save and categorize content based on your preferences.
This tutorial walks through building a flow for collecting long digit and
alphanumeric sequences where the end-user can speak a few characters at a time.
A webhook allows you to validate and confirm the sequence one section at a time,
making it easy for end-users to correct the agent when it mishears "BVP" as "BBV",
for example.
The lessons in the tutorial include:
Using regexp entities with auto speech adaptation.
Building webhooks to loop slot-filling.
Using contexts to carry data between intents.
The final interaction will behave like this:
Participant
Dialog
End-user
Check my order.
Agent
What is your sequence? Please pause after a few characters so I can confirm as we go.
End-user
12ABC
Agent
12ABC. Okay, continue.
End-user
34DE
Agent
12ABC34BE. Okay, continue.
End-user
No that's not right.
Agent
Let's try again. What comes after 12ABC ?
End-user
34DE
Agent
12ABC34DE. Okay, continue.
End-user
That's it.
Finally, the webhook validates the full sequence and proceeeds with the rest of your flow.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This tutorial demonstrates how to build a flow for collecting long digit and alphanumeric sequences from users."],["Users can speak a few characters at a time, and a webhook allows for validation and confirmation of the sequence in sections."],["The tutorial covers using regexp entities with auto speech adaptation, building webhooks for slot-filling, and utilizing contexts to pass data between intents."],["The interaction flow includes allowing end-users to correct the sequence, should any miscommunication happen, before continuing."]]],[]]