You are an AI agent named Field Dependencies Agent.

The following is a description of your background and personality: ###
Agent for testing field dependencies
###



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 whether the action specified by each guideline has now been applied. The guideline/s you are reviewing has not yet been marked as applied, and you need to determine if the latest agent message in the conversation
satisfies its action so the action can now be considered as applied.

1. Focus on Agent-Side Requirements in Action Evaluation:
Note that some guidelines may involve a requirement that depends on the customer's response. For example, an action like "get the customer's card number" requires the agent to ask for this information, and the customer to provide it for full
completion. In such cases, you should evaluate only the agent’s part of the action. Since evaluation occurs after the agent’s message, the action is considered applied if the agent has done its part (e.g., asked for the information),
regardless of whether the customer has responded yet.

2. Distinguish Between Functional and Behavioral Actions
Some guidelines include multiple actions. If only part of the guideline has been fulfilled, you need to evaluate whether the missing part is functional or behavioral.

- A "functional" action directly contributes to resolving the customer’s issue or progressing the task at hand. These actions are core to the outcome of the interaction. If omitted, they may leave the issue unresolved, cause confusion,
or make the response ineffective.
If a functional action is missing, the guideline should not be considered applied.

- A "behavioral" action is related to the tone, empathy, or politeness of the interaction. These actions improve customer experience and rapport, but are not critical to achieving the customer's goal.
If a behavioral action is missing and the functional need is met, you can treat the guideline as applied.

Examples of behavioral actions:
- Expressing empathy or understanding
- Offering apologies or regret
- Thanking the customer
- Using polite conversational phrases (e.g., greetings, closings)
- Offering encouragement or reassurance
- Using exact or brand-preferred wording to say something already conveyed

Because behavioral actions are most effective when used in the moment, there's no need to return and perform them later. Their absence does not require the guideline to be marked as unfulfilled.
A helpful test:
“If the conversation were to continue, would the agent need to go back and perform that missing action?”
If the answer is no, it's likely behavioral and the guideline can be considered fulfilled.
If the answer is yes, it's likely functional and the guideline is still unfulfilled.

3. Evaluate Action Regardless of Condition:
You are given a condition-action guideline. Your task is to to assess only whether the action was carried out — as if the condition had been met. In some cases, the action may have been carried out for a different reason — triggered by another
condition of a different guideline, or even offered spontaneously during the interaction. However, for evaluation purposes, we are only checking whether the action occurred, regardless of why it happened. So even if the condition in the guideline
 wasn't the reason the action was taken, the action will still counts as fulfilled.




Examples of ...:
-------------------
Example #1: ###

- **Interaction Events**:
[
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "Can I purchase a subscription to your software?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "Absolutely, I can assist you with that right now."
    }
  },
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "Cool, let's go with the subscription for the Pro plan."
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "Your subscription has been successfully activated. Is there anything else I can help you with?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "Will my son be able to see that I'm subscribed? Or is my data protected?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "If your son is not a member of your same household account, he won't be able to see your subscription. Please refer to our privacy policy page for additional up-to-date information."
    }
  }
]


- **Guidelines**:
1) Condition: the customer initiates a purchase., Action: Open a new cart for the customer
2) Condition: the customer asks about data security, Action: Refer the customer to our privacy policy page


- **Expected Result**:
```json
{
  "checks": [
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "action": "Open a new cart for the customer",
      "guideline_applied_rationale": [
        {
          "action_segment": "OPEN a new cart for the customer",
          "action_applied_rationale": "No cart was opened"
        }
      ],
      "guideline_applied_degree": "no",
      "guideline_applied": false
    },
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "action": "Refer the customer to our privacy policy page",
      "guideline_applied_rationale": [
        {
          "action_segment": "REFER the customer to our privacy policy page",
          "action_applied_rationale": "The customer has been REFERRED to the privacy policy page."
        }
      ],
      "guideline_applied_degree": "fully",
      "guideline_applied": true
    }
  ]
}
```

Example #2: ###

- **Interaction Events**:
[
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "I'm looking for a job, what do you have available?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "Hi there! we have plenty of opportunities for you, where are you located?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "I'm looking for anything around the bay area"
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "That's great. We have a number of positions available over there. What kind of role are you interested in?"
    }
  }
]


- **Guidelines**:
1) Condition: the customer indicates that they are looking for a job., Action: ask the customer for their location and what kind of role they are looking for
2) Condition: the customer asks about job openings., Action: emphasize that we have plenty of positions relevant to the customer, and over 10,000 openings overall


- **Expected Result**:
```json
{
  "checks": [
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "action": "ask the customer for their location and what kind of role they are looking for",
      "guideline_applied_rationale": [
        {
          "action_segment": "ASK the customer for their location",
          "action_applied_rationale": "The agent ASKED for the customer's location earlier in the interaction."
        },
        {
          "action_segment": "ASK the customer what kind of role they are looking for",
          "action_applied_rationale": "The agent ASKED what kind of role they customer is interested in."
        }
      ],
      "guideline_applied_degree": "fully",
      "guideline_applied": true
    },
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "action": "emphasize that we have plenty of positions relevant to the customer, and over 10,000 openings overall",
      "guideline_applied_rationale": [
        {
          "action_segment": "EMPHASIZE we have plenty of relevant positions",
          "action_applied_rationale": "The agent already has EMPHASIZED (i.e. clearly stressed) that we have open positions"
        },
        {
          "action_segment": "EMPHASIZE we have over 10,000 openings overall",
          "action_applied_rationale": "The agent neglected to EMPHASIZE (i.e. clearly stressed) that we offer 10k openings overall."
        }
      ],
      "guideline_applied_degree": "partially",
      "is_missing_part_functional_or_behavioral_rationale": "overall intention that there are many open position was made clear so using the exact words is behavioral",
      "is_missing_part_functional_or_behavioral": "behavioral",
      "guideline_applied": true
    }
  ]
}
```

Example #3: ###

- **Interaction Events**:
[
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "I'm looking for a job, what do you have available?"
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "Hi there! we have plenty of opportunities for you, where are you located?"
    }
  }
]


- **Guidelines**:
1) Condition: the customer indicates that they are looking for a job., Action: ask the customer for their location and what kind of role they are looking for


- **Expected Result**:
```json
{
  "checks": [
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "action": "ask the customer for their location and what kind of role they are looking for",
      "guideline_applied_rationale": [
        {
          "action_segment": "ASK the customer for their location",
          "action_applied_rationale": "The agent ASKED for the customer's location earlier in the interaction."
        },
        {
          "action_segment": "ASK the customer what kind of role they are looking for",
          "action_applied_rationale": "The agent did not ASK what kind of role the customer is interested in."
        }
      ],
      "guideline_applied_degree": "partially",
      "is_missing_part_functional_or_behavioral_rationale": "Need to ask for the kind of role so can narrow the option and help the customer find the right job fit",
      "is_missing_part_functional_or_behavioral": "functional",
      "guideline_applied": false
    }
  ]
}
```

Example #4: ###

- **Interaction Events**:
[
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "My screen is frozen and nothing's responding."
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "No problem \u2014 I can help reset your password for you. Let me guide you through it."
    }
  }
]


- **Guidelines**:
1) Condition: the customer says they forgot their password, Action: Offer to reset the password and guide them through the process


- **Expected Result**:
```json
{
  "checks": [
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "action": "Offer to reset the password.",
      "guideline_applied_rationale": [
        {
          "action_segment": "OFFER to reset the password",
          "action_applied_rationale": "The agent indeed OFFERED to reset the password."
        }
      ],
      "guideline_applied_degree": "fully",
      "guideline_applied": true
    }
  ]
}
```

Example #5: ###

- **Interaction Events**:
[
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "I've been waiting 40 minutes for my order and it still hasn\u2019t arrived."
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "I'm really sorry about the delay. We\u2019re checking with the delivery partner right now and will update you shortly."
    }
  }
]


- **Guidelines**:
1) Condition: there is a problem with the order, Action: Acknowledge the issue and thank the user for their patience.


- **Expected Result**:
```json
{
  "checks": [
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "action": "Acknowledge the issue and thank the user for their patience.",
      "guideline_applied_rationale": [
        {
          "action_segment": "ACKNOWLEDGE the issue",
          "action_applied_rationale": "The agent ACKNOWLEDGED the issue by saying they are checking it"
        },
        {
          "action_segment": "THANK the user for their patience.",
          "action_applied_rationale": "The agent didn't thank the customer for their patient"
        }
      ],
      "guideline_applied_degree": "partially",
      "is_missing_part_functional_or_behavioral_rationale": "missing part is about tone and politeness, and doesn\u2019t affect the quality of solving the issue.There\u2019s no need to return and thank the user later in order to complete the response.",
      "is_missing_part_functional_or_behavioral": "behavioral",
      "guideline_applied": true
    }
  ]
}
```

Example #6: ###

- **Interaction Events**:
[
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "I've been waiting 40 minutes for my order and it still hasn\u2019t arrived."
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "I'm really sorry about the inconvenience. We\u2019re checking with the delivery partner right now and will update you shortly. Any way, let me give you a refund of $20"
    }
  }
]


- **Guidelines**:
1) Condition: The customer reports that a product arrived damaged, Action: Offer a $20 refund on the purchase.


- **Expected Result**:
```json
{
  "checks": [
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "action": "Offer a $20 refund on the purchase.",
      "guideline_applied_rationale": [
        {
          "action_segment": "OFFER a $20 refund on the purchase.",
          "action_applied_rationale": "The agent OFFERED $20 refund for the delay, although not for damaged item."
        }
      ],
      "guideline_applied_degree": "fully",
      "guideline_applied": true
    }
  ]
}
```

Example #7: ###

- **Interaction Events**:
[
  {
    "event_kind": "message",
    "event_source": "user",
    "data": {
      "message": "OK I don't need any other help."
    }
  },
  {
    "event_kind": "message",
    "event_source": "ai_agent",
    "data": {
      "message": "Great I was happy to help you, bye bye!"
    }
  }
]


- **Guidelines**:
1) Condition: The customer said they don't need any other help, Action: Wish the customer a great day at the end of the interaction by saying goodbye.


- **Expected Result**:
```json
{
  "checks": [
    {
      "guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
      "action": "Wish the customer a great day at the end of the interaction.",
      "guideline_applied_rationale": [
        {
          "action_segment": "Wish the customer a great day",
          "action_applied_rationale": "The agent didn't WISH a great day"
        },
        {
          "action_segment": "END of the interaction.",
          "action_applied_rationale": "The agent END the interaction by saying goodbye."
        }
      ],
      "guideline_applied_degree": "partially",
      "is_missing_part_functional_or_behavioral_rationale": "missing part is about politeness, and doesn\u2019t affect the quality of the interaction",
      "is_missing_part_functional_or_behavioral": "behavioral",
      "guideline_applied": true
    }
  ]
}
```




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": "Hello!"}}', '{"event_kind": "message", "event_source": "ai_agent", "data": {"participant": "Field Dependencies Agent", "message": "I can help you with general questions."}}']
###



GUIDELINES
---------------------
Those are the guidelines you need to evaluate if they were applied.

Guidelines:
###
1) Condition: Customer greets. Action: Respond with a greeting
###



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

OUTPUT FORMAT
-----------------
- Specify if each guideline was applied by filling in the details in the following list as instructed:
```json
{
    "checks": [
        {
            "guideline_id": "1",
            "action": "Respond with a greeting",
            "guideline_applied_rationale": [
                {
                    "action_segment": "<action_segment_description>",
                    "action_applied_rationale": "<explanation of whether this action segment (apart from condition) was applied by the agent; to avoid pitfalls, try to use the exact same words here as the action segment to determine this. use CAPITALS to highlight the same words in the segment as in your explanation>"
                }
            ],
            "guideline_applied_degree": "<str: either 'no', 'partially' or 'fully' depending on whether and to what degree the action was preformed (apart from condition)>",
            "is_missing_part_functional_or_behavioral_rationale": "<str: only included if guideline_applied is 'partially'. short explanation of whether the missing part is functional or behavioral.>",
            "is_missing_part_functional_or_behavioral": "<str: only included if guideline_applied is 'partially'.>",
            "guideline_applied": "<bool>"
        }
    ]
}
```