From fa8afb2cab463319a6d9d0f57dcf544534cdc618 Mon Sep 17 00:00:00 2001 From: Jonathan Dobson Date: Tue, 2 Sep 2025 16:50:50 -0400 Subject: [PATCH] add generate_script to v2 task settings (#3345) --- .../src/routes/tasks/create/PromptBox.tsx | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx index 57a18d1d..90ee5912 100644 --- a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx +++ b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx @@ -48,6 +48,7 @@ import { MAX_SCREENSHOT_SCROLLS_DEFAULT, MAX_STEPS_DEFAULT, } from "@/routes/workflows/editor/nodes/Taskv2Node/types"; +import { OrgWalled } from "@/components/Orgwalled"; function createTemplateTaskFromTaskGenerationParameters( values: TaskGenerationApiResponse, @@ -156,6 +157,7 @@ function PromptBox() { ); const [browserSessionId, setBrowserSessionId] = useState(null); const [cdpAddress, setCdpAddress] = useState(null); + const [generateScript, setGenerateScript] = useState(false); const [publishWorkflow, setPublishWorkflow] = useState(false); const [totpIdentifier, setTotpIdentifier] = useState(""); const [maxStepsOverride, setMaxStepsOverride] = useState(null); @@ -178,7 +180,8 @@ function PromptBox() { browser_session_id: browserSessionId, browser_address: cdpAddress, totp_identifier: totpIdentifier, - publish_workflow: publishWorkflow, + generate_script: generateScript, + publish_workflow: publishWorkflow || generateScript, max_screenshot_scrolls: maxScreenshotScrolls, extracted_information_schema: dataSchema ? (() => { @@ -468,11 +471,29 @@ function PromptBox() { /> + +
+
+
Generate Script
+
+ Whether to generate scripts for this task run (on + success). +
+
+ { + setGenerateScript(Boolean(checked)); + }} + /> +
+
Publish Workflow
Whether to create a workflow alongside this task run. + Will also be created if "Generate Scripts" is true.