Versions Compared

Key

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

Introduction

The Beanshell BeanShell Enhancer allows you to run custom Java code to modify or enhance the final AI response before it is returned to the user. Unlike prompt plugins that influence the input to the AI, Enhancers operate after the AI has generated a response, giving you full control to transform, format, filter, or even enrich the output.

It leverages the power of Beanshell BeanShell scripting (Java syntax) to handle complex operations beyond what’s possible with standard configuration.

Get started

How to use it

To use the Beanshell BeanShell Element, add the Beanshell enhancer:

  1. Locate the Beanshell BeanShell element under the Enhancers section in the palette.
  2. Drag and drop the element into the Drop an enhancer here section.

Configure form properties

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

...