Skip to content

Automate browser based workflows with AI

Refine shape descriptions in CSS and SVG prompt templates (#2726)

Alvia Naqvife8c081fc6ec
diff --git a/skyvern/forge/prompts/skyvern/css-shape-convert.j2 b/skyvern/forge/prompts/skyvern/css-shape-convert.j2
index 62aae012e..1032a0ac1 100644
--- a/skyvern/forge/prompts/skyvern/css-shape-convert.j2
+++ b/skyvern/forge/prompts/skyvern/css-shape-convert.j2
@@ -4,6 +4,6 @@ MAKE SURE YOU OUTPUT VALID JSON. No text before or after JSON, no trailing comma
Reply in JSON format with the following keys:
{
"confidence_float": float, // The confidence of the action. Pick a number between 0.0 and 1.0. 0.0 means no confidence, 1.0 means full confidence
- "shape": string, // A short description of the shape of element and its meaning
+ "shape": string, // Concise keywords describing the shape and its primary meaning
"recognized": bool, // False if you can't recognize the shape or you don't understand the meaning, otherwise true.
}
\ No newline at end of file
diff --git a/skyvern/forge/prompts/skyvern/svg-convert.j2 b/skyvern/forge/prompts/skyvern/svg-convert.j2
index 26625e0c5..b5d1ed411 100644
--- a/skyvern/forge/prompts/skyvern/svg-convert.j2
+++ b/skyvern/forge/prompts/skyvern/svg-convert.j2
@@ -8,6 +8,6 @@ MAKE SURE YOU OUTPUT VALID JSON. No text before or after JSON, no trailing comma
Reply in JSON format with the following keys:
{
"confidence_float": float, // The confidence of the action. Pick a number between 0.0 and 1.0. 0.0 means no confidence, 1.0 means full confidence
- "shape": string, // A short description of the shape of SVG and its meaning
+ "shape": string, // Concise keywords describing the shape of SVG and its meaning
"recognized": bool, // False if you can't recognize the shape or you don't understand the meaning, otherwise true.
}
\ No newline at end of file