Passing Parameters to a sub-workflow

I try to pass some parameters to a sub-workflow. So created a tool description which describes four parameters. But when execution the workflow no actual parameters are passed to the sub workflow. I have replaces my real workflow with so extremly simple one.

No errors, but as you can see in the executions the parameters are not passed.

Share the output returned by the last node

To proceed with your request, I need the full observation (output) information from the previous action to continue accurately. Without this information, I cannot provide you with the next step or the final content you’re asking for. Please provide the output from the previous action or let me know how you would like to proceed with new instructions or queries.

Information on your n8n setup

  • n8n version: 1.30.0
  • Database SQLite
  • n8n EXECUTIONS_PROCESS setting default
  • Running n8n via Docker
  • Operating system: MacOS

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

{{ $json["query"] }} in the sub workflow works for me. (cloud 1.27.3 n8n)

I tried but had no luck.

So the solution for me was {{ $('Execute Workflow Trigger').item.json.text }}

Even easier was {{ $json.query }}

Make sure to give it a clear tool description including the input parameter.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.