FlowiseAI/Flowise · error · Error
LLM Node name is required!
Error message
LLM Node name is required!
What it means
The LLM Node requires a display name; the label is slugified (lowercased, spaces to underscores) into the LangGraph node identifier. Thrown at init when inputs.llmNodeName is empty.
Source
Thrown at packages/components/nodes/sequentialagents/LLMNode/LLMNode.ts:409
}
async init(nodeData: INodeData, input: string, options: ICommonObject): Promise<any> {
// Tools can be connected through ToolNodes
let tools = nodeData.inputs?.tools
tools = flatten(tools)
let systemPrompt = nodeData.inputs?.systemMessagePrompt as string
systemPrompt = transformBracesWithColon(systemPrompt)
let humanPrompt = nodeData.inputs?.humanMessagePrompt as string
humanPrompt = transformBracesWithColon(humanPrompt)
const llmNodeLabel = nodeData.inputs?.llmNodeName as string
const sequentialNodes = nodeData.inputs?.sequentialNode as ISeqAgentNode[]
const model = nodeData.inputs?.model as BaseChatModel
const promptValuesStr = nodeData.inputs?.promptValues
const output = nodeData.outputs?.output as string
const llmStructuredOutput = nodeData.inputs?.llmStructuredOutput
if (!llmNodeLabel) throw new Error('LLM Node name is required!')
const llmNodeName = llmNodeLabel.toLowerCase().replace(/\s/g, '_').trim()
if (!sequentialNodes || !sequentialNodes.length) throw new Error('Agent must have a predecessor!')
let llmNodeInputVariablesValues: ICommonObject = {}
if (promptValuesStr) {
try {
llmNodeInputVariablesValues = typeof promptValuesStr === 'object' ? promptValuesStr : JSON.parse(promptValuesStr)
} catch (exception) {
throw new Error("Invalid JSON in the LLM Node's Prompt Input Values: " + exception)
}
}
llmNodeInputVariablesValues = handleEscapeCharacters(llmNodeInputVariablesValues, true)
const startLLM = sequentialNodes[0].startLLM
const llm = model || startLLM
if (nodeData.inputs) nodeData.inputs.model = llm
View on GitHub (pinned to abe4a8601a)
Solutions
- Enter a non-empty, unique name in the 'LLM Node Name' field.
- Avoid name collisions with other sequential nodes (slugified ids must be unique in the graph).
Defensive patterns
Strategy: validation
Validate before calling
const label = (nodeData.inputs?.llmNodeName ?? '').trim()
if (!label) throw new Error('Provide an LLM Node Name before init') Prevention
- Add 'name every sequential node' to your authoring checklist.
- Keep slugified names unique within the flow.
When it happens
Trigger: The 'LLM Node Name' parameter was left blank.
Common situations: New node added and saved before naming; name cleared during editing.
Related errors
- Execute Flow node name is required!
- Agent must have a predecessor!
- Custom function must have a predecessor!
- End must have a predecessor!
- Execute Flow must have a predecessor!
AI-assisted analysis of FlowiseAI/Flowise@abe4a8601a (2026-08-12).
Data as JSON: /api/errors/a8dc2d6bb6fcbad3.
Report an issue: GitHub.