instruction: Open the Pizza Hut app and apply a coupon code of FREEPIZZA.

previous_actions: {"name": "open_app", "parameters": {"app_name": "Pizza Hut"}}
{"name": "wait", "parameters": {}}
{"name": "click", "parameters": {"x": 540, "y": 2234}}

active_application: Pizza Hut

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: 322
        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: 322
        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: 148
        bottom: 128
      }
      class_name: "android.widget.TextView"
      content_description: "10:03 AM"
      text: "10:03"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 148
        top: 1
        right: 322
        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: 148
        top: 1
        right: 322
        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: 148
        top: 1
        right: 206
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "Snapchat notification: Kavita Nayak: Kavita Nayak"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 206
        top: 1
        right: 264
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "Weather notification: 32°"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 264
        top: 1
        right: 322
        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: 566
  title: "Pizza Hut"
  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 {
        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.view.ViewGroup"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 275
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 275
        right: 1080
        bottom: 296
      }
      class_name: "android.view.View"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 359
        right: 1038
        bottom: 551
      }
      class_name: "android.view.ViewGroup"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 593
        right: 1080
        bottom: 2337
      }
      class_name: "androidx.recyclerview.widget.RecyclerView"
      is_focusable: true
      is_scrollable: true
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 275
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 359
        right: 460
        bottom: 409
      }
      class_name: "android.widget.TextView"
      text: "Enter coupon code here"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 430
        right: 1038
        bottom: 551
      }
      class_name: "android.widget.EditText"
      hint_text: "e.g. ABC1234"
      text: "e.g. ABC1234"
      is_clickable: true
      is_editable: true
      is_focusable: true
      is_long_clickable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 807
        top: 430
        right: 1038
        bottom: 551
      }
      class_name: "android.widget.Button"
      text: "Apply"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 615
        right: 1058
        bottom: 1219
      }
      class_name: "android.widget.FrameLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 1241
        right: 1058
        bottom: 1845
      }
      class_name: "android.widget.FrameLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 1867
        right: 1058
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      is_clickable: true
      is_focusable: true
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 275
      }
      class_name: "android.widget.TextView"
      text: "Offers for you"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 933
        top: 128
        right: 1080
        bottom: 275
      }
      class_name: "android.widget.FrameLayout"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 615
        right: 1058
        bottom: 1219
      }
      class_name: "android.view.ViewGroup"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 1241
        right: 1058
        bottom: 1845
      }
      class_name: "android.view.ViewGroup"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 1867
        right: 1058
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        left: 943
        top: 138
        right: 1069
        bottom: 264
      }
      class_name: "android.widget.ImageView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 615
        right: 1058
        bottom: 1014
      }
      class_name: "android.widget.ImageView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 1014
        right: 1058
        bottom: 1116
      }
      class_name: "android.widget.TextView"
      text: "Free Personal Margherita Pizza on bill value of 249"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 1116
        right: 1058
        bottom: 1187
      }
      class_name: "android.widget.TextView"
      text: "Valid on Ala carte orders, not applicable on deals"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 1241
        right: 1058
        bottom: 1640
      }
      class_name: "android.widget.ImageView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 1640
        right: 1058
        bottom: 1742
      }
      class_name: "android.widget.TextView"
      text: "25% Off Upto Rs.300 on order above Rs.600"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 1742
        right: 1058
        bottom: 1813
      }
      class_name: "android.widget.TextView"
      text: "Valid on Ala carte orders, not applicable on deals"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 1867
        right: 1058
        bottom: 2266
      }
      class_name: "android.widget.ImageView"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 2266
        right: 1058
        bottom: 2337
      }
      class_name: "android.widget.TextView"
      text: "Rs. 125 Off on bill value above Rs.500"
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 22
        top: 2368
        right: 1058
        bottom: 2337
      }
      class_name: "android.widget.TextView"
      text: "Valid on Ala carte orders, not applicable on deals"
      depth: 12
    }
  }
}


assistant: !FUNCTIONCALL{"name": "click", "parameters": {"x": 540, "y": 490}}