From 8767b96d3d0ad43c8183eb41aa2de6e908380e52 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Sun, 25 May 2025 00:37:09 -0700 Subject: [PATCH] update workflow blocks (#2448) --- fern/running-tasks/webhooks-faq.mdx | 2 +- fern/workflows/introduction.mdx | 26 +++++++++++++++++--------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/fern/running-tasks/webhooks-faq.mdx b/fern/running-tasks/webhooks-faq.mdx index 6e3a2586..a38cc173 100644 --- a/fern/running-tasks/webhooks-faq.mdx +++ b/fern/running-tasks/webhooks-faq.mdx @@ -5,7 +5,7 @@ slug: running-tasks/webhooks-faq --- ## Webhooks vs HTTP requests? -Expected runtime of Skyvern's tasks and workflows can exceed default HTTP timeouts (1 minute). So we recommend using receiving webhook notifications you when it's done. +Task runtimes can exceed default HTTP timeouts; we recommend using webhook notifications to inform you when the run is complete. To set up webhook callback: - Set [webhook_url in Run Task](api-reference/api-reference/agent/run-task#request.body.webhook_url) to receive the update when the task is done. diff --git a/fern/workflows/introduction.mdx b/fern/workflows/introduction.mdx index 4e7d92ca..277a0961 100644 --- a/fern/workflows/introduction.mdx +++ b/fern/workflows/introduction.mdx @@ -8,12 +8,20 @@ slug: workflows/introduction Workflows represent chaining multiple blocks together. Imagine calling multiple tasks in a row, doing conditional logic, extracting data to a CSV, etc. All of these ideas will be supported within our workflows feature. Building blocks supported today: - -1. TaskBlock: The **magic** block. Skyvern navigates through the websites to take actions and/or extract information. -2. ForLoopBlock -3. CodeBlock -4. TextPromptBlock -5. DownloadToS3Block -6. UploadToS3Block -7. SendEmailBlock -8. FileParserBlock +- NavigationBlock: Skyvern navigates through the websites to take actions. +- ActionBlock: With a given prompt, Skyvern only takes a single action. +- ExtractBlock: Extract information from the website. You can define the data extraction schema with this block. No other actions will be taken. +- LoginBlock: A built-in block to help log into a website integrated with [Skyvern Credentials](/credentials/introduction). +- ValidationBlock: Like having an assertion in a test, this block validates the state of the workflow. It terminates the workflow if the validation fails. +- TaskBlock: Skyvern navigates through the websites to take actions and/or extract information. +- ForLoopBlock: Support for loop in the workflow. +- UrlBlock: Go to a given URL. +- CodeBlock: Code block allows you to write any custom python and playwright script to interact with the browser. For Skyvern Cloud, it's an invite only feature. +- TextPromptBlock: A text only prompt block. +- SendEmailBlock: Send an email. +- FileDownloadBlock: Given a goal, Skyvern downloads a file from the website. +- FileParserBlock: Given a file url, Skyvern downloads the file from the url, and returns the parsed content as the output of the block. Currently only support CSV file format. +- PDFParserBlock: Given a pdf url, Skyvern downloads the PDF file from the url and returns the parsed content as the output of the block. +- FileUploadBlock: Upload all the downloaded files to a desired destination. Currently only AWS S3 is supported. Please contact support@skyvern.com if you need more integrations. +- WaitBlock: Wait for a given amount of time. +- NavigationV2Block (TaskV2Block): The advanced version of the NavigationBlock, powered by the Skyvern 2.0 engine. Designed for complicated goals. \ No newline at end of file