AI Assistant
ScriptRunner Connect has an AI assistant feature based on the ChatGPT 4o model to help you write scripts, answer questions about how the app works, and find useful templates for your use cases. The AI assistant can be used with a monthly credit allotment.
Meet the new assistant
You can find the AI assistant in the left-side navigation.
Code generation
The primary purpose of the AI assistant is to help you write code by asking various questions about how to achieve the tasks you need for your integration. The experience is similar to how other LLM-based chatbots work, like ChatGPT, meaning you can chat and converse with the AI assistant. ScriptRunner Connect's chatbot is specially trained with the API surface of the ScriptRunner Connect runtime and its managed APIs.
Communication tips 💬
For best results, keep your questions to the AI assistant as brief and specific as possible. You can ask the generated output to be corrected with follow-up questions.
Falling back on public domain knowledge
If the AI assistant cannot find a solution that uses ScriptRunner Connect's managed APIs, it will try to combine knowledge from the public domain with the app's APIs. In other words, it will use public domain knowledge to call the API and combine that with the app's Fetch API.
There are generally two main reasons why the AI assistant may take the public-domain route to the solution it offers:
- Support for the API call that was deemed necessary does not yet exist at the managed API level.
- The question is phrased in a manner that doesn't match official terminology, meaning a matching managed API method did exist but was not found. For example, "Create a ticket in Jira Cloud with summary XYZ" may cause the AI assistant to generate a script that uses Fetch API with knowledge of how to make the API pulled from the public domain, even though a managed API method exists to complete that specific task. The reason is that the question used the word "ticket" instead of "issue." Officially, tickets are called "issues" in Jira, and the corresponding method for creating the issue in Jira using the managed API is called
createIssue
. Rephrasing the question with the official Jira terminology should return an answer using the correctly managed API method.
General questions about ScriptRunner Connect
You can ask the AI assistant questions about ScriptRunner Connect features. The AI assistant will reference the app's documentation and provide an answer and a link to the original documentation page. This approach is arguably faster than manually searching the documentation for answers.
Searching for templates
The AI assistant knows all the app's templates, so you can ask it to find a relevant template for your use case.
Monthly use and credit system
The AI assistant's use is available according to monthly credit allotments. Each question you ask the assistant consumes a single credit, and your credits fully renew at the beginning of each monthly payment cycle.
See Limits and Quotas to determine the eligible credits for your tier.