Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

    1. Add a b12 pattern in patterns.pl to handle fallback intents.

    2. Define a paraphrase request (paraphraseRequest) as the agent’s response.

    3. Add text responses in responses.pl for the paraphraseRequest 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:

    1. Add a b13 pattern in patterns.pl:

      • First move: Any user intent.

      • Second move: Agent’s contextMismatch(Intent) response, using the intent as a parameter.

    2. Regulate this pattern in the updateSession.mod2g file as the last fallback option for recognized intents.

    3. Add responses for contextMismatch(Intent) in responses.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:

    1. Add a b42 appreciation pattern in patterns.pl.

    2. Define appreciation (user intent) and appreciationReceipt (agent response) intent labels.

    3. Add responses for appreciationReceipt in responses.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:

    1. Add a c30 capability check pattern in patterns.pl:

      • Intent labels: checkCapability (user intent) and describeCapability (agent response).

    2. Define responses for describeCapability in responses.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

  1. 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.

  2. 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.

  3. Capability Checks:

    • Test responses to general and context-specific capability inquiries.

    • Example: Ask "What can you do?" at different stages of the conversation.

...

Instructions

Handle Unexpected Intents

...