diff --git a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx index 2f1311b4..df13f0f7 100644 --- a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx +++ b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx @@ -44,6 +44,7 @@ import { import { ExampleCasePill } from "./ExampleCasePill"; import { Input } from "@/components/ui/input"; import { ProxySelector } from "@/components/ProxySelector"; +import { Switch } from "@/components/ui/switch"; function createTemplateTaskFromTaskGenerationParameters( values: TaskGenerationApiResponse, @@ -150,6 +151,8 @@ function PromptBox() { const [proxyLocation, setProxyLocation] = useState( ProxyLocation.Residential, ); + const [publishWorkflow, setPublishWorkflow] = useState(false); + const [totpIdentifier, setTotpIdentifier] = useState(""); const [showAdvancedSettings, setShowAdvancedSettings] = useState(false); const startObserverCruiseMutation = useMutation({ @@ -161,6 +164,8 @@ function PromptBox() { user_prompt: prompt, webhook_callback_url: webhookCallbackUrl, proxy_location: proxyLocation, + totp_identifier: totpIdentifier, + publish_workflow: publishWorkflow, }, ); }, @@ -336,7 +341,7 @@ function PromptBox() {
Advanced Settings
-
+
Webhook Callback URL
The URL of a webhook endpoint to send the extracted @@ -351,7 +356,7 @@ function PromptBox() { />
-
+
Proxy Location
Route Skyvern through one of our available proxies. @@ -362,6 +367,34 @@ function PromptBox() { onChange={setProxyLocation} />
+
+
+
2FA Identifier
+
+ The identifier for a 2FA code for this task. +
+
+ { + setTotpIdentifier(event.target.value); + }} + /> +
+
+
+
Publish Workflow
+
+ Whether to create a workflow alongside this task run. +
+
+ { + setPublishWorkflow(Boolean(checked)); + }} + /> +
) : null}