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.