> ## Documentation Index
> Fetch the complete documentation index at: https://docs.samplehc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> What are Sample Workflows?

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](/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):

```python theme={null}
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](/workflows/quickstart) guide to get started with Sample Workflows, or begin with [Workflows and Steps](/workflows/workflows-and-steps) to learn about the concepts behind workflows.

<CardGroup>
  <Card title="Quickstart" icon="rocket" href="/workflows/quickstart">
    Get started with Sample Workflows
  </Card>

  <Card title="Workflows and Steps" icon="workflow" href="/workflows/workflows-and-steps">
    Learn about the different types of steps in a workflow
  </Card>
</CardGroup>
