Get started

Reference Workflows 06 / 06

AI fill step

Let the AI fill a field when a selector is not enough. 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 ai_fill step asks the AI to determine the right value or the right field from the page context — a resilient fallback when a layout varies and a fixed selector would be brittle.

In a workflow, this step is a JSON object with "type": "ai_fill". 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.

description string required
What to fill, in plain words.
selector selector
Optional hint to scope the AI to a region.

Example

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

Step
{
  "type": "ai_fill",
  "config": { "description": "Enter the shipping city from the provided address" }
}

How it behaves

  • AI steps are metered by the tokens they use; recorded steps replay with no AI cost.
  • Prefer deterministic fill/type steps; use ai_fill only where the page genuinely varies.

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