instruction: I want to apply a coupon for the maximum amount possible on my shopping bag.

previous_actions: {"name": "click", "parameters": {"x": 899, "y": 1175}}

active_application: 

screen_description: windows {
  bounds_in_screen {
    right: 1080
    bottom: 136
  }
  id: 5
  layer: 1
  window_type: TYPE_SYSTEM
  tree {
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        left: 47
        right: 1027
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 454
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 454
        top: 1
        right: 599
        bottom: 136
      }
      class_name: "android.view.View"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 599
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 804
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 804
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 47
        top: 1
        right: 130
        bottom: 136
      }
      class_name: "android.widget.TextView"
      content_description: "4:24 PM"
      text: "4:24"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 130
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 804
        top: 1
        right: 986
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 986
        top: 1
        right: 1006
        bottom: 136
      }
      class_name: "android.widget.LinearLayout"
      content_description: "Battery charging, 100 percent."
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 130
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 804
        top: 39
        right: 867
        bottom: 97
      }
      class_name: "android.widget.ImageView"
      content_description: "Location requests active"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 867
        top: 39
        right: 924
        bottom: 97
      }
      class_name: "android.widget.ImageView"
      content_description: "Do Not Disturb"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 39
        right: 970
        bottom: 97
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Wifi three bars."
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 986
        top: 51
        right: 1006
        bottom: 85
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 130
        top: 1
        right: 188
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Phases of the Moon notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 188
        top: 1
        right: 246
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Waze notification: Know what Wazers know"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 246
        top: 1
        right: 304
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Tata CLiQ notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 304
        top: 1
        right: 362
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Tasty notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 362
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Ferns N Petals notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "SSBeauty notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Moonly notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Google Play services notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Strava notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "IGP notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Contacts notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "1800Flowers notification: Last chance!"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Toys shopping notification: Don\'t miss this offer.🔥🔥🔥"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Idanim notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Sky Tonight notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Gmail notification: 2 new messages"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Grubhub notification: A sweet last-minute gift 🎁"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "YouTube notification: సిగ్గు.. అక్కసు.. | BRS MLA KTR Vs CM Revanth Reddy | SHOCKING REPLY in Telangana Assembly |TV5 News"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 380
        top: 1
        right: 420
        bottom: 136
      }
      class_name: "android.widget.ImageView"
      content_description: "Flipkart notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 39
        right: 970
        bottom: 97
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 48
        right: 970
        bottom: 87
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 48
        right: 970
        bottom: 87
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
  }
}
windows {
  bounds_in_screen {
    right: 1080
    bottom: 2400
  }
  id: 4195
  window_type: TYPE_APPLICATION
  is_active: true
  is_focused: true
  tree {
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2400
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 136
      }
      class_name: "android.view.View"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        top: 2337
        right: 1080
        bottom: 2400
      }
      class_name: "android.view.View"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "androidx.appcompat.widget.LinearLayoutCompat"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 2337
      }
      class_name: "androidx.appcompat.widget.LinearLayoutCompat"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        top: 136
        right: 1080
        bottom: 283
      }
      class_name: "android.widget.RelativeLayout"
      is_clickable: true
      is_focusable: true
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 68
        top: 317
        right: 400
        bottom: 374
      }
      class_name: "android.widget.TextView"
      text: "Enter Coupon Code"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 68
        top: 391
        right: 1012
        bottom: 517
      }
      class_name: "androidx.appcompat.widget.LinearLayoutCompat"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 534
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.RelativeLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 144
        right: 131
        bottom: 275
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 78
        top: 136
        right: 351
        bottom: 283
      }
      class_name: "android.widget.ImageView"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 351
        top: 168
        right: 1080
        bottom: 250
      }
      class_name: "android.widget.TextView"
      text: "Coupons"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 68
        top: 393
        right: 776
        bottom: 508
      }
      class_name: "android.widget.EditText"
      hint_text: "Enter Coupon Code"
      text: "Enter Coupon Code"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 793
        top: 391
        right: 1012
        bottom: 517
      }
      class_name: "android.widget.Button"
      text: "Apply"
      is_clickable: true
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 534
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.ScrollView"
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 534
        right: 1080
        bottom: 1287
      }
      class_name: "androidx.appcompat.widget.LinearLayoutCompat"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 534
        right: 1080
        bottom: 1116
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 551
        right: 1080
        bottom: 825
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 842
        right: 1080
        bottom: 1116
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 551
        right: 1080
        bottom: 825
      }
      class_name: "android.widget.RelativeLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 842
        right: 1080
        bottom: 1116
      }
      class_name: "android.widget.RelativeLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 51
        top: 619
        right: 164
        bottom: 678
      }
      class_name: "android.widget.TextView"
      text: "HAM10"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 912
        top: 619
        right: 1029
        bottom: 687
      }
      class_name: "android.widget.TextView"
      text: "Apply"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 51
        top: 712
        right: 711
        bottom: 757
      }
      class_name: "android.widget.TextView"
      text: "HAM10 - Addn. 10% off on cart Rs. 4499 and above"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 51
        top: 910
        right: 152
        bottom: 969
      }
      class_name: "android.widget.TextView"
      text: "HAM5"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 912
        top: 910
        right: 1029
        bottom: 978
      }
      class_name: "android.widget.TextView"
      text: "Apply"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 51
        top: 1003
        right: 685
        bottom: 1048
      }
      class_name: "android.widget.TextView"
      text: "HAM5 - Addn. 5% off on cart Rs. 1499 and above"
      depth: 11
    }
  }
}


assistant: !FUNCTIONCALL{"name": "click", "parameters": {"x": 970, "y": 943}}