Continue Listening
Enhancing Conversational Continuity
Last updated
Enhancing Conversational Continuity
Last updated
The Continue Listening (CL) block is designed to maintain the natural rhythm of your conversation. Its primary function is to determine when a caller has finished speaking and to remain attentive for any additional speech. This ensures that the conversation can continue seamlessly if the caller pauses mid-sentence or decides to add more to their statement.
End-of-Speech Detection: The CL block utilizes an advanced detection system that identifies when the caller has stopped talking.
Timer Initiation: Upon detecting the end of speech, the CL block starts a timer, remaining alert for any further caller input.
Response to Additional Speech: If the caller resumes speaking, the system acknowledges this continuation and maintains the conversation without any disruption.
The following example diagram illustrates the architecture of the CL block's connection to the rest of the graph:
A user intent, such as tellSlot
, is linked to the Start Conversation block or a State block within the conversation. Link a User Intent, such as tellSlot
to the Start Conversation or a specific State block.
Add a new slot for capturing user input by going to Speech Assets -> Slots -> Add New Slot.
A pane on the right will display, enabling you to select the slot type you wish to add.
Define a Regex expression by clicking the + button.
Create the input condition using Regex syntax.
The regular expression (\d\w)+
is designed to capture character sequences comprising a digit followed by a word character. The syntax of this regex is as follows:
\d
matches any digit (0-9).
\w
matches any word character, including letters, digits, and underscores.
+
asserts that the preceding element should be matched one or more times.
Implement a condition using the regex, for instance, !slots.tellSlot || slots.tellSlot.length < 11
, to check if the user input matches certain criteria.
Position a 'Continue Listening' block after the condition block to ensure the system stays in listening mode for any additional user speech.
Use the 'Continue Listening' block judiciously to avoid unnecessarily extending the conversation, which could potentially lead to caller frustration.
The CL block is compatible exclusively with the 'Phone2' release.