Skip to content

Automate browser based workflows with AI

feat(SKY-11993): warn that PDF Fill works best on fillable PDFs (#7158)

Suchintanf920d193ebbc
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/PdfFillNode/PdfFillEditor.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/PdfFillNode/PdfFillEditor.tsx
index f723dca0b..62ce6ea25 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/PdfFillNode/PdfFillEditor.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/PdfFillNode/PdfFillEditor.tsx
@@ -1,4 +1,4 @@
-import { PlusIcon } from "@radix-ui/react-icons";
+import { ExclamationTriangleIcon, PlusIcon } from "@radix-ui/react-icons";
import { useEdges, useNodes, useNodesData } from "@xyflow/react";
import { useCallback } from "react";
@@ -82,6 +82,14 @@ function PdfFillEditorBody({
return (
<div data-testid="pdf-fill-block-form" className="space-y-4">
+ <p className="flex items-start gap-1.5 text-xs text-amber-400">
+ <ExclamationTriangleIcon className="mt-0.5 size-3 shrink-0" />
+ <span>
+ Works best on fillable PDFs with form fields. Unstructured PDFs
+ (scanned or flat documents) are filled best-effort and may be less
+ reliable.
+ </span>
+ </p>
<div className="space-y-2">
<div className="flex gap-2">
<Label className="text-xs text-slate-300">File URL</Label>