FlowiseAI/Flowise · error · Error
Worker input variables values are not provided!
Error message
Worker input variables values are not provided!
What it means
Thrown after computing `workerInputVariables = getInputVariables(workerPrompt)` — the set of placeholders found in the prompt template. The check verifies every placeholder has a corresponding key in workerInputVariablesValues; if any are missing, the prompt cannot be fully rendered and the worker cannot run.
Source
Thrown at packages/components/nodes/multiagents/Worker/Worker.ts:118
let workerInputVariablesValues: ICommonObject = {}
if (promptValuesStr) {
try {
workerInputVariablesValues = typeof promptValuesStr === 'object' ? promptValuesStr : JSON.parse(promptValuesStr)
} catch (exception) {
throw new Error("Invalid JSON in the Worker's Prompt Input Values: " + exception)
}
}
workerInputVariablesValues = handleEscapeCharacters(workerInputVariablesValues, true)
const llm = model || (supervisor.llm as BaseChatModel)
const multiModalMessageContent = supervisor?.multiModalMessageContent || []
const abortControllerSignal = options.signal as AbortController
const workerInputVariables = getInputVariables(workerPrompt)
if (!workerInputVariables.every((element) => Object.keys(workerInputVariablesValues).includes(element))) {
throw new Error('Worker input variables values are not provided!')
}
const agent = await createAgent(
llm,
[...tools],
workerPrompt,
multiModalMessageContent,
workerInputVariablesValues,
maxIterations,
{
sessionId: options.sessionId,
chatId: options.chatId,
input
}
)
const workerNode = async (state: ITeamState, config: RunnableConfig) =>
await agentNode(View on GitHub (pinned to abe4a8601a)
Solutions
- Inspect `workerInputVariables` (log it) and add every missing key to promptValues.
- Ensure spelling and case of placeholder names match exactly between template `{Name}` and promptValues key `Name`.
- Remove unused placeholders from the template.
- Optionally make unused variables fall back to empty strings instead of throwing.
Example fix
// before
if (!workerInputVariables.every((element) => Object.keys(workerInputVariablesValues).includes(element))) {
throw new Error('Worker input variables values are not provided!')
}
// after
const missing = workerInputVariables.filter((v) => !Object.keys(workerInputVariablesValues).includes(v))
if (missing.length) {
throw new Error(`Worker prompt is missing values for: ${missing.join(', ')}`)
} Defensive patterns
Strategy: validation
Validate before calling
const required = getInputVariables(workerPrompt)
const provided = Object.keys(workerInputVariablesValues)
const missing = required.filter((v) => !provided.includes(v))
if (missing.length) throw new Error(`Worker prompt missing values for: ${missing.join(', ')}`) Prevention
- Keep placeholder names consistent between template and values.
- Log getInputVariables output while iterating on prompts.
- Treat placeholder names as case-sensitive.
When it happens
Trigger: Prompt template contains `{foo}` and `{bar}` but promptValues only provides `foo`; placeholder name typo between template and values; template was edited to add a new variable without updating values.
Common situations: Iterating on a worker prompt and adding new placeholders; renaming variables in the template but not in the JSON values; case-sensitivity mismatches.
Related errors
- Supervisor name is required!
- Worker name is required!
- Worker prompt is required!
- Invalid JSON in the Worker's Prompt Input Values: ${exceptio
- Invalid JSON in the PromptTemplate's promptValues: ${excepti
AI-assisted analysis of FlowiseAI/Flowise@abe4a8601a (2026-08-12).
Data as JSON: /api/errors/f1bfc7c310be58d4.
Report an issue: GitHub.