This page explains what happens when you call the Web Tasks API—how the agent decides between AI and code, howDocumentation Index
Fetch the complete documentation index at: https://intunedhq.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
reuseKey evolves over time, and the rules that govern concurrent runs.
Execution model
When you submit a task, Intuned spins up a browser on managed infrastructure, then runs an agent that mixes AI exploration with generated code.- Load — if you provided a
reuseKey, the system loads any code previously saved under that key. If you didn’t, the server mints a freshwtr_-prefixed key and uses it for this run; the key comes back inreuse.keyso you can reuse the same automation on later calls. - Execute — the agent runs the task. If saved code exists and works, it is used directly. Otherwise the AI explores the site, decides which parts of the task benefit from being code, and writes that code as it goes.
- Save — on success, the improved code is saved under the key (whether you provided it or the server generated it). On failure, the previous code is left untouched so a bad run can’t poison a working automation.
- Return — the result is returned inline or as a file, along with
reuse,cost, and timing metadata.
Model selection
Every run uses an Anthropic model, controlled by themodel request field: haiku (default), sonnet, or opus. Heavier models help on harder tasks—ambiguous instructions, complex multi-step flows, fiddly extraction—at proportionally higher AI cost. Most repeat runs that just execute saved code work well with haiku.
Reuse rules
Same key, same automation
AreuseKey identifies one reusable automation. Two runs with the same key share code, regardless of startUrl or parameters:
yc_companies, wellfound_companies). The system does not create hidden per-URL memories.
Failed runs do not update code
Ifoutcome is failed, reuse.updated is always false. A failed attempt cannot overwrite a working automation.
Same-key runs are serialized
Runs that share areuseKey execute one at a time. This prevents two concurrent runs from updating the same code and overwriting each other.
Runs with different keys—or no key at all—execute in parallel, subject to your workspace’s rate limits.
The reuse response
When you provide a reuseKey, the result includes a reuse object describing what happened to the saved code:
| Field | Meaning |
|---|---|
key | The reuseKey you sent. |
used | true if existing saved code was loaded and executed. |
created | true if this run created the first saved code for this key. |
updated | true if this run improved or repaired the saved code. Always false on failure. |
revision_id | ID of the Web Task run whose code is currently saved under this key. |
revision_timestamp | When the saved code was last updated. |
Cost dynamics
Costs are reported per run asaiUsd (model spend) and compute.amount in hours. Expect cost to follow this shape:
- First run for a key — high AI cost, longer compute.
- Steady-state runs — low AI cost, short compute.
- Repair runs — moderate AI cost when the saved code needs updating (for example, after a site change).