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.
On this page
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_typestring - immediate (default), url_contains, url_equals, element_visible, element_exists, or text_visible.
-
selectorselector - The element to wait for, with element_visible or element_exists.
-
textstring - The text the page must show, with text_visible.
-
urlstring - The URL the page must reach, with url_contains or url_equals.
-
timeout_msnumber - 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.
{
"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.
Related steps
- Return
returnEnd the workflow here and return what has been collected. - Wait
waitPause for a duration or until a condition holds. - Extract
extractPull structured data out of the page into named fields.
Next
- 01 All workflow steps The full step list, grouped by family.
- 02 Record a workflow Show Writ the clicks once in a real browser, then replay them with new inputs on demand or on a schedule.
- 03 Call your API Run an API over REST from any language: endpoints, keys, waiting for results, caching and responses.
- 04 Credits and plans What each call, page and check costs in credits, what plans include, and what happens at zero.