Skip to content

Automate browser based workflows with AI

shu/update v2 prompt (#2271)

Shuchang Zheng4803baff706f
diff --git a/skyvern/services/task_v2_service.py b/skyvern/services/task_v2_service.py
index 1d29aaca1..18f60cbec 100644
--- a/skyvern/services/task_v2_service.py
+++ b/skyvern/services/task_v2_service.py
@@ -63,9 +63,11 @@ DEFAULT_WORKFLOW_TITLE = "New Workflow"
RANDOM_STRING_POOL = string.ascii_letters + string.digits
DEFAULT_MAX_ITERATIONS = 10
-MINI_GOAL_TEMPLATE = """Achieve the following mini goal and once it's achieved, complete: {mini_goal}
+MINI_GOAL_TEMPLATE = """Achieve the following mini goal and once it's achieved, complete:
+```{mini_goal}```
-This mini goal is part of the big goal the user wants to achieve and use the big goal as context to achieve the mini goal: {main_goal}"""
+This mini goal is part of the big goal the user wants to achieve and use the big goal as context to achieve the mini goal:
+```{main_goal}```"""
def _generate_data_extraction_schema_for_loop(loop_values_key: str) -> dict: