Sub-agent did not receive output from main flow

in my main flow, the message and file id are available but it did not pass the value to the sub-agent to trigger the sub flow. Thus the sub-flow’s output is always null.

anyone can help?

1 Like

Hey,

I’ve seen this quite recently, and I heard it to do with the models being used, which LLM are u using?

Best regards,

Samuel

hello
I used Gemini chat model. yet, I have fixed the issue by adapting this user prompt to always pass the file id to the according tool.

try this:

{{ $json.text }}
by extracting the file ID value {{ $json.files[0].id }} and

  • pass {{ $json.files[0].id }} to the document_processing if file is pdf/doc
  • pass {{ $json.files[0].id }} to image_processing if file is an image (jpeg, jpg, png)
1 Like