From 50dc41c7cc9477a25d1a2e008c45995c8d0a22b6 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Sun, 13 Apr 2025 02:40:11 -0700 Subject: [PATCH] update generate-task prompt (#2148) --- skyvern/forge/prompts/skyvern/generate-task.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skyvern/forge/prompts/skyvern/generate-task.j2 b/skyvern/forge/prompts/skyvern/generate-task.j2 index 82f444bc..72362959 100644 --- a/skyvern/forge/prompts/skyvern/generate-task.j2 +++ b/skyvern/forge/prompts/skyvern/generate-task.j2 @@ -8,7 +8,7 @@ navigation_goal_reasoning: str. This is a required field. The reason why navigat is_navigation_goal_required: bool. This is a required field. Based on the navigation_goal_reasoning, whether the navigation goal is required to achieve the task. navigation_goal: str. This is an optional field. If is_navigation_goal_required is true, then this field should be provided. Otherwise, provide the value null. The value should be a string that we can use as an input to a Large Language Modal. It needs to tell the agent what actions need to be taken to achieve the task. It needs to define a single goal. If this field is provided, you must include explicit completion criteria. Provide completion criteria by completing the sentence: "COMPLETE when...". You can define guardrails that could help the agent from taking certain actions or getting derailed. -data_extraction_reasoning: str. This is a required field. Think step by step. Should any information be extracted given the user goal? Is data extraction is needed to achieve the goal. It's needed when the agent needs to extract data from the website to achieve the goal. If the user is searching for something, looking for information or specifically trying to extract information along side the goal, consider it an intention to extract information. Phrases like "find something", "show me something", "search something", "return something" and so on indicate the intention to extract information. +data_extraction_reasoning: str. This is a required field. Think step by step. Is the user trying to retrieve any information from the website? Should any information be extracted given the user goal? Is data extraction required to achieve the goal? If the user is searching for something, looking for information or specifically trying to extract information along side the goal, consider it an intention to extract information. Phrases like "find something", "show me something", "search something", "return something" and so on indicate the intention to extract information. require_extraction: bool. This is a required field. Based on data_extraction_reasoning, is data extraction required to achieve the goal? data_extraction_goal: str. This is an optional field. The value should be a string that we can use as an input to a Large Language Modal. It needs to tell the agent the goal in terms of extracting data. It needs to be a single goal. navigation_payload: json. This is an optional field. The value should be JSON. Use this field if there is any information for the agent to be able to complete the task such as values that can help fill a form, parameters for queries and so on.