Skip to content
No session ID found...
 
Notifications
Clear all

No session ID found when calling other agents

2 Posts
2 Users
0 Reactions
5 Views
Albert_Feldt
(@albert_feldt)
Posts: 1
New Member
Topic starter
 

Hello callin.io community!

:wave:

I'm encountering a persistent error when trying to use the LangChain Tool Workflow node to call a sub-workflow. I initially had memory-related errors, but now I'm getting a “Referenced node doesn’t exist” error. I'd appreciate some guidance from anyone who has successfully implemented this pattern.

The Error

When executing my workflow, I receive this error:

json

{
  "errorMessage": "Referenced node doesn't exist",
  "errorDetails": {},
  "n8nDetails": {
    "time": "5/21/2025, 5:29:53 PM",
    "n8nVersion": "1.90.2 (Cloud)",
    "binaryDataMode": "filesystem",
    "cause": {
      "executionId": "1602",
      "workflowId": "pYHGkQINJU42w9HS"
    }
  }
}

My Setup

I'm attempting to build an AI agent with LangChain that utilizes tools implemented as sub-workflows. Here's what I've tried so far:

  1. First, I set up a main workflow with a Chat Trigger node and a LangChain Tool Workflow node that calls another workflow.
  2. Initially, I encountered a “No session ID found” error in the “Simple Memory” node of my sub-workflow, which indicated I needed to pass the session ID to maintain conversation context.
  3. I then tried passing {{ $json.sessionId }} in the workflow inputs of my Tool Workflow node, but received a “Key parameter is empty” error.
  4. Now, the error has changed to “Referenced node doesn’t exist”.

What I’m Trying to Accomplish

I'm building an AI agent workflow where:

  • The main workflow receives user input via a Chat Trigger.
  • It processes the input with LangChain (or Claude/GP).
  • When specific tasks need to be performed, it calls specialized sub-workflows via the Tool Workflow node.
  • These sub-workflows need to maintain memory/context between calls.
 
Posted : 21/05/2025 7:47 pm
mohamed3nan
(@mohamed3nan)
Posts: 18
Active Member
 

Hello, welcome to the callin.io community!


How are you passing the {{ $jsonsessionId }}? And what trigger type are you utilizing in the sub-workflow?


Here’s my current method:

In the sub-workflow, I configure the trigger to “When Executed by Another Workflow” and define the Workflow Input Schema as follows:

Then, in the main workflow, you will observe that these fields are available for data input, such as the session ID or other parameters:

Let me know if this approach is effective for you!

 
Posted : 21/05/2025 9:44 pm
Share: