From 6f4e896025373f7e8b7452aa94a8819b7085d483 Mon Sep 17 00:00:00 2001 From: Kerem Yilmaz Date: Fri, 3 May 2024 00:47:32 -0700 Subject: [PATCH] Add context tree to extract information (#253) --- skyvern/forge/prompts/skyvern/extract-information.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/skyvern/forge/prompts/skyvern/extract-information.j2 b/skyvern/forge/prompts/skyvern/extract-information.j2 index 2d274dbf..9e6fd311 100644 --- a/skyvern/forge/prompts/skyvern/extract-information.j2 +++ b/skyvern/forge/prompts/skyvern/extract-information.j2 @@ -15,6 +15,11 @@ User Data Extraction Goal: {{ data_extraction_goal }} Use the error codes and their descriptions to return errors in the output, do not return any error that's not defined by the user. Don't return any outputs if the schema doesn't specify an error related field. Here are the descriptions defined by the user: {{ error_code_mapping_str }} {% endif %} +Clickable elements from `{{ current_url }}`: +``` +{{ elements }} +``` + Current URL: {{ current_url }} Text extracted from the webpage: {{ extracted_text }}