I have two AI agents chained together, both using Postgres Chat Memory nodes.
The first AI agent executes perfectly, since it gets its SessionID from the chat trigger node right before it. But it doesn’t pass this SessionID onto the next agent, so that agent’s Postgres Chat Memory node gives me an error “No session ID found.”
I tried routing the session ID from the trigger node into the chat memory node through a Set node, but the Postgres Chat Memory node doesn’t accept input from the Set node.
I’ve been able to solve this with json, but is there a way to solve it without manually writing code?
To better understand your current setup, could you share your workflow? What’s your current workaround > “I’ve been able to solve this with json, but is there a way to solve it without manually writing code?”?
Tip for sharing your workflow in the forum
Pasting your n8n workflow
Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.
```
<your workflow>
```
Make sure that you’ve removed any sensitive information from your workflow and include dummy data or pinned data as much as you can!
Also, have you tried using the ‘Take from previous node automatically’ option?