Skip to main content

Katalon AI Assistant Preferences

This guide shows you how to set up AI services in Katalon AI Assistant, use AI to generate test cases, add project context automatically, get follow-up question suggestions in the Katalon AI Assistant chat window, and customize prompts in the Prompt Library.

Requirements

You can configure to use Katalon AI Assistant to further improve your experience.

In Katalon Studio, go to Katalon Studio Enterprise > Preferences > AI configurations and select a model.

ai configuration preferences

If your account has no configured AI model, the following notification appears: There is no AI model in your account. You can then click Request Access to contact your account owner to enable AI features, or add your own API key.

For OpenAI compatibility information, refer to OpenAI Supported Models.

AI service configuration​

Choose between using Katalon AI Service, using your own OpenAI, Azure OpenAI API key, Gemini API key, OpenAI compatible provider, or AWS Bedrock key.

When AI services and Katalon AI are enabled for your Account, you can freely choose between using:

AI ProviderSupported modelNotes
Katalon AI ServiceAgent mode: gpt-5.2
Ask mode: gpt-5-mini
Built-in; no configuration needed.
Supports multilingual inputs.
Personal OpenAI
  • gpt-5.4
  • gpt-5.2
  • gpt-5.1
  • gpt-5
  • gpt-5-mini
  • gpt-4.1
  • gpt-4.1-mini
  • gpt-4o-mini
  • o1
  • o3-mini
  • gpt-4o
  • gpt-3.5-turbo
Supports multilingual inputs.
Azure OpenAIUser-specified deployment

Tested with:
  • API version: 2025-01-01-preview
  • Deployment ID: o3-mini
Requires specifying the deployment name in configuration.

Notes: Some older API versions do not support tool calls in Agent mode.
Gemini
  • gemini-3.1-pro
  • gemini-2.5-pro
  • gemini-2.5-flash
URL points to the latest supported version of the Google Generative Language API.
OpenAI-Compatible Provider
  • Tested with gpt-4.1-mini
API key passed via the Authorization HTTP header.
AWS Bedrock
  • Claude Haiku 4.5
  • Claude Sonnet 4.5
  • US Claude Opus 4.1
  • US Claude Sonnet 4
Requires credential-based authentication configuration.

Click on the tab below to find more information about the AI service.

When selected, there is no need to to set up a key for Katalon AI Service.

You can, however, configure Katalon AI Assistant to auto-tag AI-generated test cases (e.g., API test cases or code generation) with default or custom tags, include project context such as the Object Repository and Custom Keywords, and enable follow-up question suggestions in the chat for a more guided AI experience.

Katalon AI Assistant settings

Katalon AI Assistant Preferences options​

Refer to the items below for the list and descriptions of Katalon AI Assistant Preferences options.

Append tags for test cases used AI generated capabilities​

Test cases with AI-generated tags are highlighted in purple.

Purple AI-generated test cases
  • API Test Case Generation - Check this option to automatically tag AI-generated API test cases with a default tag (API_Test_Generation) or custom tag name of your choice. When enabled, Katalon AI Assistant adds an AI tag (default or custom) to each API test case it generates. For details, see Generate API tests.

  • Katalon AI Assistant Code Generation - Check this option to automatically tag AI-generated test automation scripts from structured user prompts with a default tag (GenAI) or custom tag name of your choice. This option will automatically add the tag for these two actions:

    • Generate code via Script View: When you use Katalon AI Assistant to generate code directly within the Script mode of an existing test case. See Generate code.

    • Create and edit test cases via Katalon MCP Server: When you use Agent mode to perform actions like creating a new test case or editing an existing one based on your prompts. Learn more in Katalon AI Assistant Agent mode.

Auto-include project context information​

To improve the scripts generated by Katalon AI Assistant, you can enable both the Object repository and your Custom keywords. Katalon AI Assistant will then automatically use the list of all test object IDs and available custom keywords in the project as context. This feature applies only to Ask mode, because Agent mode can already connect to MCP servers and utilize their tools to access project context or create custom keywords. Learn more about Katalon AI Assistant's Katalon built-in MCP tools.

Enabling this option helps Katalon AI Assistant deliver more tailored responses, reduces the need to specify exact object paths or test objects, and lets you reuse predefined actions through custom keywords directly in the generated scripts.

Auto-suggest follow up questions in the chat​

When enabled, Katalon AI Assistant automatically suggests follow-up questions after providing a successful answer. This gives users greater control over their chat experience, whether they prefer guided suggestions or a more minimal interface.The feature works only for Ask mode.

Auto-suggest follow-up questions in the chat window

Customize engineering prompts with Prompt Library​

Starting from version 10.2.3, you can customize your engineering prompts using Prompt Library to provide more context and improve the accuracy of Katalon AI Assistant responses. This works for both Ask mode and Agent mode.

  1. Click Katalon Studio Enterprise on the main navigation and select Settings to open the Preferences dialog.
  2. Select Katalon > Katalon AI Assistant > Prompt Library.
  3. Configure your Prompt Library. Click on the prompt type you want to customize. Edit this text directly to include more context or specific instructions about how you want the AI to respond.
Katalon AI Assistant Prompt Library
  • Ask mode: Used in the Katalon AI Assistant Ask mode. This controls how Katalon AI Assistant responds to your general questions or guidance requests. Add more context about your application under test (AUT) or focus area, so you don’t have to repeat this every time you chat.
  • Agent mode: This defines the behavior of Agent mode in the Katalon AI Assistant chat window. . This defines the agent’s behavior, tool priorities, and response patterns. You can customize this prompt to match your workflow, team conventions, or testing methods, for example, setting tool priority. Changes take effect right away and are saved across restarts. You can click Revert Original or leave the prompt empty to use the default prompt from Katalon AI Assistant system.
  • Generate code: Used in the script editor, add style guide details or coding preferences to make the generated code better fit your project.
  • Explain code: Used in the script editor, specify if you want detailed technical explanations or a high-level summary, depending on your needs.
  • Analyze test failure: Used to customize the system prompt for AI Failure Analysis. This defines how Katalon AI Assistant interprets failure logs and generates analysis results.
  1. Click Apply or Apply and Close to save.

You can now use Katalon AI Assistant with your customized prompts. If the generated output is not to your expectation, simply open the Prompt Library and select Revert Original to revert each prompt or click Restore to Defaults to restore all prompts.

Notes
  • Use ${userSelection} for Generate code and Explain code. This variable represents the specific piece of text or code you have highlighted (selected) in the script editor.
  • Customize prompt is not applied for Katalon AI service.
Was this page helpful?