For AI agents: a documentation index is available at /llms.txt
Skip to main content

/integrations/script-generator

POST 

/integrations/script-generator

Generates a Browserless automation script (BrowserQL / Playwright JS / Playwright Python / Puppeteer / BAP TypeScript / BAP Python) from a natural-language task. A managed agent drives a browser session; its ordered tool-call transcript is rendered into the requested script(s). Streams Server-Sent Events: status, script, complete, and error. When the runner reports a terminal outcome, it appends one final result event (status, success, reasonCode, actionsCount). Unexpected route failures may end with error alone.

Request​

Responses​

The request contains errors or didn't properly encode content.

Was this page helpful?