# Workflow steps

> Every step a recorded workflow can contain, with its inputs and behaviour.

Source: https://usewrit.app/docs/workflows/steps/

A workflow is an ordered list of steps. Each step is a small JSON object with a type, and it can read the outputs of the steps before it. This reference covers 36 step types, grouped below by family; open one for its fields, an example and how it behaves.

> **tip:** You rarely write steps by hand. Recording a workflow writes them while you click through the site, and Scribe writes them from a description in plain words. Use this reference to read a workflow, or to edit one by hand when you need exact control.

## Navigation

-
- [Navigate](https://usewrit.app/docs/workflows/steps/navigate): navigate Load a URL in the live tab and wait for it to settle.
-
- [Navigated to](https://usewrit.app/docs/workflows/steps/navigated_to): navigated_to Recorded marker: the page itself navigated; replay waits for the expected URL.

## Interaction

-
- [Click](https://usewrit.app/docs/workflows/steps/click): click Click an element identified by a stable selector.
-
- [Hover](https://usewrit.app/docs/workflows/steps/hover): hover Move the pointer over an element to reveal hover-only UI.
-
- [Press key](https://usewrit.app/docs/workflows/steps/press): press Press a keyboard key or shortcut.
-
- [Focus](https://usewrit.app/docs/workflows/steps/focus): focus Move keyboard focus to an element without clicking it.
-
- [Fill](https://usewrit.app/docs/workflows/steps/fill): fill Set a field's value in one operation.
-
- [Type](https://usewrit.app/docs/workflows/steps/type): type Enter text keystroke-by-keystroke.
-
- [Select](https://usewrit.app/docs/workflows/steps/select): select Choose an option from a dropdown.
-
- [Check](https://usewrit.app/docs/workflows/steps/check): check Set a checkbox or radio to checked.
-
- [Uncheck](https://usewrit.app/docs/workflows/steps/uncheck): uncheck Set a checkbox to unchecked.
-
- [Scroll](https://usewrit.app/docs/workflows/steps/scroll): scroll Scroll the page, e.g. to load lazy content.
-
- [Scroll into view](https://usewrit.app/docs/workflows/steps/scroll_into_view): scroll_into_view Bring a specific element into the viewport.
-
- [Upload file](https://usewrit.app/docs/workflows/steps/upload): upload Attach a stored file to a file input or file chooser.

## Waiting

-
- [Wait](https://usewrit.app/docs/workflows/steps/wait): wait Pause for a duration or until a condition holds.
-
- [Wait for change](https://usewrit.app/docs/workflows/steps/wait_for_change): wait_for_change Wait until watched page content changes.
-
- [Wait for download](https://usewrit.app/docs/workflows/steps/wait_for_download): wait_for_download Wait for a file download to complete and capture the file.

## Extraction

-
- [Extract](https://usewrit.app/docs/workflows/steps/extract): extract Pull structured data out of the page into named fields.
-
- [Evaluate (JS)](https://usewrit.app/docs/workflows/steps/evaluate): evaluate Run JavaScript in the page and capture its result.
-
- [Codegen](https://usewrit.app/docs/workflows/steps/codegen): codegen Run a self-contained generated script against the page.
-
- [Screenshot](https://usewrit.app/docs/workflows/steps/screenshot): screenshot Capture the page as an image, stored with the run.
-
- [API call](https://usewrit.app/docs/workflows/steps/api_call): api_call Make an HTTP request from inside the page session.

## Tabs

-
- [Open tab](https://usewrit.app/docs/workflows/steps/open_tab): open_tab Open a new browser tab, optionally at a URL.
-
- [Wait for tab](https://usewrit.app/docs/workflows/steps/wait_for_tab): wait_for_tab Wait for a new tab to open, then switch to it.
-
- [Switch tab](https://usewrit.app/docs/workflows/steps/switch_tab): switch_tab Make a different open tab the active one.
-
- [Tab closed](https://usewrit.app/docs/workflows/steps/tab_closed): tab_closed Recorded marker: the active tab closed; replay closes it too.

## AI

-
- [AI fill](https://usewrit.app/docs/workflows/steps/ai_fill): ai_fill Let the AI fill a field when a selector is not enough.
-
- [AI fill form](https://usewrit.app/docs/workflows/steps/ai_fill_form): ai_fill_form Let the AI complete a whole form from the available data.
-
- [AI continue](https://usewrit.app/docs/workflows/steps/ai_continue): ai_continue Let the AI decide and take the next actions toward a goal.
-
- [AI navigate](https://usewrit.app/docs/workflows/steps/ai_navigate): ai_navigate Let the AI find and reach a described destination.

## Authentication

-
- [Login (request)](https://usewrit.app/docs/workflows/steps/login_post): login_post Sign in as a request instead of a DOM form, on your own account.
-
- [Two-factor (2FA)](https://usewrit.app/docs/workflows/steps/twofa): twofa Complete a two-factor challenge on your own account.
-
- [Verification step](https://usewrit.app/docs/workflows/steps/captcha): captcha Complete an interactive verification on a page you are authorized to use.

## Flow

-
- [Return](https://usewrit.app/docs/workflows/steps/return): return End the workflow here and return what has been collected.
-
- [End point](https://usewrit.app/docs/workflows/steps/end_point): end_point Mark the workflow's finish line, optionally behind a condition.
-
- [Assert](https://usewrit.app/docs/workflows/steps/assert): assert Require the page to be in an expected state, or fail the run.

## Next

-
- [Record a workflow](https://usewrit.app/docs/workflows): Show Writ the clicks once in a real browser, then replay them with new inputs on demand or on a schedule.
-
- [Call your API](https://usewrit.app/docs/call): Run an API over REST from any language: endpoints, keys, waiting for results, caching and responses.
-
- [Keep an API working](https://usewrit.app/docs/keep-it-working): Daily checks, automatic repairs, and what to do when a call starts failing.
