diff --git a/skyvern-frontend/src/routes/workflows/editor/helpContent.ts b/skyvern-frontend/src/routes/workflows/editor/helpContent.ts index ea150998..d447fbc8 100644 --- a/skyvern-frontend/src/routes/workflows/editor/helpContent.ts +++ b/skyvern-frontend/src/routes/workflows/editor/helpContent.ts @@ -91,6 +91,11 @@ export const helpTooltips = { waitInSeconds: "Specify a number for how many seconds to wait. Value must be between 0 and 300 seconds.", }, + pdfParser: { + ...baseHelpTooltipContent, + fileUrl: "The URL from which the file will be downloaded", + jsonSchema: "Specify a format for the extracted information from the file", + }, }; export const placeholders = { @@ -125,4 +130,5 @@ export const placeholders = { codeBlock: basePlaceholderContent, fileUrl: basePlaceholderContent, wait: basePlaceholderContent, + pdfParser: basePlaceholderContent, }; diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/PDFParserNode/PDFParserNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/PDFParserNode/PDFParserNode.tsx index a8c69367..cbf45743 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/PDFParserNode/PDFParserNode.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/PDFParserNode/PDFParserNode.tsx @@ -20,7 +20,7 @@ function PDFParserNode({ id, data }: NodeProps) { const deleteNodeCallback = useDeleteNodeCallback(); const [inputs, setInputs] = useState({ fileUrl: data.fileUrl, - dataSchema: data.jsonSchema, + jsonSchema: data.jsonSchema, }); const [label, setLabel] = useNodeLabelChangeHandler({ id, @@ -79,7 +79,7 @@ function PDFParserNode({ id, data }: NodeProps) {
- +
) {
- +
{ handleChange( - "dataSchema", + "jsonSchema", checked ? JSON.stringify( dataSchemaExampleForFileExtraction, @@ -115,13 +117,13 @@ function PDFParserNode({ id, data }: NodeProps) { }} />
- {inputs.dataSchema !== "null" && ( + {inputs.jsonSchema !== "null" && (
{ - handleChange("dataSchema", value); + handleChange("jsonSchema", value); }} className="nowheel nopan" fontSize={8}