Skip to main content
The Agents API now runs on every Open Agent Studio instance. An easy way to test this is to run Ngrok locally, or use Open Agent Studio which publishes a public IP address you can use as your personal Agents API. Agents API The website editor now generates a sample curl request in simple english with the JSON API for you to test. You can install ngrok to run the Agents API locally if you add /agents to the end of the ngrok address like in the above image. Agents API It even returns all the saved agent data during the automation, plus the verification testing loop steps we use to verify each action.

Key Concepts

Nodes: Individual actions an agent can perform Variables: Data that can be passed between nodes Verification: Checking if a node’s action was successful Global Variables: Shared data accessible across all nodes

POST /agents

Creates and runs a new agent based on the provided JSON configuration.
Request Body
Response Returns a string representation of the agent’s output data after executing all actions.

Agent Node Types

Desktop+Browser Automation

Delay Pauses execution for a specified time.
number
The time to pause in seconds
Keypress Types text or presses a key.
string
The text to type or key to press
Click Clicks on a specified target in english.
string
Description of element to click in simple language
boolean
Set to true for browser-specific clicks
Open Tab Opens a new browser tab.
string
URL to open

Data Processing

GPT4 Uses GPT-4 for natural language processing.
string
System message for GPT-4
array
Array of input data keys
string
Output variable key
Python Executes custom Python code.
string
Python code to execute
Bash Executes bash commands.
string
Bash command to execute

Integrations

Google Sheets Create Creates a new Google Sheet.
string
Variable to store sheet URL
string
Variable to store sheet name
Google Sheets Add Row Adds a row to a Google Sheet.
string
Sheet URL variable
string
Sheet name variable
array
Array of data to add
Google Sheets Read Reads data from a Google Sheet.
string
Sheet URL
string
Sheet name
string
Variable to store read data
Email Sends an email.
string
Recipient email
string
Email subject
string
Email body
string
Variable containing additional data to append
API Makes an API call.
string
API endpoint
object
Request headers
object
Request body
string
Variable containing data to send
string
Variable to store response

Utility

Add Data Loads data from various file types.
string
Variable to store data
string
File path
Schedule Schedules the agent to run at specified times.
string
Cron expression for scheduling
Generalized Agent Performs a generalized action based on a description using our state machine to solve open-ended problems.
string
Action to perform
Semantic Scrape Scrapes data based on a semantic description.
string
Description of data to scrape
string
Variable to store scraped data
Complete Example: Web Scraping and Data Processing Agent
Best Practices
  1. Use descriptive names for variables to make the workflow clear.
  2. Add appropriate delays between actions to allow for page loading.
  3. Handle errors gracefully by checking node verification results.
  4. Use GPT-4 nodes to add flexibility and intelligence to your agents.
  5. Leverage integrations like Google Sheets for data storage and sharing.
  6. When using the python node, ensure all necessary libraries are imported.
  7. For file operations in the add_data node, ensure file paths are correct and accessible.
  8. When scheduling agents with the schedule node, use correct cron syntax.
  9. For API calls, double-check URL, headers, and body parameters.
  10. Use the general node for complex actions that may require multiple steps.
By following this documentation, you can create sophisticated automated agents capable of handling a wide range of tasks across multiple platforms and services. The Agents API provides a flexible and powerful framework for defining complex sequences of actions, data processing, and integrations.