
You are an expert in evaluating and guiding a web navigation agent. Your task is to help the agent effectively complete a given mission on a website based on the user’s intent. The agent’s goal is to navigate through the website to reach the desired state that aligns with the user’s objective.

You will analyze the next state of the webpage (OBSERVATION) after each action and determine whether the agent is successfully progressing towards the task goal. You will also assist the agent by choosing the next action if necessary, considering the dynamics of the web environment and how each state transitions.

Key Points:
1. Understand the intent:
- Identify the user’s goal (e.g., finding information, navigating to a specific page, modifying content).
- Make sure the next state of the webpage aligns with achieving that goal based on the current state and user’s intent.

2. Evaluate the Next State:
- When assessing the next state, consider how it contributes to reaching the intended goal. If the next state moves the agent closer to the user’s goal, it is evaluated positively.
- If the next state does not progress towards the goal or leads to an error, suggest alternative actions that will result in a more favorable next state.

3. State Guidance:
- If the next state shows that the agent is on the right track but hasn’t completed the task yet, recommend further actions that could bring the next state closer to the goal. Focus on guiding the agent to reach a state that reflects clear progress towards the goal.

4. Types of Tasks:
- Information Seeking: The next state must provide the specific information the user seeks (e.g., product price, reviews). If the information is unavailable, the next state should explicitly indicate that.
- Site Navigation: The next state must reflect that the agent has navigated to the exact page or item. Check if the state includes content based on the user’s intent.
- Content Modification: The next state should indicate that the requested content modification has been successfully committed (e.g., form submission, comment posting).
- General Task: Evaluate the entire process to ensure the next state reflects task completion. Stop actions should only be issued when the objective is met.

5. Common Pitfalls:
- Repetitive typing actions: Ensure that the next state does not show corrupted input due to repeated typing.
- Incomplete navigation: Ensure the agent’s next state reflects navigation to the specific item or content, not just to a general page or category.

Output Format with a Score Between 0 and 1:
Each next state will be evaluated with a score between 0 and 1, assessing how well the state moves towards the task’s completion. This score provides nuanced feedback on the state’s effectiveness.
0: The next state is a failure or leads away from the task.
Values closer to 0 (e.g., 0.1, 0.2): The next state does not contribute meaningfully but isn’t a total failure.
0.5: The next state is neutral, and the agent is maintaining its current position.
Values closer to 1 (e.g., 0.7, 0.8): The next state is helpful and moves the agent closer to the task goal.
1: The next state is optimal and is directly aligned with completing the task.

Response Format:
1. You should write your rationale providing a detailed analysis of the next state and reasoning for its score, providing a score between 0 and 1 based on how well the next state contributes to task completion.

Output Format: [Rationale] <your thought> [Score] <a value between 0 and 1>

OBJECTIVE: Find spare parts with part number 105307 and add 2 of them to cart.
PREVIOUS ACTION: ["click [273] where [273] is ''", "click [577] where [577] is 'Customer Service'", "click [10074] where [10074] is 'Need an extra part?'", "click [1351] where [1351] is 'Read more'", "click [14595] where [14595] is 'Order spare parts'", "type [15430] [105307] where [15430] is 'Spare part number'"]
CURRENT OBSERVATION:	[18619] button 'Skip to main content'
	[18632] button 'Save big and shop limited-time deals during IKEA Spring Sale online and in store. Offer valid 3/15-5/29* Save on select delivery options with IKEA Family. See Details'
	[18678] button 'Menu'
		[18710] combobox 'What are you looking for?' hasPopup: listbox required: False
	[18841] button 'Opens at 10:00am Brooklyn'
	[18848] button 'Deliver to 43235'
		[18934] button 'Search'
		[18992] button 'Products'
		[18998] button 'Marketplace'
		[19004] button 'Rooms'
		[19022] button 'Deals'
		[19536] heading 'Spare parts'
		[19544] searchbox 'Spare part number'
		[19545] button 'Clear search input'
		[19554] button 'Search spare part number'
		[19571] alertdialog '' modal: False
	[19594] button 'Back to top'
	[19608] button 'Share'
		[19638] heading 'Footer'
		[19647] heading 'Join IKEA Family'
		[19667] heading 'Join IKEA Business Network'
		[19692] heading 'Help Help'
			[19697] button 'Help'
		[19762] heading 'Shop & Learn Shop & Learn'
			[19767] button 'Shop & Learn'
		[19857] heading 'About IKEA About IKEA'
			[19862] button 'About IKEA'
		[19922] heading 'Legal Legal'
			[19927] button 'Legal'
		[20049] image 'Visa'
		[20057] image 'Mastercard'
		[20065] image 'Discover'
		[20073] image 'Amex'
		[20081] image 'IKEA credit card'
		[20089] image 'Paypal'
		[20097] image 'Apple Pay'
		[20105] image 'Union Pay'
		[20113] image 'JCB'
		[20121] image 'Diners'
		[20129] image 'IKEA gift card'
CURRENT ACTION: click [18529] where [18529] is '105307'
NEXT STATE PREIDCTION: 	[22380] button 'Skip to main content'
	[22393] button 'Save big and shop limited-time deals during IKEA Spring Sale online and in store. Offer valid 3/15-5/29* Save on select delivery options with IKEA Family. See Details'
	[22439] button 'Menu'
		[22471] combobox 'What are you looking for?' hasPopup: listbox required: False
	[22602] button 'Opens at 10:00am Brooklyn'
	[22609] button 'Deliver to 43235'
		[22695] button 'Search'
		[22753] button 'Products'
		[22759] button 'Marketplace'
		[22765] button 'Rooms'
		[22783] button 'Deals'
		[23297] heading 'Spare parts'
		[23305] searchbox 'Spare part number'
		[23306] button 'Clear search input'
		[23315] button 'Search spare part number'
			[23332] group 'Change quantity'
				[23333] option '1' selected: True
				[23335] option '2' selected: False
				[23337] option '3' selected: False
				[23339] option '4' selected: False
				[23341] option '5' selected: False
				[23343] option '6' selected: False
				[23345] option '7' selected: False
				[23347] option '8' selected: False
				[23349] option '9' selected: False
				[23351] option '10' selected: False
				[23353] option '11' selected: False
				[23355] option '12' selected: False
				[23357] option '13' selected: False
				[23359] option '14' selected: False
				[23361] option '15' selected: False
				[23363] option '16' selected: False
				[23365] option '17' selected: False
				[23367] option '18' selected: False
				[23369] option '19' selected: False
				[23371] option '20' selected: False
				[23373] option '21' selected: False
				[23375] option '22' selected: False
				[23377] option '23' selected: False
				[23379] option '24' selected: False
				[23381] option '25' selected: False
				[23383] option '26' selected: False
				[23385] option '27' selected: False
				[23387] option '28' selected: False
				[23389] option '29' selected: False
				[23391] option '30' selected: False
				[23393] option '31' selected: False
				[23395] option '32' selected: False
				[23397] option '33' selected: False
				[23399] option '34' selected: False
				[23401] option '35' selected: False
				[23403] option '36' selected: False
				[23405] option '37' selected: False
				[23407] option '38' selected: False
				[23409] option '39' selected: False
				[23411] option '40' selected: False
				[23413] option '41' selected: False
				[23415] option '42' selected: False
				[23417] option '43' selected: False
				[23419] option '44' selected: False
				[23421] option '45' selected: False
				[23423] option '46' selected: False
				[23425] option '47' selected: False
				[23427] option '48' selected: False
				[23429] option '49' selected: False
				[23431] option '50' selected: False
		[23434] button 'Add to cart'
		[23439] alertdialog '' modal: False
	[23462] button 'Back to top'
	[23476] button 'Share'
		[23506] heading 'Footer'
		[23515] heading 'Join IKEA Family'
		[23535] heading 'Join IKEA Business Network'
		[23560] heading 'Help Help'
			[23565] button 'Help'
		[23630] heading 'Shop & Learn Shop & Learn'
			[23635] button 'Shop & Learn'
		[23725] heading 'About IKEA About IKEA'
			[23730] button 'About IKEA'
		[23790] heading 'Legal Legal'
			[23795] button 'Legal'
		[23917] image 'Visa'
		[23925] image 'Mastercard'
		[23933] image 'Discover'
		[23941] image 'Amex'
		[23949] image 'IKEA credit card'
		[23957] image 'Paypal'
		[23965] image 'Apple Pay'
		[23973] image 'Union Pay'
		[23981] image 'JCB'
		[23989] image 'Diners'
		[23997] image 'IKEA gift card'
[Rationale] The next state shows that the agent successfully clicked on the part number '105307', which indicates that the agent is on the right track towards finding the specific spare part the user is looking for. The presence of the 'Add to cart' button suggests that the spare part's details have been displayed, and the user can now select the quantity they wish to purchase. The next state includes a 'Change quantity' group with an option selected for '1', indicating that the user can adjust the number of items they want to add to the cart. However, the user needs to select '2' for the desired quantity before clicking 'Add to cart'. 

Overall, the next state is very positive as it brings the user closer to completing the task of adding the spare part to the cart, with only a minor adjustment needed for quantity selection. The score of 0.78 reflects the agent's effective progress, as it indicates the next step towards achieving the objective is clear and achievable. The agent should now proceed to select '2' as the quantity and then click 'Add to cart' to complete the task. [Score] 0.78