Skip to main content

AI Workbench

The workbench is the place to get a prompt right before it becomes part of a workflow. You write the request, fill in sample values for its variables, send it to your language model and look at the answer. When it works, one click creates the matching node in the diagram.

AI Workbench with the prompt, its variables and the answer

Work with variables​

A prompt may contain variables such as ${variable.customer_message}. When the workbench is opened from a node in a diagram it lists the variables that earlier steps provide, and you can type a value for each one to see how the model reacts to real-looking input. The first text field shows the processed prompt, the text that is actually sent; the second shows the answer.

Choose the model​

The workbench uses the endpoints and models of the System Settings: Ollama, GPT4All, llama.cpp or an OpenAI-compatible service. Choosing a local model keeps the text on your machine, see privacy.

Buttons​

  • Send request sends the prompt to the model.
  • Save stores the changes and returns to the diagram when the workbench was opened with the wrench button of a question answering node.
  • Create in editor creates a new node in the diagram editor with the tested prompt and settings.

Advanced settings​

SettingEffect
Temperature (0 to 2)Low values (0.2) make answers focused and repeatable, high values (0.8) more varied. Use low values to classify and extract, higher ones to write.
Top-PNucleus sampling, an alternative to temperature: 0.1 considers only the most probable tokens that add up to 10 %.
Maximum number of returned tokensUpper bound for the length of the answer. The context size of the model limits it as well.

System prompt​

The system prompt is sent with every request and describes how the model should behave: role, tone, language, what it must not do. Its format depends on the model; see prompt template.

Tips for good prompts​

  • Say what the answer must look like ("answer with one word: billing, technical or other") so that a following decision can use it.
  • Add only the data the model needs and nothing that must not leave your company.
  • Test with the worst messages you have received, not only the friendly ones.
  • Let a person look at answers to sensitive requests, see AI workflows with a human in the loop.

You can also ask the agent to write and test a prompt for you.