Trigger agents from other services using a simple JSON API that returns results
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.
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 nodes
POST /agents
Creates and runs a new agent based on the provided JSON configuration.Request Body
Complete Example: Web Scraping and Data Processing Agent
json { "key": "your_api_key", "json_output": [ { "type": "open tab", "target": "https://example.com/products" }, { "type": "delay", "time": 5 }, { "type": "semanticScrape", "target": "product listings", "data": "product_data" }, { "type": "gpt4", "prompt": "Analyze the product data and summarize the findings", "input": ["product_data"], "data": "analysis_result" }, { "type": "google_sheets_create", "URL": "sheet_url", "Sheet_Name": "sheet_name" }, { "type": "google_sheets_add_row", "URL": "sheet_url", "Sheet_Name": "sheet_name", "data": ["analysis_result"] }, { "type": "email", "to": "manager@company.com", "subject": "Product Analysis Report", "body": "Please find the latest product analysis attached.", "data": "analysis_result" } ], "goal": "Scrape product data, analyze it, save to Google Sheets, and email the results" }
Best Practices
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.
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.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Open Agent Studio","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"favicon":"https://cheatlayer.com/cheatlogo.png","logo":{"light":"https://cheatlayer.com/cheatlogo.png","dark":"https://cheatlayer.com/cheatlogo.png"},"navbar":{"links":[{"label":"Support","href":"mailto:support@cheatlayer.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://cheatlayer.com/dashboard"}},"footer":{"socials":{"x":"https://x.com/cheatlayer","github":"https://github.com/rohanarun/Open-Agent-Studio/","discord":"https://discord.gg/cheatlayer","facebook":"https://www.facebook.com/groups/cheatlayer","youtube":"https://www.youtube.com/cheatlayer"}},"navigation":{"global":{"anchors":[{"anchor":"Chrome Extension","href":"https://chromewebstore.google.com/detail/cheat-layer/oolmdenpaebkcokkccakmlmhcpnogalc?authuser=0\u0026hl=en","icon":"chrome"},{"anchor":"Blog","href":"https://cheatlayer.blog","icon":"wordpress"},{"anchor":"Reddit","href":"https://www.reddit.com/r/cheat_layer/","icon":"reddit"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cheatlayer","hasAudioNarration":false,"actualSubdomain":"cheatlayer","customDomains":["docs.cheatlayer.com"],"gitSource":{"type":"github","owner":"rohanarun","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae921d4fb1d10c3791d2f20:success","clientVersion":"0.0.4131","searchFilterCounts":[{"language":"default","tag":"Documentation","count":6},{"language":"default","tag":"Get Started","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"Agents-API","slug":"/Agents-API","pageMetadata":{"title":"Agents API","description":"Trigger agents from other services using a simple JSON API that returns results","href":"/Agents-API"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Trigger agents from other services using a simple JSON API that returns results\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,img:`img`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`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.\n`,_jsx(_components.img,{src:`https://storage.googleapis.com/cheatlayer/agents_api.png`,alt:`Agents API`})]}),`\n`,_jsx(_components.p,{children:`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.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://storage.googleapis.com/cheatlayer/agents_api_2.webp`,alt:`Agents API`})}),`\n`,_jsx(_components.p,{children:`It even returns all the saved agent data during the automation, plus the verification testing loop steps we use to verify each action.`}),`\n`,_jsx(Heading,{level:`1`,id:`key-concepts`,children:`Key Concepts`}),`\n`,_jsxs(_components.p,{children:[_jsx(`b`,{children:`Nodes:`}),` Individual actions an agent can perform\n`,_jsx(`b`,{children:`Variables:`}),` Data that can be passed between nodes\n`,_jsx(`b`,{children:`Verification:`}),` Checking if a node’s action was successful\n`,_jsx(`b`,{children:`Global Variables:`}),` Shared data accessible across all nodes`]}),`\n`,_jsxs(_components.p,{children:[_jsx(`h1`,{children:`POST /agents`}),`\nCreates and runs a new agent based on the provided JSON configuration.`]}),`\n`,_jsx(_components.p,{children:`Request Body`}),`\n`,_jsx(CodeBlock,{numberOfLines:`13`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"key\": \"your_api_key\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"json_output\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"type\": \"action_type\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"parameters\": \"action_specific_parameters\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"goal\": \"description_of_agent_goal\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Response\nReturns a string representation of the agent’s output data after executing all actions.`}),`\n`,_jsx(Heading,{level:`1`,id:`agent-node-types`,children:`Agent Node Types`}),`\n`,_jsx(Heading,{level:`2`,id:`desktop%2Bbrowser-automation`,children:`Desktop+Browser Automation`}),`\n`,_jsx(`b`,{children:`Delay`}),`\n`,_jsx(_components.p,{children:`Pauses execution for a specified time.`}),`\n`,_jsx(ParamField,{body:`time`,type:`number`,id:`param-time`,children:` The time to pause in seconds `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"delay\", \"time\": 5 } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(`b`,{children:`Keypress`}),`\n`,_jsx(_components.p,{children:`Types text or presses a key.`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt`,children:` The text to type or key to press `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{ \"type\": \"keypress\", \"prompt\": \"Hello, World!\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(`b`,{children:`Click`}),`\n`,_jsx(_components.p,{children:`Clicks on a specified target in english.`}),`\n`,_jsx(ParamField,{body:`target`,type:`string`,id:`param-target`,children:` Description of element to click in simple language`}),`\n`,_jsx(ParamField,{body:`browser_mode`,type:`boolean`,optional:true,id:`param-browser-mode`,children:` Set to true for browser-specific clicks `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"click\", \"target\": \"Submit button\", \"browser_mode\": true } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(`b`,{children:`Open Tab`}),`\n`,_jsx(_components.p,{children:`Opens a new browser tab.`}),`\n`,_jsx(ParamField,{body:`target`,type:`string`,id:`param-target-1`,children:` URL to open `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"open tab\", \"target\": \"https://www.example.com\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`data-processing`,children:`Data Processing`}),`\n`,_jsx(`b`,{children:`GPT4`}),`\n`,_jsx(_components.p,{children:`Uses GPT-4 for natural language processing.`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt-1`,children:` System message for GPT-4 `}),`\n`,_jsx(ParamField,{body:`input`,type:`array`,id:`param-input`,children:` Array of input data keys `}),`\n`,_jsx(ParamField,{body:`data`,type:`string`,id:`param-data`,children:` Output variable key `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"gpt4\", \"prompt\": \"Summarize the following text:\", \"input\": [\"article_text\"], \"data\": \"summary\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(`b`,{children:`Python`}),`\n`,_jsx(_components.p,{children:`Executes custom Python code.`}),`\n`,_jsx(ParamField,{body:`code`,type:`string`,id:`param-code`,children:` Python code to execute `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"python\", \"code\": \"import pandas as pd\\\\ndf = pd.read_csv('data.csv')\\\\nprint(df.head())\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(`b`,{children:`Bash`}),`\n`,_jsx(_components.p,{children:`Executes bash commands.`}),`\n`,_jsx(ParamField,{body:`command`,type:`string`,id:`param-command`,children:` Bash command to execute `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"bash\", \"command\": \"ls -la\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`integrations`,children:`Integrations`}),`\n`,_jsx(`b`,{children:`Google Sheets Create`}),`\n`,_jsx(_components.p,{children:`Creates a new Google Sheet.`}),`\n`,_jsx(ParamField,{body:`URL`,type:`string`,id:`param-url`,children:` Variable to store sheet URL `}),`\n`,_jsx(ParamField,{body:`Sheet_Name`,type:`string`,id:`param-sheet-name`,children:` Variable to store sheet name `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"google_sheets_create\", \"URL\": \"new_sheet_url\", \"Sheet_Name\": \"new_sheet_name\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(`b`,{children:`Google Sheets Add Row`}),`\n`,_jsx(_components.p,{children:`Adds a row to a Google Sheet.`}),`\n`,_jsx(ParamField,{body:`URL`,type:`string`,id:`param-url-1`,children:` Sheet URL variable `}),`\n`,_jsx(ParamField,{body:`Sheet_Name`,type:`string`,id:`param-sheet-name-1`,children:` Sheet name variable `}),`\n`,_jsx(ParamField,{body:`data`,type:`array`,id:`param-data-1`,children:` Array of data to add `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"google_sheets_add_row\", \"URL\": \"sheet_url\", \"Sheet_Name\": \"sheet_name\", \"data\": [\"John\", \"Doe\", \"30\"] } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(`b`,{children:`Google Sheets Read`}),`\n`,_jsx(_components.p,{children:`Reads data from a Google Sheet.`}),`\n`,_jsx(ParamField,{body:`URL`,type:`string`,id:`param-url-2`,children:` Sheet URL `}),`\n`,_jsx(ParamField,{body:`Sheet_Name`,type:`string`,id:`param-sheet-name-2`,children:` Sheet name `}),`\n`,_jsx(ParamField,{body:`data`,type:`string`,id:`param-data-2`,children:` Variable to store read data `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"google_sheets_read\", \"URL\": \"sheet_url\", \"Sheet_Name\": \"sheet_name\", \"data\": \"sheet_data\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(`b`,{children:`Email`}),`\n`,_jsx(_components.p,{children:`Sends an email.`}),`\n`,_jsx(ParamField,{body:`to`,type:`string`,id:`param-to`,children:` Recipient email `}),`\n`,_jsx(ParamField,{body:`subject`,type:`string`,id:`param-subject`,children:` Email subject `}),`\n`,_jsx(ParamField,{body:`body`,type:`string`,id:`param-body`,children:` Email body `}),`\n`,_jsx(ParamField,{body:`data`,type:`string`,id:`param-data-3`,children:` Variable containing additional data to append `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"email\", \"to\": \"recipient@example.com\", \"subject\": \"Monthly Report\", \"body\": \"Please find the monthly report attached.\", \"data\": \"report_data\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(`b`,{children:`API`}),`\n`,_jsx(_components.p,{children:`Makes an API call.`}),`\n`,_jsx(ParamField,{body:`URL`,type:`string`,id:`param-url-3`,children:` API endpoint `}),`\n`,_jsx(ParamField,{body:`headers`,type:`object`,id:`param-headers`,children:` Request headers `}),`\n`,_jsx(ParamField,{body:`body`,type:`object`,id:`param-body-1`,children:` Request body `}),`\n`,_jsx(ParamField,{body:`data`,type:`string`,optional:true,id:`param-data-4`,children:` Variable containing data to send `}),`\n`,_jsx(ParamField,{body:`output`,type:`string`,optional:true,id:`param-output`,children:` Variable to store response `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"api\", \"URL\": \"https://api.example.com/data\", \"headers\": {\"Content-Type\": \"application/json\"}, \"body\": {\"key\": \"value\"}, \"data\": \"request_data\", \"output\": \"api_response\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`utility`,children:`Utility`}),`\n`,_jsx(`b`,{children:`Add Data`}),`\n`,_jsx(_components.p,{children:`Loads data from various file types.`}),`\n`,_jsx(ParamField,{body:`target`,type:`string`,id:`param-target-2`,children:` Variable to store data `}),`\n`,_jsx(ParamField,{body:`data`,type:`string`,id:`param-data-5`,children:` File path `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"add_data\", \"target\": \"csv_data\", \"data\": \"/path/to/file.csv\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(`b`,{children:`Schedule`}),`\n`,_jsx(_components.p,{children:`Schedules the agent to run at specified times.`}),`\n`,_jsx(ParamField,{body:`cron`,type:`string`,id:`param-cron`,children:` Cron expression for scheduling `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"schedule\", \"cron\": \"0 9 * * 1-5\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(`b`,{children:`Generalized Agent`}),`\n`,_jsx(_components.p,{children:`Performs a generalized action based on a description using our state machine to solve open-ended problems.`}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:` Action to perform `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"general\", \"description\": \"Search for the latest news articles about AI and summarize them\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(`b`,{children:`Semantic Scrape`}),`\n`,_jsx(_components.p,{children:`Scrapes data based on a semantic description.`}),`\n`,_jsx(ParamField,{body:`target`,type:`string`,id:`param-target-3`,children:` Description of data to scrape `}),`\n`,_jsx(ParamField,{body:`data`,type:`string`,id:`param-data-6`,children:` Variable to store scraped data `}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"type\": \"semanticScrape\", \"target\": \"product reviews and ratings\", \"data\": \"product_reviews\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Complete Example: Web Scraping and Data Processing Agent`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json { \"key\": \"your_api_key\", \"json_output\": [ { \"type\": \"open tab\", \"target\": \"https://example.com/products\" }, { \"type\": \"delay\", \"time\": 5 }, { \"type\": \"semanticScrape\", \"target\": \"product listings\", \"data\": \"product_data\" }, { \"type\": \"gpt4\", \"prompt\": \"Analyze the product data and summarize the findings\", \"input\": [\"product_data\"], \"data\": \"analysis_result\" }, { \"type\": \"google_sheets_create\", \"URL\": \"sheet_url\", \"Sheet_Name\": \"sheet_name\" }, { \"type\": \"google_sheets_add_row\", \"URL\": \"sheet_url\", \"Sheet_Name\": \"sheet_name\", \"data\": [\"analysis_result\"] }, { \"type\": \"email\", \"to\": \"manager@company.com\", \"subject\": \"Product Analysis Report\", \"body\": \"Please find the latest product analysis attached.\", \"data\": \"analysis_result\" } ], \"goal\": \"Scrape product data, analyze it, save to Google Sheets, and email the results\" } `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Best Practices`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Use descriptive names for variables to make the workflow clear.`}),`\n`,_jsx(_components.li,{children:`Add appropriate delays between actions to allow for page loading.`}),`\n`,_jsx(_components.li,{children:`Handle errors gracefully by checking node verification results.`}),`\n`,_jsx(_components.li,{children:`Use GPT-4 nodes to add flexibility and intelligence to your agents.`}),`\n`,_jsx(_components.li,{children:`Leverage integrations like Google Sheets for data storage and sharing.`}),`\n`,_jsx(_components.li,{children:`When using the python node, ensure all necessary libraries are imported.`}),`\n`,_jsx(_components.li,{children:`For file operations in the add_data node, ensure file paths are correct and accessible.`}),`\n`,_jsx(_components.li,{children:`When scheduling agents with the schedule node, use correct cron syntax.`}),`\n`,_jsx(_components.li,{children:`For API calls, double-check URL, headers, and body parameters.`}),`\n`,_jsx(_components.li,{children:`Use the general node for complex actions that may require multiple steps.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`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.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Agents API","description":"Trigger agents from other services using a simple JSON API that returns results","href":"/Agents-API"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Key Concepts","slug":"key-concepts","depth":1,"children":[]},{"title":"Agent Node Types","slug":"agent-node-types","depth":1,"children":[]},{"title":"Desktop+Browser Automation","slug":"desktop%2Bbrowser-automation","depth":2,"children":[]},{"title":"Data Processing","slug":"data-processing","depth":2,"children":[]},{"title":"Integrations","slug":"integrations","depth":2,"children":[]},{"title":"Utility","slug":"utility","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"cheatlayer","siteName":"Open Agent Studio","title":"Agents API - Open Agent Studio","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T03:51:14.932Z","originalFileLocation":"Agents-API.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Trigger agents from other services using a simple JSON API that returns results\">\u003cmeta data-mint-head name=\"application-name\" content=\"Open Agent Studio\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://cheatlayer.com/cheatlogo.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://cheatlayer.com/cheatlogo.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://cheatlayer.com/cheatlogo.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://cheatlayer.com/cheatlogo.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"Agents API - Open Agent Studio\">\u003cmeta data-mint-head property=\"og:description\" content=\"Trigger agents from other services using a simple JSON API that returns results\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Open Agent Studio\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cheatlayer.com/Agents-API\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cheatlayer.mintlify.site/_mintlify/api/og/v2?division=Get+Started\u0026amp;title=Agents+API\u0026amp;description=Trigger+agents+from+other+services+using+a+simple+JSON+API+that+returns+results\u0026amp;theme=a67d88508a38fffe97e155b4\u0026amp;signature=28dce4d10ed44a0bd956df5bf30c1e956d4503017ea44a44226b4f5c98e49b11\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Agents API - Open Agent Studio\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Trigger agents from other services using a simple JSON API that returns results\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cheatlayer.mintlify.site/_mintlify/api/og/v2?division=Get+Started\u0026amp;title=Agents+API\u0026amp;description=Trigger+agents+from+other+services+using+a+simple+JSON+API+that+returns+results\u0026amp;theme=a67d88508a38fffe97e155b4\u0026amp;signature=28dce4d10ed44a0bd956df5bf30c1e956d4503017ea44a44226b4f5c98e49b11\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/cheatlayer/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Open Agent Studio\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cheatlayer.com/Agents-API\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/Agents-API.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cheatlayer.com/#organization\",\"name\":\"Open Agent Studio\",\"url\":\"https://docs.cheatlayer.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://cheatlayer.com/cheatlogo.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cheatlayer.com#website\",\"name\":\"Open Agent Studio\",\"url\":\"https://docs.cheatlayer.com\",\"publisher\":{\"@id\":\"https://docs.cheatlayer.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cheatlayer.com/Agents-API#webpage\",\"url\":\"https://docs.cheatlayer.com/Agents-API\",\"name\":\"Agents API\",\"description\":\"Trigger agents from other services using a simple JSON API that returns results\",\"dateModified\":\"2026-01-07T03:51:14.932Z\",\"isPartOf\":{\"@id\":\"https://docs.cheatlayer.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cheatlayer.com/Agents-API#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cheatlayer.com/Agents-API#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get Started\",\"item\":\"https://docs.cheatlayer.com/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agents API\",\"item\":\"https://docs.cheatlayer.com/Agents-API\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.cheatlayer.com/Agents-API#article\",\"headline\":\"Agents API\",\"name\":\"Agents API\",\"description\":\"Trigger agents from other services using a simple JSON API that returns results\",\"url\":\"https://docs.cheatlayer.com/Agents-API\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cheatlayer.com/Agents-API#webpage\"},\"dateModified\":\"2026-01-07T03:51:14.932Z\",\"publisher\":{\"@id\":\"https://docs.cheatlayer.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cheatlayer.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Open Agent Studio\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Open Agent Studio\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/Agents-API.md","siteName":"Open Agent Studio","nav":{"global":{"anchors":[{"anchor":"Chrome Extension","href":"https://chromewebstore.google.com/detail/cheat-layer/oolmdenpaebkcokkccakmlmhcpnogalc?authuser=0\u0026hl=en","icon":"chrome"},{"anchor":"Blog","href":"https://cheatlayer.blog","icon":"wordpress"},{"anchor":"Reddit","href":"https://www.reddit.com/r/cheat_layer/","icon":"reddit"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Open Agent Studio","href":"/introduction"},{"title":"No-Code Actions","href":"/No-code"},{"title":"Scheduler","description":"Schedule agents in natural language, using dropdowns, through the agents API in cron, or automatically at the ideal times with the Core Agent Team.","href":"/Scheduler"},{"title":"Agents API","href":"/Agents-API"},{"title":"Creator Program","description":"Earn 30% recurring revenue + $1/1000 views running our own pre-built agents to promote Cheat Layer! ","href":"/Creator-Program"},{"title":"Open Agent Cloud","href":"/Open-Agent-Cloud"}]}]}]},"basePath":"","title":"Agents API - Open Agent Studio","buildId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","deploymentId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-B3yYlvdS.js","lightbox-handle-r17bVUz3.js"]}