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
Browse filesBrowse the repository at this point in the historyBrowse files
SentienceDEV
committed
fix: planner intent specificity, vision auto-type on CLICK_XY, exempt CLICK from pre-verification
- Planner prompt: instruct specific intent with label/placeholder context
- Vision TYPE: CLICK_XY returns field coords, executor auto-types input after click
- Pre-verification: exempt CLICK actions from skip (Next/Submit buttons)
- Vision prompt: ask for CLICK_XY on correct field by label, not two-step action
Copy file name to clipboardExpand all lines: src/agents/planner-executor/prompts.ts
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ export function buildStepwisePlannerPrompt(
58
58
59
59
Actions:
60
60
- NAVIGATE: Go directly to a URL when the next destination is known. Set "target" to the URL.
61
-
- CLICK: Click an element. Set "intent" to element type/role. Set "input" to EXACT text from elements list.
61
+
- CLICK: Click an element. Set "intent" to describe the SPECIFIC element (include label, placeholder, or nearby text, e.g. "email textbox", "display name field", "Next button", NOT just "textbox" or "button"). Set "input" to EXACT text from elements list.
62
62
- TYPE_AND_SUBMIT: Type text into a search box and submit. Set "input" to the SEARCH QUERY from the goal (NOT the element label).
63
63
- SCROLL: Scroll page. Set "direction" to "up" or "down".
64
64
- WAIT: Wait for content to appear when a follow-up verification is needed.
@@ -104,7 +104,9 @@ RULES:
104
104
8. Output ONLY JSON - no <think> tags, no markdown, no prose
105
105
9. Do NOT output <think> or any reasoning
106
106
10. Do NOT return DONE until ALL parts of the goal are complete
107
-
11. Never copy example URLs from these instructions. Only NAVIGATE to a URL from the user's task, the current page, or a visible element.`;
107
+
11. Never copy example URLs from these instructions. Only NAVIGATE to a URL from the user's task, the current page, or a visible element.
108
+
12. For multi-step forms: process each field as a separate step, then CLICK the Next/Submit button as a separate step.
109
+
13. "intent" must be SPECIFIC: describe the element with its label or context (e.g., "email field", "plan dropdown", "Next button on step 2")`;
108
110
109
111
// Inject extraction-specific guidance when the goal is an extraction task
0 commit comments