Describe the problem/error/question
I have a sub-workflow that calls an API and retrieves a CSV file. I'm currently trying to figure out how to pass that CSV file up to its parent workflow.
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your callin.io setup
- callin.io version:
- Database (default: SQLite):
- callin.io EXECUTIONS_PROCESS setting (default: own, main):
- Running callin.io via (Docker, npm, callin.io cloud, desktop app):
- Operating system:
Please provide the rewritten markdown content *it should be in the markdown format.
Hello,
Here are some related discussions:
- How to Upload an Image to Chat and Use It in a Sub-Workflow in callin.io? - #6 by solomon
- How to get binary data in the correct way?
For your situation, storing and then retrieving the binary file seems like the most effective approach. You could delete the file once the workflow is complete, allowing you to consistently use the same filename.
Alternative solution - might be easier than the above ones
Typically, a sub-workflow outputs the data processed by its final node. The arrangement of nodes on the canvas influences the execution order, especially when dealing with multiple branches, as in your setup.
The nodes in the upper branch will execute before those in the lower branch, with the latter executing last and returning its output to the parent workflow.
In your specific case, this is the node that executes last:
Therefore, to ensure your binary file is returned, confirm that it is the last node to execute within the sub-workflow.
If this response resolves your query, please consider marking it as the solution.
Thanks for the input!
I'm exploring the best method to transmit binary data upwards, as the calling module is an AI agent and I need to interact with the CSV file. I'm wondering if you have any experience with this type of task.
Hello!
I've just detailed the steps above on how to achieve this.
Do you have any particular questions?
This discussion was automatically closed 90 days following the last response. New replies are no longer permitted.