From ff2b297c98102952bf99898da7bc8ec1dd387721 Mon Sep 17 00:00:00 2001 From: LawyZheng Date: Fri, 15 Nov 2024 22:50:19 +0800 Subject: [PATCH] update prompt to avoid taking actions on disabled element (#1202) --- skyvern/forge/prompts/skyvern/extract-action.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skyvern/forge/prompts/skyvern/extract-action.j2 b/skyvern/forge/prompts/skyvern/extract-action.j2 index 156b14a9..011be699 100644 --- a/skyvern/forge/prompts/skyvern/extract-action.j2 +++ b/skyvern/forge/prompts/skyvern/extract-action.j2 @@ -3,7 +3,7 @@ Include only the elements that are relevant to the user goal, without altering o Accurately interpret and understand the functional significance of SVG elements based on their shapes and context within the webpage. Use the user details to fill in necessary values. Always satisfy required fields if the field isn't already filled in. Don't return any action for the same field, if this field is already filled in and the value is the same as the one you would have filled in. MAKE SURE YOU OUTPUT VALID JSON. No text before or after JSON, no trailing commas, no comments (//), no unnecessary quotes, etc. -Each interactable element is tagged with an ID. +Each interactable element is tagged with an ID. Avoid taking action on a disabled element when there is an alternative action available. If you see any information in red in the page screenshot, this means a condition wasn't satisfied. prioritize actions with the red information. If you see a popup in the page screenshot, prioritize actions on the popup.