- name: decide function_name: trigger_message_processor input_filter: [load_record, review_agent] # outputs of these two nodes only prefilled_params: message_processor_id: <function-id>
List node names. input means the workflow’s input messages.
Without input_filter, a node receives everything in memory so far.
The names are the names outputs are stored under: a node’s name, and for a referenced agent the agent.name from its own YAML (not the namespace/name reference).
An agent’s role and instructions are its system prompt; the selected outputs arrive as the messages of the conversation. A JSON output from an earlier node arrives as JSON text; images and documents produced by a file download node arrive as media the model can see.
A function node (any entry in function_nodes) turns its inputs into parameters:
Each selected message is parsed as JSON. Messages that are not JSON (for example a plain-text workflow input) are skipped. The last selected message must be JSON, unless all the node’s parameters are prefilled.
The parsed objects are merged, flat, in the order the nodes ran; a later key overwrites an earlier one.
node_outputs is added: every parsed payload grouped by the node that produced it, { "<node>": [payload, …] }. A list, because a node can contribute several outputs (see ForEach).
Variables are merged over the inputs.
prefilled_params are applied last and always win.
So a function reading two upstream nodes can use either style:
export default function (input) { // flat: fields of the upstream outputs, merged const total = input.total_amount; // grouped: unambiguous when two nodes have fields with the same name const record = input.node_outputs.load_record?.[0]; const review = input.node_outputs.review_agent?.[0]; // variables const customer = input.customer_id;}
Prefer node_outputs whenever a function reads more than one node. The flat merge silently overwrites fields that appear in both, such as id or status.
With input_filter: [triage, load_customer], where triage returned {"category": "billing"} and load_customer returned {"customer": [{"id": "C-1", "plan": "Pro"}]}, and the run has variables: {"region": "EU"}, a function receives:
Here datasource_id and query_id are fixed, while params comes from the output of customer_params. A common pattern is a small function that builds exactly the parameters the next node needs from variables and earlier outputs.
// the "params" functionexport default function (input) { if (!input.customer_id) throw new Error('customer_id variable is required'); return { params: { customer_id: String(input.customer_id) } };}
When a workflow starts with a function node, send JSON as the run’s input; "{}" is enough. A plain-text input is rejected by a function node.
Whatever the function returns: a JSON string for most built-ins and your functions; media for a file download of an image or video
Sub-workflow
The output of its last node only
ForEach
The last item’s result, or every item’s result with forward_all_results: true
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Wavefront AI | Rootflo","colors":{"primary":"#3B82F6","light":"#60A5FA","dark":"#1E40AF"},"logo":{"light":"https://mintcdn.com/rootfloai/AiHxIkh9KtGYiz8E/logo/light.png?fit=max\u0026auto=format\u0026n=AiHxIkh9KtGYiz8E\u0026q=85\u0026s=b493e8fe23f59899d246e2ca32396012","dark":"https://mintcdn.com/rootfloai/AiHxIkh9KtGYiz8E/logo/dark.png?fit=max\u0026auto=format\u0026n=AiHxIkh9KtGYiz8E\u0026q=85\u0026s=cc952b50a8b76554187f5472425ec816"},"favicon":"https://mintcdn.com/rootfloai/ESOMPNB1NNLp7sKF/favicon.png?fit=max\u0026auto=format\u0026n=ESOMPNB1NNLp7sKF\u0026q=85\u0026s=bcf18853f4828199e6cb71af384a8748","navbar":{"links":[{"href":"https://rootflo.ai","label":"Website"}],"primary":{"type":"button","label":"Contact us","href":"mailto:sales@rootflo.ai?subject=Partnership%20Inquiry\u0026body=Hi%2C%0A%0AI%20would%20like%20to%20know%20more%20about%20your%20Wavefront%20Enterprise%20AI%20Platform.%0A%0AThanks%2C%0A%0A"}},"footer":{"socials":{"x":"https://x.com/rootflo_ai","github":"https://github.com/rootflo/wavefront","linkedin":"https://linkedin.com/company/rootflo","discord":"https://discord.gg/BPXsNwfuRU"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/rootflo/flo-ai"},{"anchor":"Discord","icon":"comments","href":"https://discord.gg/BPXsNwfuRU"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rootfloai","hasAudioNarration":false,"actualSubdomain":"rootfloai","customDomains":["wavefront.rootflo.ai"],"gitSource":{"type":"github","owner":"rootflo","repo":"wavefront","deployBranch":"develop","contentDirectory":"documentation","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad873e433c6f36d82f3b613","collectionId":"c73d5747-f7b7-442a-8b52-1b1ffc5e612b","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad873e433c6f36d82f3b613"},"entitlements":{},"buildId":"6ad873e433c6f36d82f3b613","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Wavefront","count":38},{"language":"default","tag":"FloAI","count":13},{"language":"default","tag":"Getting started","count":8},{"language":"default","tag":"Workflows","count":7},{"language":"default","tag":"Core Features","count":5},{"language":"default","tag":"Models and agents","count":5},{"language":"default","tag":"Data, files and configuration","count":5},{"language":"default","tag":"Run and integrate","count":5},{"language":"default","tag":"Advanced","count":4},{"language":"default","tag":"Guides","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"wavefront/workflow-data-flow","slug":"/wavefront/workflow-data-flow","pageMetadata":{"title":"Passing data between nodes","description":"input_filter, how agents and function nodes receive inputs, node_outputs, variables and prefilled parameters","icon":"arrow-right-arrow-left","href":"/wavefront/workflow-data-flow"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"input_filter, how agents and function nodes receive inputs, node_outputs, variables and prefilled parameters\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Each node chooses which earlier outputs it receives with `,_jsx(_components.code,{children:`input_filter`}),`, and receives them in a form that depends on the node type.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`choosing-inputs-with-input_filter`,children:[`Choosing inputs with `,_jsx(_components.code,{children:`input_filter`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`- `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`decide`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` function_name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`trigger_message_processor`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` input_filter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`load_record`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`review_agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# outputs of these two nodes only`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` prefilled_params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` message_processor_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\u003cfunction-id>`})]}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`List node names. `,_jsx(_components.code,{children:`input`}),` means the workflow’s input messages.`]}),`\n`,_jsxs(_components.li,{children:[`Without `,_jsx(_components.code,{children:`input_filter`}),`, a node receives everything in memory so far.`]}),`\n`,_jsxs(_components.li,{children:[`The names are the names outputs are `,_jsx(_components.strong,{children:`stored`}),` under: a node’s `,_jsx(_components.code,{children:`name`}),`, and for a `,_jsx(_components.a,{href:`/wavefront/workflows#referencing-saved-agents`,children:`referenced agent`}),` the `,_jsx(_components.code,{children:`agent.name`}),` from its own YAML (not the `,_jsx(_components.code,{children:`namespace/name`}),` reference).`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-an-agent-receives`,children:`What an agent receives`}),`\n`,_jsxs(_components.p,{children:[`An agent’s role and instructions are its system prompt; the selected outputs arrive as the messages of the conversation. A JSON output from an earlier node arrives as JSON text; images and documents produced by a `,_jsx(_components.a,{href:`/wavefront/function-nodes#datasource_download_file`,children:`file download node`}),` arrive as media the model can see.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-a-function-node-receives`,children:`What a function node receives`}),`\n`,_jsxs(_components.p,{children:[`A function node (any entry in `,_jsx(_components.code,{children:`function_nodes`}),`) turns its inputs into parameters:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Each selected message is parsed as JSON.`}),` Messages that are not JSON (for example a plain-text workflow input) are skipped. The `,_jsx(_components.strong,{children:`last`}),` selected message must be JSON, unless all the node’s parameters are prefilled.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The parsed objects are merged, flat,`}),` in the order the nodes ran; a later key overwrites an earlier one.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`node_outputs`})}),` is added: every parsed payload grouped by the node that produced it, `,_jsx(_components.code,{children:`{ \"\u003cnode>\": [payload, …] }`}),`. A list, because a node can contribute several outputs (see `,_jsx(_components.a,{href:`/wavefront/routing-and-iteration#foreach`,children:`ForEach`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Variables`}),` are merged over the inputs.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`prefilled_params`})}),` are applied last and always win.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`So a function reading two upstream nodes can use either style:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` default`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`input`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // flat: fields of the upstream outputs, merged`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` total`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`total_amount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // grouped: unambiguous when two nodes have fields with the same name`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` record`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`node_outputs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`load_record`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` review`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`node_outputs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`review_agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // variables`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` customer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Prefer `,_jsx(_components.code,{children:`node_outputs`}),` whenever a function reads more than one node. The flat merge silently overwrites fields that appear in both, such as `,_jsx(_components.code,{children:`id`}),` or `,_jsx(_components.code,{children:`status`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`worked-example`,children:`Worked example`}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`input_filter: [triage, load_customer]`}),`, where `,_jsx(_components.code,{children:`triage`}),` returned `,_jsx(_components.code,{children:`{\"category\": \"billing\"}`}),` and `,_jsx(_components.code,{children:`load_customer`}),` returned `,_jsx(_components.code,{children:`{\"customer\": [{\"id\": \"C-1\", \"plan\": \"Pro\"}]}`}),`, and the run has `,_jsx(_components.code,{children:`variables: {\"region\": \"EU\"}`}),`, a function receives:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"category\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"billing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"C-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"plan\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Pro\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"region\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EU\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"_wf_execution_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"node_outputs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"triage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"category\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"billing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"load_customer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"customer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"C-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"plan\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Pro\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }] }]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`prefilled-parameters`,children:`Prefilled parameters`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`prefilled_params`}),` fixes a function node’s arguments in the YAML:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`- `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`load_customer`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` function_name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`datasource_execute_query`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` input_filter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`customer_params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` prefilled_params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` datasource_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\u003cdatasource-id>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` query_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`customer_detail`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Here `,_jsx(_components.code,{children:`datasource_id`}),` and `,_jsx(_components.code,{children:`query_id`}),` are fixed, while `,_jsx(_components.code,{children:`params`}),` comes from the output of `,_jsx(_components.code,{children:`customer_params`}),`. A common pattern is a small `,_jsx(_components.a,{href:`/wavefront/functions`,children:`function`}),` that builds exactly the parameters the next node needs from variables and earlier outputs.`]}),`\n`,_jsx(Heading,{level:`2`,id:`turning-variables-into-node-inputs`,children:`Turning variables into node inputs`}),`\n`,_jsxs(_components.p,{children:[`Variables are plain values. When a node needs a structured argument, such as the `,_jsx(_components.code,{children:`params`}),` object of a query, add a function as the first step:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`function_nodes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`params`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` function_name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`trigger_message_processor`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` prefilled_params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`message_processor_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\u003cfunction-id>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`load_customer`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` function_name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`datasource_execute_query`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` input_filter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` prefilled_params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`datasource_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\u003cdatasource-id>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`query_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`customer_detail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// the \"params\" function`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` default`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`input`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'customer_id variable is required'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`params:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer_id:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customer_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) } };`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`When a workflow starts with a function node, send JSON as the run’s input; `,_jsx(_components.code,{children:`\"{}\"`}),` is enough. A plain-text input is rejected by a function node.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-a-node-outputs`,children:`What a node outputs`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Node`}),_jsx(_components.th,{children:`Output`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Agent with a parser`}),_jsx(_components.td,{children:`The JSON object`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Agent without a parser`}),_jsx(_components.td,{children:`Its text`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Function node`}),_jsx(_components.td,{children:`Whatever the function returns: a JSON string for most built-ins and your functions; media for a file download of an image or video`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sub-workflow`}),_jsx(_components.td,{children:`The output of its last node only`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`ForEach`}),_jsxs(_components.td,{children:[`The last item’s result, or every item’s result with `,_jsx(_components.code,{children:`forward_all_results: true`})]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Passing data between nodes","description":"input_filter, how agents and function nodes receive inputs, node_outputs, variables and prefilled parameters","icon":"arrow-right-arrow-left","href":"/wavefront/workflow-data-flow"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Choosing inputs with input_filter","slug":"choosing-inputs-with-input_filter","depth":2,"children":[]},{"title":"What an agent receives","slug":"what-an-agent-receives","depth":2,"children":[]},{"title":"What a function node receives","slug":"what-a-function-node-receives","depth":2,"children":[{"title":"Worked example","slug":"worked-example","depth":3,"children":[]}]},{"title":"Prefilled parameters","slug":"prefilled-parameters","depth":2,"children":[]},{"title":"Turning variables into node inputs","slug":"turning-variables-into-node-inputs","depth":2,"children":[]},{"title":"What a node outputs","slug":"what-a-node-outputs","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"rootfloai","siteName":"Wavefront AI | Rootflo","title":"Passing data between nodes - Wavefront AI | Rootflo","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-21T08:12:26.700Z","originalFileLocation":"wavefront/workflow-data-flow.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"input_filter, how agents and function nodes receive inputs, node_outputs, variables and prefilled parameters\">\u003cmeta data-mint-head name=\"application-name\" content=\"Wavefront AI | Rootflo\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Passing data between nodes - Wavefront AI | Rootflo\">\u003cmeta data-mint-head property=\"og:description\" content=\"input_filter, how agents and function nodes receive inputs, node_outputs, variables and prefilled parameters\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Wavefront AI | Rootflo\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://wavefront.rootflo.ai/wavefront/workflow-data-flow\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rootfloai.mintlify.site/_mintlify/api/og/v2?division=Workflows\u0026amp;title=Passing+data+between+nodes\u0026amp;description=input_filter%2C+how+agents+and+function+nodes+receive+inputs%2C+node_outputs%2C+variables+and+prefilled+parameters\u0026amp;theme=bcaf035d0ae7f9c56e224f26\u0026amp;signature=ee679bdae033ea49c5efabf1923f835e2b0a84e546c743d5da3669f03165f302\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Passing data between nodes - Wavefront AI | Rootflo\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"input_filter, how agents and function nodes receive inputs, node_outputs, variables and prefilled parameters\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rootfloai.mintlify.site/_mintlify/api/og/v2?division=Workflows\u0026amp;title=Passing+data+between+nodes\u0026amp;description=input_filter%2C+how+agents+and+function+nodes+receive+inputs%2C+node_outputs%2C+variables+and+prefilled+parameters\u0026amp;theme=bcaf035d0ae7f9c56e224f26\u0026amp;signature=ee679bdae033ea49c5efabf1923f835e2b0a84e546c743d5da3669f03165f302\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Wavefront AI | Rootflo\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://wavefront.rootflo.ai/wavefront/workflow-data-flow\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/wavefront/workflow-data-flow.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://wavefront.rootflo.ai/#organization\",\"name\":\"Wavefront AI | Rootflo\",\"url\":\"https://wavefront.rootflo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/rootfloai/AiHxIkh9KtGYiz8E/logo/light.png?fit=max\u0026auto=format\u0026n=AiHxIkh9KtGYiz8E\u0026q=85\u0026s=b493e8fe23f59899d246e2ca32396012\"}},{\"@type\":\"WebSite\",\"@id\":\"https://wavefront.rootflo.ai#website\",\"name\":\"Wavefront AI | Rootflo\",\"url\":\"https://wavefront.rootflo.ai\",\"publisher\":{\"@id\":\"https://wavefront.rootflo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://wavefront.rootflo.ai/wavefront/workflow-data-flow#webpage\",\"url\":\"https://wavefront.rootflo.ai/wavefront/workflow-data-flow\",\"name\":\"Passing data between nodes\",\"description\":\"input_filter, how agents and function nodes receive inputs, node_outputs, variables and prefilled parameters\",\"dateModified\":\"2026-10-21T08:12:26.700Z\",\"isPartOf\":{\"@id\":\"https://wavefront.rootflo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://wavefront.rootflo.ai/wavefront/workflow-data-flow#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://wavefront.rootflo.ai/wavefront/workflow-data-flow#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Workflows\",\"item\":\"https://wavefront.rootflo.ai/wavefront/workflows\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Passing data between nodes\",\"item\":\"https://wavefront.rootflo.ai/wavefront/workflow-data-flow\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://wavefront.rootflo.ai/wavefront/workflow-data-flow#article\",\"headline\":\"Passing data between nodes\",\"name\":\"Passing data between nodes\",\"description\":\"input_filter, how agents and function nodes receive inputs, node_outputs, variables and prefilled parameters\",\"url\":\"https://wavefront.rootflo.ai/wavefront/workflow-data-flow\",\"mainEntityOfPage\":{\"@id\":\"https://wavefront.rootflo.ai/wavefront/workflow-data-flow#webpage\"},\"dateModified\":\"2026-10-21T08:12:26.700Z\",\"publisher\":{\"@id\":\"https://wavefront.rootflo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://wavefront.rootflo.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Wavefront AI | Rootflo\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Wavefront AI | Rootflo","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/rootflo/flo-ai"},{"anchor":"Discord","icon":"comments","href":"https://discord.gg/BPXsNwfuRU"}]},"tabs":[{"tab":"Wavefront","groups":[{"group":"Getting started","pages":[{"title":"Project Overview","href":""},{"title":"How Wavefront fits together","icon":"sitemap","href":"/wavefront/overview"},{"title":"Concepts","icon":"book","href":"/wavefront/concepts"},{"title":"Tour of the Wavefront Console","icon":"map","href":"/wavefront/console-tour"},{"title":"Quickstart","icon":"rocket","href":"/wavefront/quickstart"}]},{"group":"Models and agents","pages":[{"title":"LLM Repository","icon":"brain","href":"/wavefront/llm-configs"},{"title":"Agents","icon":"robot","href":"/wavefront/agents"},{"title":"Structured output","icon":"brackets-curly","href":"/wavefront/structured-output"},{"title":"Tools","icon":"wrench","href":"/wavefront/tools"},{"title":"Images, documents and video","icon":"photo-film","href":"/wavefront/media"}]},{"group":"Workflows","pages":[{"title":"Workflows","icon":"diagram-project","href":"/wavefront/workflows"},{"title":"How a workflow runs","description":"Sequential execution, edges and routers, memory, the output, and limits","icon":"list-ol","href":"/wavefront/workflow-execution-model"},{"title":"Passing data between nodes","icon":"arrow-right-arrow-left","href":"/wavefront/workflow-data-flow"},{"title":"Sub-workflows","description":"Nest workflows to keep each agent's context small and reuse building blocks","icon":"layer-group","href":"/wavefront/sub-workflows"},{"title":"Routing and iteration","icon":"code-branch","href":"/wavefront/routing-and-iteration"},{"title":"Function nodes","icon":"cubes","href":"/wavefront/function-nodes"},{"title":"Versions","icon":"code-compare","href":"/wavefront/versions"}]},{"group":"Functions","pages":[{"title":"Functions","icon":"function","href":"/wavefront/functions"}]},{"group":"Data, files and configuration","pages":[{"title":"Datasources","icon":"database","href":"/wavefront/datasources"},{"title":"Dynamic queries","icon":"magnifying-glass","href":"/wavefront/dynamic-queries"},{"title":"File storage","icon":"folder-open","href":"/wavefront/file-storage"},{"title":"Configurations","icon":"sliders","href":"/wavefront/configurations"},{"title":"Audit trail","icon":"clipboard-list","href":"/wavefront/audit-trail"}]},{"group":"Run and integrate","pages":[{"title":"Running workflows","icon":"play","href":"/wavefront/running-workflows"},{"title":"Integrating an application","icon":"plug","href":"/wavefront/integrating-an-app"},{"title":"Users and access","icon":"users","href":"/wavefront/users-and-access"},{"title":"Chatbots","icon":"comments","href":"/wavefront/chatbots"},{"title":"Deploying from git","icon":"code-branch","href":"/wavefront/deploy-as-code"}]},{"group":"Guides","pages":[{"title":"Guide: verify a document against submitted data","icon":"file-circle-check","href":"/guides/document-verification"},{"title":"Guide: configurable rules and scoring","icon":"scale-balanced","href":"/guides/rules-and-scoring"},{"title":"Guide: a chat assistant beside a record","icon":"message-bot","href":"/guides/record-chat-assistant"},{"title":"Guide: a review dashboard and work lists","icon":"chart-column","href":"/guides/review-dashboard"}]},{"group":"Patterns and troubleshooting","pages":[{"title":"Patterns and best practices","icon":"lightbulb","href":"/wavefront/patterns"},{"title":"Troubleshooting","icon":"bug","href":"/wavefront/troubleshooting"}]},{"group":"Operations","pages":[{"title":"Architecture","icon":"server","href":"/operations/architecture"},{"title":"Environment and configuration","icon":"gear","href":"/operations/environment"},{"title":"Running several apps","icon":"boxes-stacked","href":"/operations/multi-app"},{"title":"Upgrades","icon":"arrow-up-right-dots","href":"/operations/upgrades"}]}]},{"tab":"FloAI","pages":[{"title":"FloAI","href":"/flo-ai"}]}]},"basePath":"","title":"Passing data between nodes - Wavefront AI | Rootflo","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":[],"chunks":[]}