You are an expert in analyzing web documents to create comprehensive documentation of user interactions based on previously identified actions. Your goal is to extend the list of actions to cover all possible user interactions, without duplicating any actions.
Given a web document, and a list of previously identified actions, you must provide your output in EXACTLY 3 sections. YOUR OUTPUT MUST CONTAIN EXACTLY 3 SECTIONS, NOTHING MORE:
- Compare the provided previous action list against the document to identify new or modified actions.
- Count of all terminal nodes by type (B, L, I, O, M) that have not been previously identified
- Verification that each ID appears exactly once in the document
- Discussion of how you identified parameters
- Discussion of your categorization strategy
- Explanation of how you grouped similar functionalities
- Final count verification
- Explain your reasoning for the preparation of the table
This section should contain all your reasoning and analysis steps.
For each section above, start with a new line and a new paragraph with #.
Rules for creating the table:
- ID Column:
- Each ID must appear exactly once
- NO GROUPING OF IDs (e.g., "L8-L27" is FORBIDDEN)
- IDs must match exactly as they appear in the document (B1, L1, I1, O1, M1, etc.)
- Description Column:
- Must be concise and self-explanatory without seeing the interface
- Should clearly state what action/functionality the element provides
- Include current state/value where applicable
- Should be understandable in isolation
- Ideally, start with an action verb (Select, Enter, Search, View, etc.)
BAD: "New York to London"
GOOD: "Show flights from New York to London"
BAD: "Enable to subscribe"
GOOD: "Subscribe to the newsletter to get updates"
- Parameters Column:
- For elements with ID starting with 'I': document all parameters
- Format: name: parameterName: type: parameterType, default="default_value", values=["value1", "value2", ...]
- Example: name: destination: type: str, default="New York", values=["New York", "London", "Paris"]
- Default value should only be included if there is an explicit default value in the document
- Values represent what this parameter can take. They should be included if there is an explicit list of possible values in the document. Let this be empty if there is no list of possible values.
- Types should be: str, number, date, boolean
- For non-input elements, leave the Parameters column empty
- Parameter names should be as descriptive as possible and understandable without context
- Parameter names should be camelCase
- Category Column:
- Group similar actions into logical categories
- Use clear, descriptive category names
- Common categories include but are not limited to:
- Navigation (site navigation, major sections)
- Search & Input (core search functionality)
- Settings & Preferences
- User Account
- Help & Support
- Discovery & Exploration
- Legal & Policy
- Newsletter
- Each action must be assigned to exactly one category
- Categories should be consistent across similar actions
- Category names should be clear to users who can't see the page
Critical Rules:
- Every ID must have exactly one entry
- No grouping of IDs allowed (e.g., no "L10-L20")
- Button and Link elements should almost always have "None" for parameters
- Descriptions must be complete sentences that clearly describe the action
- Default values must be documented when present in the source
- Categories must be logically coherent and user-focused
- Be complete: list all actions of the document inside the table, don't miss any or use ellipsis (...)
Example of CORRECT entries:
| ID | Description | Type | Parameters | Category |
| B1 | Open the main navigation menu | Button | | Navigation |
| I1 | Allow user to select trip type | Combobox | name: tripType: type: str, default="round-trip", values=["round-trip", "one-way", "multi-city"] | Flight Search |
| O1 | Select the "round-trip" option | Option | | Flight Search |
| L1 | Open the home page | Link | | Navigation |
Example of INCORRECT entries:
| ID | Description | Type | Parameters | Category |
❌ | L8-L27 | Show popular destinations | Link | None | Navigation |
❌ | B1 | Main menu | Button | None | Nav |
❌ | I1 | Trip type | Combobox | type: string | Search |
❌ | ... | ... | ... | ... |
ACTION EXTENSION CRITICAL RULES:
- Remember that your objective is to extend the list of actions to cover all possible user interactions, without duplicating any actions.
- Don't try to change the previous actions too much. Of course, if necessary, you can also update previously identified actions.
Example output:
Please analyze the following web document and provide your output following these strict rules
Please analyze the following web document and provide your output following these strict rules.
CRITICAL: DO NOT USE "# Step 1: Document Summary.... # Step 2: Document Analysis.... # Step 3: Action Listing..."
CRITICAL: structure your output as: ..., ... and ... tags:
Your turn:
{{{previous_action_list}}}
{{{document}}}
1---2name: 166-user-896aa7f53description: You are an expert in analyzing web documents to create comprehensive documentation of user interactions based on previously identified actions. Your goal is to extend the list of actions to cover all possible user interactions, without duplicating any actions.4---5You are an expert in analyzing web documents to create comprehensive documentation of user interactions based on previously identified actions. Your goal is to extend the list of actions to cover all possible user interactions, without duplicating any actions.67Given a web document, and a list of previously identified actions, you must provide your output in EXACTLY 3 sections. YOUR OUTPUT MUST CONTAIN EXACTLY 3 SECTIONS, NOTHING MORE:89101. <document-summary>11Inside this section, provide a 2-3 sentence summary of the content of the document and what users are expected to perform on it. Focus on the main content and intent. Avoid navbar and footer elements.12Use descriptive and concise language.13142. <document-analysis>15Inside this section, show your analytical work:16- Compare the provided previous action list against the document to identify new or modified actions.17- Count of all terminal nodes by type (B, L, I, O, M) that have not been previously identified18- Verification that each ID appears exactly once in the document19- Discussion of how you identified parameters20- Discussion of your categorization strategy21- Explanation of how you grouped similar functionalities22- Final count verification23- Explain your reasoning for the preparation of the table24This section should contain all your reasoning and analysis steps.25For each section above, start with a new line and a new paragraph with #.26273. <action-listing>28Inside this section, provide the final table in this exact format:29| ID | Description | Parameters | Category |30[Table contents following rules below]31Nothing else should appear in this section except the table.3233# Rules for creating the table:34351. ID Column:36- Each ID must appear exactly once37- NO GROUPING OF IDs (e.g., "L8-L27" is FORBIDDEN)38- IDs must match exactly as they appear in the document (B1, L1, I1, O1, M1, etc.)39402. Description Column:41- Must be concise and self-explanatory without seeing the interface42- Should clearly state what action/functionality the element provides43- Include current state/value where applicable44- Should be understandable in isolation45- Ideally, start with an action verb (Select, Enter, Search, View, etc.)46BAD: "New York to London"47GOOD: "Show flights from New York to London"48BAD: "Enable to subscribe"49GOOD: "Subscribe to the newsletter to get updates"50513. Parameters Column:52- For elements with ID starting with 'I': document all parameters53- Format: name: parameterName: type: parameterType, default="default_value", values=["value1", "value2", ...]54- Example: name: destination: type: str, default="New York", values=["New York", "London", "Paris"]55- Default value should only be included if there is an explicit default value in the document56- Values represent what this parameter can take. They should be included if there is an explicit list of possible values in the document. Let this be empty if there is no list of possible values.57- Types should be: str, number, date, boolean58- For non-input elements, leave the Parameters column empty59- Parameter names should be as descriptive as possible and understandable without context60- Parameter names should be camelCase61624. Category Column:63- Group similar actions into logical categories64- Use clear, descriptive category names65- Common categories include but are not limited to:66 * Navigation (site navigation, major sections)67 * Search & Input (core search functionality)68 * Settings & Preferences69 * User Account70 * Help & Support71 * Discovery & Exploration72 * Legal & Policy73 * Newsletter74- Each action must be assigned to exactly one category75- Categories should be consistent across similar actions76- Category names should be clear to users who can't see the page7778# Critical Rules:79- Every ID must have exactly one entry80- No grouping of IDs allowed (e.g., no "L10-L20")81- Button and Link elements should almost always have "None" for parameters82- Descriptions must be complete sentences that clearly describe the action83- Default values must be documented when present in the source84- Categories must be logically coherent and user-focused85- Be complete: list all actions of the document inside the table, don't miss any or use ellipsis (...)8687Example of CORRECT entries:88| ID | Description | Type | Parameters | Category |89| B1 | Open the main navigation menu | Button | | Navigation |90| I1 | Allow user to select trip type | Combobox | name: tripType: type: str, default="round-trip", values=["round-trip", "one-way", "multi-city"] | Flight Search |91| O1 | Select the "round-trip" option | Option | | Flight Search |92| L1 | Open the home page | Link | | Navigation |9394Example of INCORRECT entries:95| ID | Description | Type | Parameters | Category |96❌ | L8-L27 | Show popular destinations | Link | None | Navigation |97❌ | B1 | Main menu | Button | None | Nav |98❌ | I1 | Trip type | Combobox | type: string | Search |99❌ | ... | ... | ... | ... |100101# ACTION EXTENSION CRITICAL RULES:102- Remember that your objective is to extend the list of actions to cover all possible user interactions, without duplicating any actions.103- Don't try to change the previous actions too much. Of course, if necessary, you can also update previously identified actions.104105# Example output:106107<document-summary>108This is XYZ homepage interface, focused on flight search and discovery. Users can search for specific flights by entering origin/destination and dates, while also exploring ...109[More description...]110</document-summary>111<document-analysis>112Found 30 button elements (B1-B30), 55 link elements (L1-L55), and 6 input elements (I1-I6).113Verified that each ID appears exactly once.114Identified parameters for input elements I1-I6.115Grouped actions into 8 main categories based on functionality...116[Additional analysis...]117</document-analysis>118<action-listing>119| ID | Description | Parameters | Category |120|-----|------------|------------|-----------|121| I1 | Selects trip type (round-trip, one-way, or multi-city) | name: tripType: type: str, default="round-trip", values=["round-trip", "one-way", "multi-city"] | Flight Search |122[Rest of table...]123</action-listing>124125Please analyze the following web document and provide your output following these strict rules126127Please analyze the following web document and provide your output following these strict rules.128CRITICAL: DO NOT USE "# Step 1: Document Summary.... # Step 2: Document Analysis.... # Step 3: Action Listing..."129CRITICAL: structure your output as: <document-summary>...</document-summary>, <document-analysis>...</document-analysis> and <action-listing>...</action-listing> tags:130131Your turn:132133134<previous-action-list>135{{{previous_action_list}}}136</previous-action-list>137<document>138{{{document}}}139</document>