Arguments
Output
The build’s job, withnext, the call that follows it. Once it succeeds, tool_id names the new tool and build.example_result holds the example’s result.
Details
Details
- A build takes about 10 minutes, and the tool is reused after that. Tell the user it is building, then follow the job with get_job.
- Set site_url to the site’s https origin, and start_url only to the exact page the user asked for.
- 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 asks before anything runs.
- 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.
- Ticket, bank and government 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.