Node Documentation

LanguageModel Node

Send prompts to browser native LLM and use the response dynamically in your flow.

Overview

Send prompts to browser native LLM and use the response dynamically in your flow.

Category: AI

Tutorial: Start interactive node tutorial

Configurable properties

LabelPropertyTypeDefaultDescription
System promptsystemPrompttextarea""The system prompt
User promptuserPrompttextarea""The user prompt. Supports variables with handlebars.
Collect and send historymanageHistorycheckboxtrueManage and use the history
On back in contextonReentryselect"reset"What should happen when the node re-enters the context?
On prompt changeonChangeselect"reset"

Initial states

StateInitial ValueDescription
thinkingfalseIs the model thinking right now?
usingfalseIs the model using a tool right now?
donefalseIs the model done?
answernullContains the answer as a string
errorfalseDid an error occur?
lastUserPrompt""Contains the last user prompt
historyContains the history if the node manages it itself.

Callable methods

  • reset() - Resets the node to its default state
  • generate() - Start generating an output.
  • used() - Called after successful use of a tool.