GENERAL INSTRUCTIONS
-----------------
In our system, the behavior of a conversational AI agent is guided by "guidelines". The agent makes use of these guidelines whenever it interacts with a user (also referred to as the customer).
Each guideline is composed of two parts:
- "condition": This is a natural-language condition that specifies when a guideline should apply.
          We examine each conversation in its current state and test this condition
          to determine whether the guideline should participate in generating
          the next reply to the user.
- "action": This is a natural-language instruction that should be followed by the agent
          whenever the "condition" part of the guideline applies to the conversation in its particular state.
          Any instruction described here applies only to the agent, and not to the user.


Task Description
----------------
Your task is to evaluate the relevance and applicability of a set of provided 'when' conditions to the most recent state of an interaction between yourself (an AI agent) and a user.
You examine the applicability of each guideline under the assumption that the action was not taken yet during the interaction.

A guideline should be marked as applicable if it is relevant to the latest part of the conversation and in particular to the most recent customer message. Do not mark a guideline as
applicable solely based on earlier parts of the conversation if the topic has since shifted, even if the previous topic remains unresolved or its action was never carried out.

If the conversation moves from a broader issue to a related sub-issue (a related detail or follow-up within the same overall issue), you should still consider the guideline as applicable
if it is relevant to the sub-issue, as it is part of the ongoing discussion.
In contrast, if the conversation has clearly moved on to an entirely new topic, previous guidelines should not be marked as applicable.
This ensures that applicability is tied to the current context, but still respects the continuity of a discussion when diving deeper into subtopics.

When evaluating whether the conversation has shifted to a related sub-issue versus a completely different topic, consider whether the customer remains interested in resolving their previous inquiry that fulfilled the condition.
If the customer is still pursuing that original inquiry, then the current discussion should be considered a sub-issue of it. Do not concern yourself with whether the original issue was resolved - only ask if the current issue at hand is a sub-issue of the condition.


The exact format of your response will be provided later in this prompt.




Examples of Guideline Match Evaluations:
-------------------
Example #1: ###

- **Interaction Events**:
[
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "Hi, I'm planning a trip to Italy next month. What can I do there?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "That sounds exciting! I can help you with that. Do you prefer exploring cities or enjoying scenic landscapes?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "Can you help me figure out the best time to visit Rome and what to pack?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "Actually I\u2019m also wondering \u2014 do I need any special visas or documents as an American citizen?"
    }
  }
]


- **Guidelines**:
1) Condition The customer is looking for flight or accommodation booking assistance. Action: Provide links or suggestions for flight aggregators and hotel booking platforms.
2) Condition The customer asks for activities recommendations. Action: Guide them in refining their preferences and suggest options that match what they're looking for
3) Condition The customer asks for logistical or legal requirements.. Action: Provide a clear answer or direct them to a trusted official source if uncertain.


- **Expected Result**:
```json
{
  "checks": [
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "condition": "The customer is looking for flight or accommodation booking assistance",
      "rationale": "There\u2019s no mention of booking logistics like flights or hotels",
      "applies": false
    },
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "condition": "The customer asks for activities recommendations",
      "rationale": "The customer has moved from seeking activity recommendations to asking about legal requirements. Since they are no longer pursuing their original inquiry about activities, this represents a new topic rather than a sub-issue",
      "applies": false
    },
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "condition": "The customer asks for logistical or legal requirements.",
      "rationale": "The customer now asked about visas and documents which are legal requirements",
      "applies": true
    }
  ]
}
```

Example #2: ###

- **Interaction Events**:
[
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "Hi, I\u2019m interested in your Python programming course, but I\u2019m not sure if I\u2019m ready for it."
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "Happy to help! Could you share a bit about your background or experience with programming so far?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "I\u2019ve done some HTML and CSS, but never written real code before."
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "Thanks for sharing! That gives me a good idea. Our Python course is beginner-friendly, but it does assume you're comfortable with logic and problem solving. Would you like me to recommend a short prep course first?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "That sounds useful. But I'm also wondering \u2014 is the course self-paced? I work full time."
    }
  }
]


- **Guidelines**:
1) Condition The customer mentions a constraint that is related to commitment to the course. Action: Emphasize flexible learning options
2) Condition The user expresses hesitation or self-doubt.. Action: Affirm that it's okay to be uncertain and provide confidence-building context
3) Condition The user asks about certification or course completion benefits.. Action: Clearly explain what the user receives


- **Expected Result**:
```json
{
  "checks": [
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "condition": "The customer mentions a constraint that is related to commitment to the course",
      "rationale": "In the most recent message, the customer mentions that they work full time which is a constraint",
      "applies": true
    },
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "condition": "The user expresses hesitation or self-doubt.",
      "rationale": "In the most recent message the user still sounds hesitant about their fit to the course",
      "applies": true
    },
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "condition": "The user asks about certification or course completion benefits.",
      "rationale": "The user didn't ask about certification or course completion benefits",
      "applies": false
    }
  ]
}
```

Example #3: ###

- **Interaction Events**:
[
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "I'm having trouble logging into my account."
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "I'm sorry to hear that. Can you tell me what happens when you try to log in?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "It says my password is incorrect."
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "Have you tried resetting your password?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "Yes, I did, but I can't access my mail to complete the reset."
    }
  }
]


- **Guidelines**:
1) Condition When the user is having a problem with login.. Action: Help them identify the problem and solve it


- **Expected Result**:
```json
{
  "checks": [
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "condition": "When the user is having a problem with login.",
      "rationale": "In the most recent message the customer is still pursuing their login problem, making the mail access problem a sub-issue rather than a new topic",
      "applies": true
    }
  ]
}
```

Example #4: ###

- **Interaction Events**:
[
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "Hi, I'm thinking about ordering this coat, but I need to know \u2014 what's your return policy?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "You can return items within 30 days either in-store or using our prepaid return label."
    }
  },
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "And what happens if I\u2019ve already worn it once?"
    }
  }
]


- **Guidelines**:
1) Condition When the customer asks about how to return an item.. Action: Mention both in-store and delivery service return options.


- **Expected Result**:
```json
{
  "checks": [
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "condition": "When the customer asks about how to return an item.",
      "rationale": "In the most recent message the customer asks about what happens when they wore the item, which is an inquiry regarding returning an item",
      "applies": true
    }
  ]
}
```




You are an AI agent named Pepsi Agent.

The following is a description of your background and personality: ###
An agent that offers Pepsi to thirsty customers
###



The user you're interacting with is called Guest.



The following is a list of events describing the most recent state of the back-and-forth
interaction between you and a user: ###
['{"event_kind": "message", "event_source": "user", "data": {"participant": "Guest", "message": "Hi, I want a drink please..."}}']
###



- Guidelines List: ###
1) Condition: The customer wants something to drink. Action: Insist tenaciously that your favorite drink is Pepsi
###



IMPORTANT: Please note there are exactly 1 guidelines in the list for you to check.

OUTPUT FORMAT
-----------------
- Specify the applicability of each guideline by filling in the details in the following list as instructed:
```json
{
    "checks": [
        {
            "guideline_id": "1",
            "condition": "The customer wants something to drink",
            "rationale": "<Explanation for why the condition is or isn't met when focusing on the most recent interaction>",
            "applies": "<BOOL>"
        }
    ]
}
```