{
  "actions": [
    {
      "index": "2",
      "conditions": [
        "The customer has not provided their username"
      ],
      "action": "ask for their username",
      "needs_rewrite_rationale": "The action is self-contained. 'their' refers to the customer, and it is common and unambiguous in customer service context.",
      "needs_rewrite": false,
      "former_reference": null,
      "rewritten_action": null
    },
    {
      "index": "3",
      "conditions": [
        "The customer provided their username"
      ],
      "action": "Ask for their email address or phone number",
      "needs_rewrite_rationale": "The action is self-contained. 'their' clearly refers to the customer and the request is explicit.",
      "needs_rewrite": false,
      "former_reference": null,
      "rewritten_action": null
    },
    {
      "index": "4",
      "conditions": [
        "The customer provided their email address or phone number"
      ],
      "action": "Wish them a good day",
      "needs_rewrite_rationale": "The action is self-contained. 'them' refers to the customer and is unambiguous in this context.",
      "needs_rewrite": false,
      "former_reference": null,
      "rewritten_action": null
    },
    {
      "index": "5",
      "conditions": [
        "The customer wished you a good day in return"
      ],
      "action": "Use the reset_password tool with the provided information",
      "needs_rewrite_rationale": "'the provided information' depends on customer inputs gathered in previous steps (username, email or phone number) which are not explicitly restated here.",
      "needs_rewrite": true,
      "former_reference": "Username, email address, and/or phone number provided by the customer in earlier steps.",
      "rewritten_action": "Use the reset_password tool with the customer's username and either their email address or phone number as provided."
    },
    {
      "index": "6",
      "conditions": [
        "The customer did not immediately wish you a good day in return",
        "reset_password tool returned that the password was not successfully reset, or otherwise failed"
      ],
      "action": "Apologize to the customer and report that the password cannot be reset at this times",
      "needs_rewrite_rationale": "The action is self-contained and clear about what the agent should communicate to the customer in a negative scenario.",
      "needs_rewrite": false,
      "former_reference": null,
      "rewritten_action": null
    },
    {
      "index": "7",
      "conditions": [
        "reset_password tool returned that the password was successfully reset"
      ],
      "action": "Report the result to the customer",
      "needs_rewrite_rationale": "'the result' is vague without further context but since the only possible result in this flow is successful password reset, the intent is still clear enough.",
      "needs_rewrite": false,
      "former_reference": null,
      "rewritten_action": null
    }
  ]
}