Get started

Reference Workflows 06 / 06

End point step

Mark the workflow's finish line, optionally behind a condition. A step a recorded Writ workflow can run, with its fields and an example.

Runs on Writ CloudWrit Desktop

Open in Claude Open in ChatGPT

The end_point step marks where the workflow is considered complete. By default it completes immediately; with a condition it first waits for the page to prove the outcome — an element visible, expected text, or a URL pattern.

In a workflow, this step is a JSON object with "type": "end_point". Steps run in order, and each step can read the outputs of the steps before it.

Fields

Set these inside the step’s config object.

condition_type string
immediate (default), url_contains, url_equals, element_visible, element_exists, or text_visible.
selector selector
The element to wait for, with element_visible or element_exists.
text string
The text the page must show, with text_visible.
url string
The URL the page must reach, with url_contains or url_equals.
timeout_ms number
How long to wait for the condition before the run fails. Defaults to 30000.

Example

One end_point step, as it appears in the steps list of a workflow.

Step
{
  "type": "end_point",
  "config": { "condition_type": "element_visible", "selector": ".order-confirmation" }
}

How it behaves

  • A conditioned end_point turns silent breakage into an honest failure: the run only succeeds when the page proves it.
  • Place it last, after the steps that produce the outcome.

Where it runs

The step runs wherever its workflow runs. On Writ Desktop, runs are free and can reach systems that only your own network can reach.

On Writ Cloud, each call costs credits: 20 when the run needs a browser, 2 when it does not. A call that fails because of the site or Writ costs nothing.

Next