From d26f016e104c4496fe92c6983cf9710ba1ace3ac Mon Sep 17 00:00:00 2001 From: LawyZheng Date: Fri, 18 Jul 2025 10:33:03 +0800 Subject: [PATCH] fix prompt (#2979) --- skyvern/forge/prompts/skyvern/extract-action.j2 | 4 ++-- skyvern/forge/prompts/skyvern/single-input-action.j2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/skyvern/forge/prompts/skyvern/extract-action.j2 b/skyvern/forge/prompts/skyvern/extract-action.j2 index 0cb988fc..6366105d 100644 --- a/skyvern/forge/prompts/skyvern/extract-action.j2 +++ b/skyvern/forge/prompts/skyvern/extract-action.j2 @@ -38,8 +38,8 @@ Reply in JSON format with the following keys: {% endif %} }],{% if verification_code_check %} "verification_code_reasoning": str, // Let's think step by step. Describe what you see and think if there is somewhere on the current page where you must enter the verification code now for login or any verification step. Explain why you believe a verification code needs to be entered somewhere or not. Do not imagine any place to enter the code if the code has not been sent yet. - "place_to_enter_verification_code": bool, // Whether there is a place on the current page to enter the verification code now. {% endif %} - "should_enter_verification_code": bool // Whether the user should proceed to enter the verification code + "place_to_enter_verification_code": bool, // Whether there is a place on the current page to enter the verification code now. + "should_enter_verification_code": bool // Whether the user should proceed to enter the verification code {% endif %} } Consider the action history from the last step and the screenshot together, if actions from the last step don't yield positive impact, try other actions or other action combinations. diff --git a/skyvern/forge/prompts/skyvern/single-input-action.j2 b/skyvern/forge/prompts/skyvern/single-input-action.j2 index 67a64cde..e7ff09b7 100644 --- a/skyvern/forge/prompts/skyvern/single-input-action.j2 +++ b/skyvern/forge/prompts/skyvern/single-input-action.j2 @@ -17,8 +17,8 @@ Reply in JSON format with the following keys: "text": str, // The text to input. }]{% if verification_code_check %} "verification_code_reasoning": str, // Let's think step by step. Describe what you see and think if there is somewhere on the current page where you must enter the verification code now for login or any verification step. Explain why you believe a verification code needs to be entered somewhere or not. Do not imagine any place to enter the code if the code has not been sent yet. - "place_to_enter_verification_code": bool, // Whether there is a place on the current page to enter the verification code now. {% endif %} - "should_enter_verification_code": bool // Whether the user should proceed to enter the verification code + "place_to_enter_verification_code": bool, // Whether there is a place on the current page to enter the verification code now. + "should_enter_verification_code": bool // Whether the user should proceed to enter the verification code {% endif %} } User instruction: