Skip to main content
Version: 6.19

Prompts

Introduction to prompts

The Prompts page is used to create and manage the prompts required for AI features. Prompts are messages which are sent as requests to an LLM. Managing prompts separately from the code increases flexibility and makes it easier to adapt them to current prompt engineering best practices.

There are two types of prompts:

  • System prompts are used by ConSol CM itself. They are created automatically when a feature which uses AI is introduced. Typically, they do not require manual adjustments because they serve specific predefined purposes. The following system prompts exist:
    • prompt generation assistant DE: German prompt used by the prompt assistant
    • prompt generation assistant EN: English prompt used by the prompt assistant
    • summary prompt: Prompt used by the API method which creates a case summary
    • translation prompt: Prompt used for automatic translations
    • ai agent for track prompt: Prompt which controls the general behavior of the AI agent in CM/Track
    • ai agent for track prompt prefill: Prompt which controls how the AI agent prefills the case creation form in CM/Track
  • Custom prompts are used in scripts which are part of the custom scene created to adapt ConSol CM to a specific use case. They are created and managed by the customer.
tip

Usually, it is not necessary to modify system prompts. Only modify them if the related AI feature does not work as expected, and test your changes thoroughly.

Settings for prompts

The following settings exist for prompts:

  • Name: This is the name to reference the prompt in scripts.
  • Type: When you create a prompt, the type is set to Custom prompt. Prompts used by ConSol CM itself are called System prompts. They cannot be deleted.
  • Prompt text: This is the actual text that will be sent to the LLM when the prompt is executed.
  • Description: Optional. You can provide additional context, such as the script where the prompt is used, or any other detail for future reference.

Using the prompt wizard

The prompt wizard helps you with the creation of suitable prompts, lowering the entry barrier for AI integration. It consists of four steps which guide you through the information which you need to provide for crafting a high-quality prompt tailored to your specific use case.

Please proceed as follows to use the prompt wizard:

  1. Ensure that you have configured the settings for the default connection on the LLM connections page.
  2. Click the Prompt wizard button.
  3. Fill out data in the tabs:
    • Use case: Describe the use case.
    • Input and output: Describe the input and the expected output
    • Rules and output format: Provide additional instructions regarding the expected output and its format
    • Examples: Add examples containing the input and expected output
  4. Click the Generate prompt button.
  5. Review the prompt and click Save changes.

Using prompts in scripts

Use the methods from AIPromptService to use prompts in scripts. You need to pass the name of the prompt as a parameters:

promptService.getText("myprompt")