Supported tasks
Browserwhale is built for single-site tasks on public pages: start from a URL, do something a person could do there without signing in, and report what happened.
Kinds of tasks
| Kind | Examples | What you get back |
|---|---|---|
| Find information | Read a product's price and stock; list the first ten results of a search with their links; find the opening hours on a contact page. | Data in output (matching your output schema when given), plus findings in results. |
| Fill in a form | Fill and submit a contact or quote form with your params. |
Whether the form was submitted with your values, and anything that could not be filled. |
| Do something on a page | Apply filters and sorting; page through or scroll a listing; open a detail page; add an item to a wishlist. | The resulting page and what was and was not done. |
Within a site, the agent can follow links, go back, reload, scroll through long or lazy-loading lists, work inside pop-up dialogs and embedded content, and use dropdowns, date pickers and other common form controls.
Forms and params
Pass form values as params rather than writing them into the task:
{
"url": "https://example.com/contact",
"task": "Send the contact form asking about delivery times.",
"params": { "name": "Avery", "email": "avery@example.com" }
}
- A form task is
completedonly when the form was submitted with your values. If a field could not be filled as given, the task endspartialorfailedandlimitationsnames it. - Param values are redacted from our logs and never appear in the
stepslog. - When the task names several sites ("my email on the first site, my postcode on the second"), each value is entered only on the site the task gives it for.
Writing good tasks
- State the outcome, not the clicks. "Find the cheapest in-stock blue mug" works better than a sequence of buttons to press.
- Start close to the answer. A category or search page is a better
urlthan a home page several steps away. - Ask for a shape. An
outputschema givesoutputa fixed shape. Without one, its keys are chosen for the request and may vary between runs. - One site per task. Split work that spans several sites into several tasks.
What every outcome includes
Whatever happens, the task keeps what it found. results, limitations, the
steps log, the final URL and usage are returned for completed, partial
and failed tasks. See the task object.