Jump to
Create routines
Learn how to create routines.
Overview
You can create routines in three ways:
Browse and fork community-built routines to use as templates or starting points.
Define your own sequence of web actions and API calls directly in the Vectorly Console.
Use Web Hacker, our open-source tool, to capture real interactions on the web and let an AI agent generate a routine definition for you.
Fork existing public routines
Browse public routines created by the community and fork them to create your own variations.
To fork a routine:
1. Go to the Browse page to view public routines.
2. Select a routine you want to fork.
3. Click the "Add to project" button to fork the routine into your own project.
4. Customize and save your routine as needed.
Tip: Forking is the fastest way to learn by example. Start with a working routine and adapt it for your use case.
Build from scratch
If you already know the sequence of steps your workflow should follow, build a routine from scratch by specifying your API endpoints and web actions directly in the Vectorly Console.
To create a new routine:
1. Go to the Vectorly Console.
2. Go to the Routines page.
3. Click "+ Create new routine" button.
4. Enter a name and description.
5. (Optional) Toggle Public to allow others to fork and use it.
6. Define parameters (inputs) in JSON format. See Parameters for details.
7. Define operations (browser actions) in JSON format. See Operations for details.
8. Click "Create routine" to save your routine. Execution instructions will appear, and you can execute it via the REST API or MCP server.
Create routines automatically
Web Hacker is an open-source tool that uses AI to reverse-engineer web APIs. Monitor your browser while performing actions, then let the AI agent analyze the captured data and generate reusable routines.
Web Hacker enables you to automate any web app without needing official APIs. Capture browser interactions, and the AI agent will discover the API endpoints and create routines you can use in production.
Launch Google Chrome in debug mode
Before you can use Web Hacker, you need to launch Chrome with the DevTools protocol enabled. This allows Web Hacker to connect to your browser, monitor network traffic, capture storage events, and control browser actions programmatically.
Chrome must be started with remote debugging enabled on 127.0.0.1:9222. This exposes a WebSocket endpoint that Web Hacker uses to communicate with the browser. You can verify Chrome is running in debug mode by checking that http://127.0.0.1:9222/json/version returns JSON containing a webSocketDebuggerUrl.
For detailed platform-specific instructions (macOS, Windows, Linux), see the Web Hacker README.
Use Web Hacker
Reverse engineering web apps with Web Hacker involves two steps:
- Monitor: Capture network traffic, storage events, and interactions while you manually perform the target task in Chrome
- Discover: Let the AI agent analyze the captured data and generate a reusable routine
For detailed step-by-step instructions, see the Web Hacker README.
⚠️ Legal and privacy notice
Reverse-engineering and automating a website can violate terms of service. Store captures securely and scrub any sensitive fields before sharing.
Upload discovered routine
Once you've verified your discovered routine works locally, you can upload it to the Vectorly Console to productionize it and make it available via API or MCP server.
To upload your discovered routine:
1. Open the routine.json file generated by the discovery agent in the output directory.
2. Go to the Routines page in the Vectorly Console.
3. Click "+ Create new routine" and copy the name, description, parameters, and operations from your routine.json file.
4. Click "Create routine" to save. Your routine will be available for execution via the REST API or MCP server.