Quickstart Tutorial
Build your first automation with AskUI in minutes.
In this quickstart tutorial, we’ll guide you through creating your first automation with AskUI. We’ll create a simple script that searches for a product on Amazon and adds it to the cart.
Install AskUI Agent OS
First, download and install the AskUI Agent OS for your operating system:
Install Python Package
Install the AskUI Python package using pip:
Note: Requires Python version >=3.10.
Set Up Authentication
Set up authentication with your chosen AI model provider:
Create Your First Automation
Create a new Python file amazon_shopping.py
and add the following code:
Run the script:
The script will:
- Open Amazon in your default browser
- Search for “nike shoes”
- Verify the cart contents
- Generate an HTML report of the automation
Understanding the Code
Let’s break down the key components:
-
Agent Initialization
- Creates a new agent with debug logging
- Enables HTML reporting for better visibility
-
Basic Interactions
- Uses natural language to find elements
- Performs basic keyboard and mouse actions
-
Information Extraction
- Retrieves information from the UI
- Uses natural language queries
Running in CI/CD
You can run your automations in any CI/CD pipeline. Here’s an example for GitHub Actions:
Next Steps
- Explore more examples in our Community
- Learn about Element Selection
- Discover Available AI Models
- Read about Best Practices