Working with AI Agents
Information about using our external coding feature while working with AI agents.
While the CLI (Command Line Interface) is designed for direct developer use, it is also optimized for AI agents and agentic workflows. When combined with the accompanying skill, you can instruct your AI agent to perform almost any operation in ScriptRunner Connect. For security and governance, certain management operations remain restricted to the web UI—such as creating teams, upgrading subscription plans, inviting or removing team members, and approving egress firewall requests. All other workspace and integration tasks can be delegated directly to your agent, including setting up connectors and webhooks via browser-enabled agents.
Agents can create workspaces, connect systems, and write the TypeScript or JavaScript code required for business automations. Beyond creating new automations, agents can also evaluate feasibility, troubleshoot and optimize existing scripts, or perform one-off operational tasks such as aggregating data across systems. While agents can connect directly to external APIs via Model Context Protocol (MCP), using ScriptRunner Connect compiles business logic into reproducible, deterministic code that can be scheduled, triggered, and audited at lower runtime cost.
Get started
Node 22+ is required for both installing the skill and running the CLI.
To start external coding with an AI agent:
Use ScriptRunner Connect with AI agents
Now that you have the skill and the CLI installed, you're ready to delegate your automation needs to your agent. Ask it anything by referencing the /sr-connect skill in your prompt, for example:
- Using
/sr-connect, when something happens in system X, do something in system Y - Using
/sr-connect, check why my workspace X is failing, fix it if you can - Using
/sr-connect, check if system X can be integrated with system Y - Using
/sr-connect, show me information A, B and C from systems X and Y
Use ScriptRunner Connect with browser-based agents
In many cases, actions such as authorizing a connector and registering a webhook cannot be performed programmatically, but AI agents that can control a browser can do so for you. When the agent thinks it can perform the browser actions for you, it should offer you the option. We recommend that a human perform connector authorizations because most connectors have a timeout for that process, and your agent might not be fast enough to complete the necessary actions within the allotted time. Webhook registration, however, generally doesn't have such restrictions, and agents can take all the time in the world, as long as you'd like to wait.
Automated tests
If you want local automated tests written, ask for them explicitly. Also, specify the type of tests you want, as the agent is instructed to write tests either by mocking API requests or running them as integration tests (against live systems).
Safety
At this time, no human gates are engineered into the agentic workflows. Only the skill advises your agent to be cautious and ask for your permission for many things, but this is on a best-effort basis. To avoid unexpected results, be precise with your asks, and don't let the agent guess wrong.
Feedback
We'd love to hear your feedback on how you're getting along with AI agents, or any instructions you think should be included in the baseline instructions. Please feel free to post your feedback on our Nolt board.