Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Split AI Validation and Human Interaction blocks in frontend (#4658)
Suchintance372cfdb832
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/HumanInteractionNode/HumanInteractionNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/HumanInteractionNode/HumanInteractionNode.tsxindex 54139c78c..59225219a 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/HumanInteractionNode/HumanInteractionNode.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/HumanInteractionNode/HumanInteractionNode.tsx@@ -84,17 +84,6 @@ function HumanInteractionNode({nodeId={id}totpIdentifier={null}totpUrl={null}- transmutations={{- blockTitle: "Validation",- self: "human",- others: [- {- label: "agent",- reason: "Convert to automated agent validation",- nodeName: "validation",- },- ],- }}type={type}/><divdiff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/ValidationNode/ValidationNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/ValidationNode/ValidationNode.tsxindex 25c01ef2c..67a5bc68c 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/ValidationNode/ValidationNode.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ValidationNode/ValidationNode.tsx@@ -96,17 +96,6 @@ function ValidationNode({ id, data, type }: NodeProps<ValidationNode>) {nodeId={id}totpIdentifier={null}totpUrl={null}- transmutations={{- blockTitle: "Validation",- self: "agent",- others: [- {- label: "human",- reason: "Convert to human validation",- nodeName: "human_interaction",- },- ],- }}type={type}/><div className="space-y-2">diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/types.tsindex 3eb9ba111..1917c9672 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/types.ts+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/types.ts@@ -59,7 +59,7 @@ export const workflowBlockTitle: {text_prompt: "Text Prompt",upload_to_s3: "Upload To S3",file_upload: "Cloud Storage",- validation: "Validation",+ validation: "AI Validation",human_interaction: "Human Interaction",wait: "Wait",pdf_parser: "PDF Parser",diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsxindex 77075d9a1..20e058a8a 100644--- a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx@@ -84,24 +84,20 @@ const nodeLibraryItems: Array<{className="size-6"/>),- title: "AI or Human Validation",- description: "Have an AI or Human validate the state of the screen",+ title: "AI Validation Block",+ description: "Have an AI validate the state of the screen",+ },+ {+ nodeType: "human_interaction",+ icon: (+ <WorkflowBlockIcon+ workflowBlockType={WorkflowBlockTypes.HumanInteraction}+ className="size-6"+ />+ ),+ title: "Human Interaction Block",+ description: "Pause workflow for human review and approval",},- /**- * The Human Interaction block can be had via a transmutation of the- * Validation block.- */- // {- // nodeType: "human_interaction",- // icon: (- // <WorkflowBlockIcon- // workflowBlockType={WorkflowBlockTypes.HumanInteraction}- // className="size-6"- // />- // ),- // title: "Human Interaction Block",- // description: "Validate via human interaction",- // },// {// nodeType: "task",// icon: (