Can't use the output of the Main Agent's Tool's output at the tool agent but I can't use it right now

I have a workflow where a Main Agent coordinates the process. When a user uploads a transcript file, the workflow calls a PreprocessTranscript tool (sub-workflow) which outputs a cleaned transcript_text.

The Main Agent then triggers the Summarize Agent tool, which should receive transcript_text and produce a summary.

Problem: Summarize Agent can’t access transcript_text from PreprocessTranscript. If I reference it directly inside Summarize Agent (e.g. {{ $("PreprocessTranscript").item.json.transcript_text }}), I get an error.

I expected Main Agent to forward the value, but I’m struggling to send the output of PreprocessTranscript to Summarize Agent correctly.


What is the error message (if any)?

pgsql

KopyalaDüzenle

No path back to referenced node
There is no connection back to the node 'PreporcessTranscript', but it's used in an expression here.

Please share your workflow

Share the output returned by the last node

Currently, Summarize Agent fails because transcript_text is undefined.

Information on your n8n setup

  • n8n version:Running version [email protected]
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via n8n cloud,:
  • Operating system:
1 Like

The issue with your current workflow is that:

The output from PreprocessTranscript is scoped within the Main Agent and is not automatically passed to the Summarize Agent.

To fix this, you should connect the user_message directly to the Summarize Agent, and attach the PreprocessTranscript tool inside the Summarize Agent instead. That way, the summarization step can directly access the cleaned transcript_text.

After summarization is done, the result can be passed back to the Main Agent for further processing.

This structure ensures that each agent/tool has access to the data it needs within its own scope.

I’ve tried that way, but there is an issue with passing the binary data to the Summarize Agent. I’ve tried so many ways to pass the binary data from Main Agent to the Summarize Agent, But I couldn’t pass. There is an other issue that I’m facing, I’d be appreiciated if you can look the other question too.

I’m ttrying to create an RAG Multi-Agent System. I’ve understood correctly, You’re saying I should connect Summarize Agent to the Chat trigger. With the way like that the process after summarization, stuks.

could not solve the problem

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