{
  "name": "Expense approval",
  "trigger": "When a row is added (Excel: Claims table) - or a Microsoft Forms response",
  "steps": [
    {
      "Condition": "float(triggerBody()?['Amount']) > 100000",
      "If yes": [
        "Start and wait for an approval (Approve/Reject) - Assigned to: finance head",
        "Condition: outcome = Approve -> Update row Status=Approved, Approver=responder; else Status=Rejected",
        "Send an email (V2) to the employee with the outcome and comments"
      ],
      "If no": [
        "Update row: Status=Auto-approved",
        "Send an email (V2): auto-approved under Rs 1,00,000"
      ]
    }
  ],
  "error handling": "Scope 'Try' + Scope 'Catch' (Configure run after: has failed) -> Post a Teams message with the run link"
}