You have to call the subworkflow, from the main workflow, using “Execute Sub-workflow” node.
The subworkflow will return the output from its last executed node, automatically.
Alternatively you can enable the option “Respond to webhook” on the trigger of the workflow and add a “Respond to webhook” node to return the data you want, in any part of the workflow.
Hello, I hope you are doing well. I understand that you want to capture the output of the sub-workflow of a sub-agent that performs an operation and returns the value: “customernumber”: “1234567”. In my opinion, in that sub-workflow you must capture that data with a tool (database, etc.). It could be the same one that the main flow is using, so you can transfer that data. I hope this helps. Best regards.
Hi, just use $json in the next node after the “Execute Subworkflow” node to access the result. Or use $(‘Name of the Execute Subworkflow node’) to access the data.