diff --git a/packages/components/nodes/agentflow/LLM/LLM.ts b/packages/components/nodes/agentflow/LLM/LLM.ts index cc3340283..d79bc56eb 100644 --- a/packages/components/nodes/agentflow/LLM/LLM.ts +++ b/packages/components/nodes/agentflow/LLM/LLM.ts @@ -897,7 +897,7 @@ class LLM_Agentflow implements INode { if (isStructuredOutput && typeof response === 'object') { const structuredOutput = response as Record for (const key in structuredOutput) { - if (structuredOutput[key]) { + if (structuredOutput[key] !== undefined && structuredOutput[key] !== null) { output[key] = structuredOutput[key] } }