Learn how to create, monitor, and manage automated browser tasks using the Browserable JavaScript SDK.
createTask
method:
task
(required): Natural language description of what you want to automateagent
(optional): Agent to use (defaults to 'BROWSER_AGENT'
)onStatusChange
callbackpending
: GIF is being generatedcompleted
: GIF is ready and can be accessed via the url
fielderror
: GIF generation failed, check the error
field for detailsApiResponse
object with the following structure: