Web Automation

The Web Automation handler in Bot Studio is responsible for managing Web Automation bots. This handler simulates a Chromium-based browser using the Microsoft Playwright library.

The Web Automation bots are in beta and will have more features in future updates.

Verifications

The only parameter for verifying a Web Automation key is that the key should consist of 64 characters containing only English letters and numbers.

Activating Bots

Web Automation bots do not require an activation instruction as they rely on the default Webhook requests method.

Receiving Events

When an event is received, the handler extracts some parameters from the Webhook request. These parameters are browser and context. The browser parameter contains the configuration for creating a browser, and the context parameter includes the settings for creating new browser contexts. The browser parameters can be found here, and the context parameters can be found here.

The only valid parameters for browser are args, channel, env, ignoreDefaultArgs, slowMo, and proxy.

The invalid parameters for context are acceptDownloads, logger, recordHar, recordVideo, and serviceWorkers.

A new browser is created with the provided parameters, followed by a new browser context and a new browser page. After this step, the process duration counting starts, and the worker nodes are executed.

Executing Worker Nodes

Node names in Bot Studio are not opinionated. Each name references a specific feature. In Web Automation bots, each node name corresponds to a Playwright function. For example, the Goto node uses the goto function of Playwright. The parameters used for this function are the parameters in the node data. You can find a full list of all these functions here.

Advertisements

Advertisements are currently disabled for Web Automation bots but will be added in the future.

Request Response

The request response includes all logs from the process, process duration, and the process video URL (only if it exists).

Cleaning Videos

All videos related to processes are removed every 24 hours or after each server restart.