1. Create a Task in the UI
Tasks define the specific actions Vern can perform within a browser.- Navigate to the Tasks page in the Vern dashboard.
- Click “New Task” and define the browser actions you want to automate.
- Configure the necessary inputs (e.g., search terms, form fields) and how Vern should interact with websites to complete the task.
- Once created, note down the Task ID displayed for your new task.
2. Install the SDK
3. Initialize the SDK
Import and initialize the Vern SDK with your API key:4. Run a Task
You can run a task using the explicitruns.create
method:
5. Handle Run Completion
Configure a webhook endpoint in your application to receive run completion events. This is the recommended approach as it eliminates the need for polling and provides real-time updates.When a run completes, Vern will send a POST request to your configured webhook URL with the following payload:You can configure your webhook URL in the Vern dashboard.
Next Steps
You’ve successfully defined a task and executed a run! Explore the documentation further to learn about:- Creating more complex browser automation tasks
- Setting up advanced configurations
- Error handling and debugging
- Integrating Vern with your application workflow