Getting started
Create an automation project and write your first script.
1. Create a project
From the Automations page, click New automation, give it a name and description, and you'll be dropped into the code editor.
2. Your first script
Every automation exports a run() function and drives the device through the global agent. All actions are async — always await them.
src/main.ts
export async function run() {
await agent.info.log("Starting");
await agent.actions.open(agent.arguments.automationParameters.targetUrl);
await agent.actions.tap({ text: "Create account" });
}3. Run it
Save (Ctrl/Cmd+S) to compile. The backend transpiles your TypeScript to JavaScript and runs it on the device the job targets.
Use the editor's View JS action to preview the compiled output before running.