instruction
Open the Pizza Hut app and apply a coupon code of FREEPIZZA.
previous_actions
active_application
Domino\'s
screen_description
windows {
  bounds_in_screen {
    right: 1080
    bottom: 128
  }
  id: 8
  layer: 1
  window_type: TYPE_SYSTEM
  tree {
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        left: 50
        right: 1027
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        left: 50
        top: 1
        right: 469
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 469
        top: 1
        right: 587
        bottom: 128
      }
      class_name: "android.view.View"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 587
        top: 1
        right: 1006
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 50
        top: 1
        right: 317
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 865
        top: 1
        right: 1006
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 50
        top: 1
        right: 317
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 865
        top: 1
        right: 1006
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 50
        top: 1
        right: 143
        bottom: 128
      }
      class_name: "android.widget.TextView"
      content_description: "10:01 AM"
      text: "10:01"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 143
        top: 1
        right: 317
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 865
        top: 1
        right: 986
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 986
        top: 1
        right: 1006
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      content_description: "Battery charging, 100 percent."
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 143
        top: 1
        right: 317
        bottom: 128
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 865
        top: 35
        right: 911
        bottom: 93
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Wifi three bars."
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 911
        top: 35
        right: 970
        bottom: 93
      }
      class_name: "android.widget.ImageView"
      content_description: "Hotspot"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 986
        top: 47
        right: 1006
        bottom: 81
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 143
        top: 1
        right: 201
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "Snapchat notification: Kavita Nayak: Kavita Nayak"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 201
        top: 1
        right: 259
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "Weather notification: 32°"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 259
        top: 1
        right: 317
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "LeafSnap notification: African rose-mallow: Water"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 872
        top: 35
        right: 911
        bottom: 93
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 872
        top: 44
        right: 911
        bottom: 83
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 872
        top: 44
        right: 911
        bottom: 83
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
  }
}
windows {
  bounds_in_screen {
    right: 1080
    bottom: 2400
  }
  id: 642
  title: "Domino\'s"
  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: 128
      }
      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: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.RelativeLayout"
      is_focusable: true
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 275
      }
      class_name: "android.view.ViewGroup"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 275
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.ScrollView"
      is_focusable: true
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 147
        bottom: 275
      }
      class_name: "android.widget.ImageButton"
      content_description: "Navigate up"
      is_clickable: true
      is_focusable: true
      depth: 7
      tooltip_text: "Navigate up"
    }
    nodes {
      bounds_in_screen {
        left: 157
        top: 170
        right: 287
        bottom: 233
      }
      class_name: "android.widget.TextView"
      text: "Offers"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 1080
        top: 128
        right: 1080
        bottom: 275
      }
      class_name: "androidx.appcompat.widget.LinearLayoutCompat"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 307
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 307
        right: 1064
        bottom: 526
      }
      class_name: "android.widget.FrameLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 37
        top: 563
        right: 1048
        bottom: 712
      }
      class_name: "android.widget.RelativeLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 744
        right: 1080
        bottom: 1336
      }
      class_name: "android.widget.LinearLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 307
        right: 1064
        bottom: 526
      }
      class_name: "android.widget.RelativeLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 37
        top: 604
        right: 139
        bottom: 670
      }
      class_name: "android.widget.ImageView"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 171
        top: 563
        right: 1048
        bottom: 712
      }
      class_name: "android.widget.TextView"
      text: "This section is for Coupons only. To redeem Gift Cards & e-Vouchers, choose Payment Mode as \'Gift Cards / eVouchers\' at checkout."
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 744
        right: 328
        bottom: 801
      }
      class_name: "android.widget.TextView"
      text: "Payment Offers"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 32
        top: 801
        right: 535
        bottom: 837
      }
      class_name: "android.widget.TextView"
      text: "Offers for your preferred payment methods"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 866
        right: 1080
        bottom: 1336
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      is_scrollable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 79
        top: 370
        right: 717
        bottom: 447
      }
      class_name: "android.widget.EditText"
      hint_text: "Enter coupon code here"
      text: "PIZZA@23"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_focused: true
      is_long_clickable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 651
        top: 370
        right: 717
        bottom: 436
      }
      class_name: "android.widget.ImageView"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 79
        top: 447
        right: 717
        bottom: 450
      }
      class_name: "android.view.View"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 780
        top: 346
        right: 1001
        bottom: 461
      }
      class_name: "android.widget.TextView"
      text: "APPLY"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 79
        top: 466
        right: 516
        bottom: 526
      }
      class_name: "android.widget.TextView"
      text: "Coupon Code is invalid or expired"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 866
        right: 865
        bottom: 1336
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 897
        top: 866
        right: 1080
        bottom: 1336
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 866
        right: 865
        bottom: 1081
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 1113
        right: 865
        bottom: 1328
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 897
        top: 866
        right: 1080
        bottom: 1081
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 897
        top: 1113
        right: 1080
        bottom: 1328
      }
      class_name: "android.widget.FrameLayout"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 866
        right: 865
        bottom: 1081
      }
      class_name: "android.widget.RelativeLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 1113
        right: 865
        bottom: 1328
      }
      class_name: "android.widget.RelativeLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 897
        top: 866
        right: 1080
        bottom: 1081
      }
      class_name: "android.widget.RelativeLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 897
        top: 1113
        right: 1080
        bottom: 1328
      }
      class_name: "android.widget.RelativeLayout"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 866
        right: 865
        bottom: 987
      }
      class_name: "android.widget.RelativeLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 1008
        right: 865
        bottom: 1081
      }
      class_name: "android.widget.RelativeLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 1113
        right: 865
        bottom: 1234
      }
      class_name: "android.widget.RelativeLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 16
        top: 1255
        right: 865
        bottom: 1328
      }
      class_name: "android.widget.RelativeLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 897
        top: 866
        right: 1080
        bottom: 987
      }
      class_name: "android.widget.RelativeLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 897
        top: 1008
        right: 1080
        bottom: 1081
      }
      class_name: "android.widget.RelativeLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 897
        top: 1113
        right: 1080
        bottom: 1234
      }
      class_name: "android.widget.RelativeLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 897
        top: 1255
        right: 1080
        bottom: 1328
      }
      class_name: "android.widget.RelativeLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 37
        top: 887
        right: 237
        bottom: 982
      }
      class_name: "android.widget.LinearLayout"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 258
        top: 887
        right: 844
        bottom: 987
      }
      class_name: "android.widget.TextView"
      text: "Paytm wallet - Flat Rs. 50 cashback on an order of Rs. 500 or more using Paytm Wallet (Valid for 1st ever Paytm Wallet transaction on Dominos)"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 34
        top: 1008
        right: 158
        bottom: 1081
      }
      class_name: "android.widget.TextView"
      text: "T & Cs"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 700
        top: 1008
        right: 847
        bottom: 1081
      }
      class_name: "android.widget.TextView"
      text: "SELECT"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 37
        top: 1134
        right: 237
        bottom: 1229
      }
      class_name: "android.widget.LinearLayout"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 258
        top: 1134
        right: 844
        bottom: 1234
      }
      class_name: "android.widget.TextView"
      text: "Airtel - 15% cashback upto ₹150 Airtel Money"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 34
        top: 1255
        right: 158
        bottom: 1328
      }
      class_name: "android.widget.TextView"
      text: "T & Cs"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 700
        top: 1255
        right: 847
        bottom: 1328
      }
      class_name: "android.widget.TextView"
      text: "SELECT"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 918
        top: 887
        right: 1080
        bottom: 982
      }
      class_name: "android.widget.LinearLayout"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 1139
        top: 887
        right: 1080
        bottom: 987
      }
      class_name: "android.widget.TextView"
      text: "Freecharge wallet - Flat Rs. 30 cashback on minimum transaction value of Rs. 399; once per user orders"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 915
        top: 1008
        right: 1039
        bottom: 1081
      }
      class_name: "android.widget.TextView"
      text: "T & Cs"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 1581
        top: 1008
        right: 1080
        bottom: 1081
      }
      class_name: "android.widget.TextView"
      text: "SELECT"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 918
        top: 1134
        right: 1080
        bottom: 1229
      }
      class_name: "android.widget.LinearLayout"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 1139
        top: 1134
        right: 1080
        bottom: 1234
      }
      class_name: "android.widget.TextView"
      text: "Get up to Rs.500 Cashback on your transaction with MobiKwik @ Dominos"
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 915
        top: 1255
        right: 1039
        bottom: 1328
      }
      class_name: "android.widget.TextView"
      text: "T & Cs"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 1581
        top: 1255
        right: 1080
        bottom: 1328
      }
      class_name: "android.widget.TextView"
      text: "SELECT"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 37
        top: 887
        right: 237
        bottom: 982
      }
      class_name: "android.widget.ImageView"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 37
        top: 1134
        right: 237
        bottom: 1229
      }
      class_name: "android.widget.ImageView"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 918
        top: 887
        right: 1080
        bottom: 982
      }
      class_name: "android.widget.ImageView"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 918
        top: 1134
        right: 1080
        bottom: 1229
      }
      class_name: "android.widget.ImageView"
      depth: 15
    }
  }
}

assistant
!FUNCTIONCALL{"name": "open_app", "parameters": {"app_name": "Pizza Hut"}}
[{"type": "function", "function": {"name": "click", "description": "Click on a specific location on the screen", "parameters": {"type": "object", "properties": {"x": {"type": "integer", "description": "Coordinate on the x axis to click."}, "y": {"type": "integer", "description": "Coordinate on the y axis to click."}}, "required": ["x", "y"]}}}, {"type": "function", "function": {"name": "long_press", "description": "Long press on a specific location on the screen.", "parameters": {"type": "object", "properties": {"x": {"type": "integer", "description": "Coordinate on the x axis to long press."}, "y": {"type": "integer", "description": "Coordinate on the y axis to long press."}}, "required": ["x", "y"]}}}, {"type": "function", "function": {"name": "input_text", "description": "Write text inside of an already selected text field, typically this is preceeded by a 'click' action that selects a field on the screen to type into.", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to input in the field."}}, "required": ["text"]}}}, {"type": "function", "function": {"name": "scroll", "description": "Scroll a fixed amount in a specific direction.", "parameters": {"type": "object", "properties": {"direction": {"type": "string", "enum": ["up", "down", "left", "right"], "description": "The direction to scroll in."}}, "required": ["direction"]}}}, {"type": "function", "function": {"name": "navigate_home", "description": "Navigate to the home screen from the current screen you are on.", "parameters": {"type": "object", "properties": {}}}}, {"type": "function", "function": {"name": "navigate_back", "description": "Navigate back to the previous page.", "parameters": {"type": "object", "properties": {}}}}, {"type": "function", "function": {"name": "open_app", "description": "Open an application.", "parameters": {"type": "object", "properties": {"app_name": {"type": "string", "description": "The name of the application to open."}}, "required": ["app_name"]}}}, {"type": "function", "function": {"name": "wait", "description": "Wait for a fixed amount of time. This is useful when you need to 'await' the results of a page that is still loading.", "parameters": {"type": "object", "properties": {}}}}, {"type": "function", "function": {"name": "status", "description": "Once you have completed the work required to fulfill an instruction, report your status by calling this function with 'successful'. If you find that a task is impossible to complete,  call this with 'infeasible' after finding that information.", "parameters": {"type": "object", "properties": {"goal_status": {"type": "string", "enum": ["successful", "infeasible"], "description": "The status of the completion of a instruction, either 'successful' or 'infeasible', called to conclude an episode."}}, "required": ["goal_status"]}}}]