Skip to main content
A Sample Workflow is a series of steps that can comprise automated actions or human-in-the-loop actions (called screens). Workflows are defined by a workflow definition file (in Python) and a set of screens (implemented in TypeScript + React). A workflow definition file describes the sequence of steps, which may include:
  • (Normal) Steps: Steps that perform backend logic, such as calling APIs, processing documents, or transforming data.
  • Screen steps: Steps that present a UI to the user for input or review.
Each step can access the results of previous steps, and workflows can be customized to fit a wide variety of business processes. Here’s a simplified example of what a workflow definition might look like (in Python):
from workflows_py.workflow import ScreenStep, Step, Workflow

workflow = Workflow()
workflow.then(
    ScreenStep("step-1", screen_path="./screens/step-1-screen.tsx")
).then(
    Step("automated-step", lambda ctx: ...)
).then(
    ScreenStep("step-2", screen_path="./screens/step-2-screen.tsx")
)
Follow the Quickstart guide to get started with Sample Workflows, or begin with Workflows and Steps to learn about the concepts behind workflows.

Quickstart

Get started with Sample Workflows

Workflows and Steps

Learn about the different types of steps in a workflow