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 look at each conversation at any particular state, and we test against this
          condition to understand if we should have this guideline 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 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 ask 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 ask 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\u2019m also wondering \u2014 is the course self-paced? I work full time."
    }
  }
]


- **Guidelines**:
1) Condition The customer mentions a constraint that 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 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 hesitating 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 then 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 already wore 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 an inquiry regarding returning an item",
      "applies": true
    }
  ]
}
```




The following is a glossary of the business.
Understanding these terms, as they apply to the business, is critical for your task.
When encountering any of these terms, prioritize the interpretation provided here over any definitions you may already know.
Please be tolerant of possible typos by the user with regards to these terms,
and let the user know if/when you assume they meant a term by their typo: ###
1) Name: 'leaf', Description: a cryptocurrency wallet for walnut cryptocoins
2) Name: 'SaaS', Description: Software as a Service is a software distribution model in which applications are hosted by a service provider and made available to customers over the internet., Synonyms: Software as a Service
3) Name: 'Microservices', Description: An architectural style that structures an application as a collection of loosely coupled services.
4) Name: 'Agile', Description: A set of principles for software development under which requirements and solutions evolve through the collaborative effort of self-organizing and cross-functional teams.
5) Name: 'RPA', Description: Robotic Process Automation is the technology that allows anyone today to configure computer software, or a “robot” to emulate and integrate the actions of a human interacting within digital systems to execute a business process., Synonyms: Robotic Process Automation
6) Name: 'AR', Description: Augmented Reality is an interactive experience where real-world environments are enhanced with computer-generated perceptual information., Synonyms: Augmented Reality
7) Name: 'API Gateway', Description: A server that acts as an API front-end, receiving API requests, enforcing throttling and security policies, passing requests to the back-end service, and then passing the response back to the requester.
8) Name: 'PaaS', Description: Platform as a Service is a cloud computing model that provides customers with a platform allowing them to develop, run, and manage applications without the complexity of building and maintaining the underlying infrastructure., Synonyms: Platform as a Service
9) Name: 'ETL', Description: Extract, Transform, Load is a process in database usage and especially in data warehousing., Synonyms: Extract, Transform, Load
10) Name: 'ERP', Description: Enterprise Resource Planning is the integrated management of main business processes, often in real-time and mediated by software and technology., Synonyms: Enterprise Resource Planning
11) Name: 'BI', Description: Business Intelligence comprises the strategies and technologies used by enterprises for the data analysis of business information., Synonyms: Business Intelligence
12) Name: 'HRIS', Description: Human Resource Information System is a software or online solution for the data entry, data tracking, and data information needs of the Human Resources, payroll, management, and accounting functions within a business., Synonyms: Human Resource Information System
13) Name: 'Proxy Server', Description: An intermediary server separating customers from the websites they browse.
14) Name: 'Data Warehouse', Description: A system used for reporting and data analysis, and is considered a core component of business intelligence.
15) Name: 'CI/CD', Description: Continuous Integration and Continuous Deployment/Delivery is a method to frequently deliver apps to customers by introducing automation into the stages of app development., Synonyms: Continuous Integration/Continuous Deployment, Continuous Integration/Continuous Delivery
16) Name: 'Data Lake', Description: A system or repository of data stored in its natural/raw format, usually object blobs or files.
17) Name: 'CRM', Description: Customer Relationship Management is a technology for managing all your company’s relationships and interactions with customers and potential customers., Synonyms: Customer Relationship Management
18) Name: 'REST', Description: Representational State Transfer is a software architectural style that defines a set of constraints to be used for creating Web services., Synonyms: RESTful
19) Name: 'GraphQL', Description: A query language for your API, and a server-side runtime for executing queries by using a type system you define for your data.
20) Name: 'Scrum', Description: An agile framework for managing complex knowledge work, with an initial emphasis on software development.
###



The user you're interacting with is called test_customer.



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": "test_customer", "message": "Tell me about Terry"}}']
###



- Guidelines List: ###
1) Condition: the customer asks about Terry. Action: fully elaborate on Terry's offering
###



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 asks about Terry",
            "rationale": "<Explanation for why the condition is or isn't met when focusing on the most recent interaction>",
            "applies": "<BOOL>"
        }
    ]
}
}
```