Skip to content

Automate browser based workflows with AI

feat(SKY-9150): add Workflow Orchestrators integration category (#5662)

Aaron Pereze14d9af2e24d
diff --git a/skyvern-frontend/src/api/types.ts b/skyvern-frontend/src/api/types.ts
index fe9190e61..3d0dcd519 100644
--- a/skyvern-frontend/src/api/types.ts
+++ b/skyvern-frontend/src/api/types.ts
@@ -577,6 +577,7 @@ export type WorkflowRunStatusApiResponse = {
parameters: Record<string, unknown>;
screenshot_urls: Array<string> | null;
recording_url: string | null;
+ recording_urls: Array<string> | null;
outputs: Record<string, unknown> | null;
failure_reason: string | null;
failure_category: Array<FailureCategory> | null;
@@ -608,6 +609,7 @@ export type WorkflowRunStatusApiResponseWithWorkflow = {
parameters: Record<string, unknown>;
screenshot_urls: Array<string> | null;
recording_url: string | null;
+ recording_urls: Array<string> | null;
outputs: Record<string, unknown> | null;
failure_reason: string | null;
failure_category: Array<FailureCategory> | null;
diff --git a/skyvern-frontend/src/components/icons/MakeIcon.tsx b/skyvern-frontend/src/components/icons/MakeIcon.tsx
new file mode 100644
index 000000000..789e42ebc
--- /dev/null
+++ b/skyvern-frontend/src/components/icons/MakeIcon.tsx
@@ -0,0 +1,28 @@
+type Props = {
+ className?: string;
+};
+
+// Placeholder icon - replace with official asset before setting status to live.
+function MakeIcon({ className }: Props) {
+ return (
+ <svg
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ className={className}
+ >
+ <rect width="24" height="24" rx="5" fill="#6D00CC" />
+ <path d="M7 6L9 18H7L5 6H7Z" fill="white" />
+ <path d="M11 6L13 18H11L9 6H11Z" fill="white" fillOpacity="0.85" />
+ <path
+ d="M16.5 6L19 12L16.5 18H14.5L17 12L14.5 6H16.5Z"
+ fill="white"
+ fillOpacity="0.7"
+ />
+ </svg>
+ );
+}
+
+export { MakeIcon };
diff --git a/skyvern-frontend/src/components/icons/N8nIcon.tsx b/skyvern-frontend/src/components/icons/N8nIcon.tsx
new file mode 100644
index 000000000..ecaf6937e
--- /dev/null
+++ b/skyvern-frontend/src/components/icons/N8nIcon.tsx
@@ -0,0 +1,31 @@
+type Props = {
+ className?: string;
+};
+
+// Placeholder icon - replace with official asset before setting status to live.
+function N8nIcon({ className }: Props) {
+ return (
+ <svg
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ className={className}
+ >
+ <rect width="24" height="24" rx="5" fill="#101330" />
+ <circle cx="6.25" cy="12" r="1.75" fill="#EA4B71" />
+ <circle cx="12" cy="7.5" r="1.75" fill="#EA4B71" />
+ <circle cx="12" cy="16.5" r="1.75" fill="#EA4B71" />
+ <circle cx="17.75" cy="12" r="1.75" fill="#EA4B71" />
+ <path
+ d="M6.25 12L12 7.5M6.25 12L12 16.5M12 7.5L17.75 12M12 16.5L17.75 12"
+ stroke="#EA4B71"
+ strokeWidth="1.25"
+ strokeLinecap="round"
+ />
+ </svg>
+ );
+}
+
+export { N8nIcon };
diff --git a/skyvern-frontend/src/components/icons/WorkatoIcon.tsx b/skyvern-frontend/src/components/icons/WorkatoIcon.tsx
new file mode 100644
index 000000000..1587e8c91
--- /dev/null
+++ b/skyvern-frontend/src/components/icons/WorkatoIcon.tsx
@@ -0,0 +1,23 @@
+type Props = {
+ className?: string;
+};
+
+// Placeholder icon - replace with official asset before setting status to live.
+function WorkatoIcon({ className }: Props) {
+ return (
+ <svg
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ className={className}
+ >
+ <rect width="24" height="24" rx="5" fill="#F05A28" />
+ <circle cx="9" cy="12" r="3" fill="white" />
+ <circle cx="15" cy="12" r="3" fill="white" fillOpacity="0.8" />
+ </svg>
+ );
+}
+
+export { WorkatoIcon };
diff --git a/skyvern-frontend/src/components/icons/ZapierIcon.tsx b/skyvern-frontend/src/components/icons/ZapierIcon.tsx
new file mode 100644
index 000000000..bfa718f1c
--- /dev/null
+++ b/skyvern-frontend/src/components/icons/ZapierIcon.tsx
@@ -0,0 +1,25 @@
+type Props = {
+ className?: string;
+};
+
+// Placeholder icon - replace with official asset before setting status to live.
+function ZapierIcon({ className }: Props) {
+ return (
+ <svg
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ className={className}
+ >
+ <rect width="24" height="24" rx="5" fill="#FF4A00" />
+ <path
+ d="M12 5.5L13.05 9.4L17 8.4L14.85 11.9L17 15.4L13.05 14.4L12 18.3L10.95 14.4L7 15.4L9.15 11.9L7 8.4L10.95 9.4L12 5.5Z"
+ fill="white"
+ />
+ </svg>
+ );
+}
+
+export { ZapierIcon };
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx
index aa5eb45f1..ad8ba6be6 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx
@@ -2,33 +2,72 @@ import { usePostHog } from "posthog-js/react";
import { useWorkflowRunWithWorkflowQuery } from "../hooks/useWorkflowRunWithWorkflowQuery";
import { artifactApiBaseUrl } from "@/util/env";
+function resolveUrl(url: string): string {
+ if (url.startsWith("file://")) {
+ return `${artifactApiBaseUrl}/artifact/recording?path=${url.slice(7)}`;
+ }
+ return url;
+}
+
function WorkflowRunRecording() {
const postHog = usePostHog();
const { data: workflowRun } = useWorkflowRunWithWorkflowQuery();
- let recordingURL = workflowRun?.recording_url;
- if (recordingURL?.startsWith("file://")) {
- recordingURL = `${artifactApiBaseUrl}/artifact/recording?path=${recordingURL.slice(7)}`;
+
+ const rawUrls =
+ workflowRun?.recording_urls && workflowRun.recording_urls.length > 0
+ ? workflowRun.recording_urls
+ : workflowRun?.recording_url
+ ? [workflowRun.recording_url]
+ : [];
+ const recordingUrls = rawUrls.map(resolveUrl);
+
+ if (!workflowRun || recordingUrls.length === 0) {
+ return <div>No recording available for this workflow</div>;
}
- function handlePlay() {
- if (!workflowRun) {
- return;
- }
+ const run = workflowRun;
+
+ function handlePlay(index: number) {
postHog.capture("run.recording.viewed", {
- org_id: workflowRun.workflow.organization_id,
- run_id: workflowRun.workflow_run_id,
+ org_id: run.workflow.organization_id,
+ run_id: run.workflow_run_id,
+ recording_index: index,
+ recording_count: recordingUrls.length,
});
}
- return recordingURL ? (
- <video
- src={recordingURL}
- controls
- className="w-full rounded-md"
- onPlay={handlePlay}
- />
- ) : (
- <div>No recording available for this workflow</div>
+ if (recordingUrls.length === 1) {
+ return (
+ <video
+ src={recordingUrls[0]}
+ controls
+ preload="metadata"
+ className="w-full rounded-md"
+ onPlay={() => handlePlay(0)}
+ />
+ );
+ }
+
+ return (
+ <div className="flex flex-col gap-4">
+ {recordingUrls.map((url, index) => (
+ <div
+ key={index} // presigned URLs change on refetch; list order is stable
+ className="flex flex-col gap-2"
+ >
+ <div className="text-sm text-slate-400">
+ Recording {index + 1} of {recordingUrls.length}
+ </div>
+ <video
+ src={url}
+ controls
+ preload="metadata"
+ className="w-full rounded-md"
+ onPlay={() => handlePlay(index)}
+ />
+ </div>
+ ))}
+ </div>
);
}