...
To use the Beanshell Element:
...
, add the Beanshell prompt:
- Locate the Beanshell element under the Prompt Plugin section.
- Drag and drop the File element into the “Drop a prompt here” section.
Configure form properties
To properly integrate and configure the Beanshell, set the following fields:
Name | Description |
---|---|
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. |