Skip to main content

Arguments

Output

The build’s job, with next, the call that follows it. Once it succeeds, tool_id names the new tool and build.example_result holds the example’s result.
  • Tell the user it is building. Then follow the job with get_job. The tool is reused after that.
  • A tool that exists but returns the wrong form needs no build: make a shape with create_shape. One that lacks data or an input needs a change: change_website_tool.
  • When a job asks any other question (input_request), follow its next: answer it yourself with answer_job if your task already settles it, otherwise ask your user and answer with theirs, or, when your user chose to answer on a form, give them its answer_url; then keep following the job with get_job. A browser_handoff question is never answered with answer_job: send your user its answer_url, where a person finishes the step in the job’s live browser and marks it done, and keep following the job. Unanswered, a question expires after 10 minutes, a browser_handoff after 30 minutes; it fails a run and can pause or end a build.
  • Set site_url to the site’s https origin. Set start_url only to an https page on site_url that the user gave, never a URL you built from the task’s values; the host opens it unchanged.
  • The build runs the task once as its example. The finished job keeps that result as build.example_result; don’t repeat a completed website action.
  • Set effect: read when the tool only looks things up, including search, filter and query forms; write when it changes the website, such as submitting, booking, saving a form (an application, profile or checkout), drafts, holds, uploads and account updates; ask when unsure, and the build works it out from the task, asking before anything runs only when the task leaves it unclear.
  • A read build tries its task signed out and signs in only when the site requires it; force_sign_in signs in first. With no saved login, the job asks the user on its answer page. Never ask for a password in chat.
  • Test mode is on unless you set test_mode false. Before the tool publishes, it checks the tool on other inputs so it works beyond the example. Set false only when your user asks to skip it. Tell your user it takes longer, still submits once and leaves no drafts. Set “extreme” only when your user asks. It runs on any site and takes hours, leaves up to 5 practice drafts with made-up people on the account, may submit the final step up to 3 times, the example’s submit included and only where that step buys or signs nothing, and may get the account rate-limited. It never pays, purchases, signs or changes sign-in, and the build asks your user to confirm first.
  • Ticket, bank, government and link shortener sites are refused with site_not_supported.
  • Status needs_input with error credentials_rejected means the website rejected the saved login. The job waits up to 60 minutes for the user to correct it on the page its next names, then resumes. Don’t resubmit it.
  • A build that may already have changed the website says so in error.details.possible_commit, and checks it on resuming.
  • Send an idempotency_key with every write, and reuse it only to retry the same call. A call without one is a new website action.
Effect: May change a website or your account, and a change may not be undoable.