...
Implementation Tasks Overview
...
Tasks Focused on Repair Patterns
1. Responding to Fallbacks
Scenario: When the agent cannot recognize a user’s intent (i.e., Dialogflow matches the fallback intent).
Example:
User: "Have you read The Hobbit?"
Agent: "What do you mean?"
Steps:
Add a
b12
pattern inpatterns.pl
to handle fallback intents.Define a paraphrase request (
paraphraseRequest
) as the agent’s response.Add text responses in
responses.pl
for theparaphraseRequest
intent.
...
2. Responding to Out-of-Context Intents
Scenario: When the agent recognizes a user’s intent but finds it irrelevant to the current conversational context.
Example:
Agent: "What recipe would you like to cook?"
User: "Hey there."
Agent: "I am not sure what that means in this context."
Steps:
Add a
b13
pattern inpatterns.pl
:First move: Any user intent.
Second move: Agent’s
contextMismatch(Intent)
response, using the intent as a parameter.
Regulate this pattern in the
updateSession.mod2g
file as the last fallback option for recognized intents.Add responses for
contextMismatch(Intent)
inresponses.pl
:Use
text/3
to customize responses based on the conversational context.Include an acknowledgment of the mismatch and provide guidance on expected user behavior.
...
Tasks Focused on Enhancing User Interaction
1. Handling User Appreciation
Scenario: When the user expresses gratitude.
Example:
User: "Thanks."
Agent: "You're welcome."
Steps:
Add a
b42
appreciation pattern inpatterns.pl
.Define
appreciation
(user intent) andappreciationReceipt
(agent response) intent labels.Add responses for
appreciationReceipt
inresponses.pl
.
...
2. Handling Capability Checks
Scenario: When the user asks what the agent can do.
Example:
User: "What can you do?"
Agent: "I can help you find recipes, filter them by preferences, and guide you through the cooking process."
Steps:
Add a
c30
capability check pattern inpatterns.pl
:Intent labels:
checkCapability
(user intent) anddescribeCapability
(agent response).
Define responses for
describeCapability
inresponses.pl
:Provide a concise, context-aware summary of the agent’s capabilities.
Use
text/3
to tailor responses based on the ongoing conversational context.
...
Tasks Focused on Visual Support
Update Visuals
Enhance the visuals to support the repair patterns:
Fallbacks: Display a friendly prompt asking the user to rephrase their input.
Out-of-Context Intents: Provide subtle visual feedback indicating the agent’s confusion and suggest appropriate actions.
Capability Checks: Add a visually appealing list of capabilities or icons to accompany the agent’s verbal response.
...
Tasks Focused on Debugging and Testing
Test Repair Patterns
Fallbacks:
Test the agent’s ability to respond with a paraphrase request when encountering unrecognized intents.
Example: Say random phrases like “the sky is blue” and verify the agent responds appropriately.
Out-of-Context Intents:
Test responses to user intents that do not align with the current context.
Example: Interrupt the recipe selection process with a greeting and ensure the agent provides context-aware feedback.
Capability Checks:
Test responses to general and context-specific capability inquiries.
Example: Ask "What can you do?" at different stages of the conversation.
...
Instructions
...