We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ef0e99 commit 2baa43dCopy full SHA for 2baa43d
packages/server/src/utils/buildAgentflow.ts
@@ -344,7 +344,8 @@ export const resolveVariables = async (
344
: undefined
345
if (nodeData && nodeData.data) {
346
// Replace the reference with actual value
347
- const actualValue = (nodeData.data['output'] as ICommonObject)?.content
+ const nodeOutput = nodeData.data['output'] as ICommonObject
348
+ const actualValue = nodeOutput?.content ?? nodeOutput?.http?.data
349
// For arrays and objects, stringify them to prevent toString() conversion issues
350
const formattedValue =
351
Array.isArray(actualValue) || (typeof actualValue === 'object' && actualValue !== null)
0 commit comments