Overview
Workflows are the fundamental building blocks of Anon. Each workflow represents a customizable, AI-powered sequence of browser automation steps that performs a specific task within a source system (e.g., logging in, extracting screenshots, retrieving reports). Anon empowers you to create, define, and modify your own workflows through the API or through the dashboard.Key Concepts
Workflow Definition
A workflow consists of:- Name: A descriptive identifier for the workflow
- Source Provider: The system of record the workflow operates on (e.g.,
gusto,toast,quickbooks) - Steps: A structured JSON definition of the actions the AI agent should perform
- Type: Either
LOGIN(for authentication workflows) orUSER_DEFINED(for custom operations)
stepsJson field is the heart of a workflow. It defines:
- The sequence of steps to execute
- Input parameters required for execution
- Workflow analysis and metadata
- Version information
Workflow Types
Login Workflows are special workflows designed to authenticate with source systems. They typically:- Handle credential input
- Navigate authentication flows
- Verify successful login
- Store session state
- Extracting employee records from HRIS systems
- Downloading daily sales reports from a POS system
- Retrieving invoice data from Amazon Business accounts
- Updating payroll configuration settings
API Operations
Create a Workflow
Create Workflow
Create a new workflow with custom step definitions
List Workflows
List Workflows
Retrieve all workflows for your organization with pagination support
Get a Workflow
Get Workflow
Retrieve complete details for a specific workflow, including its full step definition
Update a Workflow
Update Workflow
Modify an existing workflow’s name or steps
Delete a Workflow
Delete Workflow
Remove a workflow from your organization
Workflow Execution Flow
Workflows are executed as part of jobs. Here’s how workflows fit into the broader Anon flow:- Define Workflows: Create workflows for each operation you need (login, data extraction, etc.)
- Create a Job: Organize workflows into a job with a specific execution order
- Execute the Job: Create a job run, which triggers workflow runs for each workflow in sequence
- Monitor Workflow Runs: Track the status of individual workflow executions
- Access Artifacts: Retrieve data and files generated by successful workflow runs
Relationship with Other Resources
- Jobs: Reference workflows in their
workflowExecutionOrderconfiguration - Workflow Runs: Created when a workflow is executed as part of a job run
- Artifacts: Generated by workflow runs and linked to the workflow that created them
Best Practices
Workflow Design
- Keep Workflows Focused: Each workflow should accomplish a single, well-defined task
- Make Workflows Reusable: Design workflows that work across different accounts or contexts
- Use Clear Naming: Choose descriptive names that indicate the workflow’s purpose and provider
- Document Input Schemas: Clearly define required inputs in your workflow definition
Workflow Management
- Test Before Production: Execute workflow runs in test mode before using in production jobs
- Update Incrementally: Make small, incremental changes and test after each modification
- Maintain Login Workflows: Keep authentication workflows separate from data operation workflows
- Monitor Execution: Regularly review workflow run results to identify needed improvements