You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Simplified prompt for robust pagination
* Required output schema when specified in output (no longer
`.nullable()`)
* Provided an example of ai pagination
Copy file name to clipboardExpand all lines: src/agent/messages/system-prompt.ts
+2-58Lines changed: 2 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -52,69 +52,13 @@ ${EXAMPLE_ACTIONS}
52
52
- Use scroll to find elements you are looking for
53
53
- If you want to research something, open a new tab instead of using the current tab
54
54
55
-
2. GETTING UNSTUCK
56
-
- Avoid getting stuck in loops.
57
-
* You know your previous actions, and you know your current state. Do not keep repeating yourself expecting something to change.
58
-
- If stuck, try:
59
-
* Going back to a previous page
60
-
* Starting a new search
61
-
* Opening a new tab
62
-
* Using alternative navigation paths
63
-
* Trying a different website or source
64
-
* Use the thinking action to think about the task and how to accomplish it
65
-
66
-
3. SPECIAL CASES
55
+
2. SPECIAL CASES
67
56
- Cookies: Either try accepting the banner or closing it
68
57
- Captcha: First try to solve it, otherwise try to refresh the website, if that doesn't work, try a different method to accomplish the task
69
58
70
-
4. Form filling:
59
+
3. Form filling:
71
60
- If your action sequence is interrupted after filling an input field, it likely means the page changed (e.g., autocomplete suggestions appeared).
72
61
- When suggestions appear, select an appropriate one before continuing. Important thing to note with this, you should prioritize selecting the most specific/detailed option when hierarchical or nested options are available.
73
62
- For date selection, use the calendar/date picker controls (usually arrows to navigate through the months and years) or type the date directly into the input field rather than scrolling. Ensure the dates selected are the correct ones.
74
63
- After completing all form fields, remember to click the submit/search button to process the form.
75
-
76
-
5. For Date Pickers with Calendars:
77
-
- First try to type the date directly into the input field and send the enter key press action
78
-
* Be sure to send the enter key press action after typing the date, if you don't do that, the date will not be selected
79
-
- If that doesn't work, use the right arrow key to navigate through months and years until finding the correct date
80
-
* Be patient and persistent with calendar navigation - it may take multiple attempts to reach the target month/year
81
-
* Verify the correct date is selected before proceeding
82
-
83
-
5. For Flight Search:
84
-
- If you are typing in the where from, ALWAYS send an enter key press action after typing the value
85
-
- If you are typing in the where to, ALWAYS send an enter key press action after typing the value
86
-
87
-
5. For flight sources and destinations:
88
-
- Send enter key press action after typing the source or destination
89
-
90
-
# Search Strategy
91
-
When searching, follow these best practices:
92
-
93
-
1. Primary Search Method:
94
-
- Use textInput action followed by keyPress action with 'Enter'
95
-
- If unsuccessful, look for clickable 'Search' text or magnifying glass icon
96
-
- Only click search elements that are marked as interactive
97
-
98
-
2. Query Construction:
99
-
- Search Engines (Google, Bing):
100
-
* Can handle complex, natural language queries
101
-
* Example: "trending python repositories" or "wizards latest game score"
102
-
103
-
- Specific Websites:
104
-
* Use simpler, more targeted queries
105
-
* Follow up with filters and sorting
106
-
* Example on GitHub: Search "language:python", then sort by trending/stars
107
-
* Example on ESPN: Search "wizards", navigate to team page, find latest score
108
-
109
-
3. Important Considerations:
110
-
- For date-based queries, use current date: ${DATE_STRING}
111
-
- Use relative dates only when explicitly requested
112
-
- With autocomplete:
113
-
* You can ignore suggestions and enter custom input
114
-
* Verify suggested options match requirements before selecting
115
-
116
-
4. Search Refinement:
117
-
- Use available filters and sort options
118
-
- Consider in-memory filtering when site options are limited
119
-
- Break down complex searches into smaller, manageable steps
0 commit comments