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.
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 nodesPOST /agents
Creates and runs a new agent based on the provided JSON configuration. Request BodyAgent Node Types
Desktop+Browser Automation
Delay Pauses execution for a specified time. The time to pause in seconds
The text to type or key to press
Description of element to click in simple language
Set to true for browser-specific clicks
URL to open
Data Processing
GPT4 Uses GPT-4 for natural language processing. System message for GPT-4
Array of input data keys
Output variable key
Python code to execute
Bash command to execute
Integrations
Google Sheets Create Creates a new Google Sheet. Variable to store sheet URL
Variable to store sheet name
Sheet URL variable
Sheet name variable
Array of data to add
Sheet URL
Sheet name
Variable to store read data
Recipient email
Email subject
Email body
Variable containing additional data to append
API endpoint
Request headers
Request body
Variable containing data to send
Variable to store response
Utility
Add Data Loads data from various file types. Variable to store data
File path
Cron expression for scheduling
Action to perform
Description of data to scrape
Variable to store scraped data
- Use descriptive names for variables to make the workflow clear.
- Add appropriate delays between actions to allow for page loading.
- Handle errors gracefully by checking node verification results.
- Use GPT-4 nodes to add flexibility and intelligence to your agents.
- Leverage integrations like Google Sheets for data storage and sharing.
- When using the python node, ensure all necessary libraries are imported.
- For file operations in the add_data node, ensure file paths are correct and accessible.
- When scheduling agents with the schedule node, use correct cron syntax.
- For API calls, double-check URL, headers, and body parameters.
- Use the general node for complex actions that may require multiple steps.
