Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use the Beanshell Element:

...

, add the Beanshell prompt:

  1. Locate the Beanshell element under the Prompt Plugin section.
  2. Drag and drop the File element into the “Drop a prompt here” section.
    Image Added

Configure form properties

Image Added

To properly integrate and configure the Beanshell, set the following fields:

NameDescription
Script

...

The script is where you define how the Beanshell interacts with the OpenAI API and other form data. You can write custom Java-based Beanshell code to manipulate inputs, format prompts, or dynamically retrieve content before sending it to OpenAI.
Purpose

...

This is a short, human-readable description of what the OpenAI element is being used for. It helps the AI agent understand the context of the request and tailor its response more effectively.