N8n chat trigger error when loading previous session messages [loadPreviousSession]

Describe the problem/error/question

I’m running into an issue with my workflow when trying to load messages from the last session. The request I send to the webhook returns the following error:

{“code”:0,“message”:“Workflow Webhook Error: Workflow could not be started!”}

I followed the documentation closely:

  • Selected From Memory in the Chat Trigger node.

  • Set SessionId to Connected Chat Trigger Node in my Postgres Chat Memory node.

  • Used the same Postgres Chat Memory node for both the Chat Trigger and the Agent.

Since it didn’t work, I looked for similar issues in the community. I found only one user with the same problem, and they solved it by using two separate memory nodes — one for the Agent and another for the Chat Trigger — but I still couldn’t get it to work.

Has anyone encountered this issue before or found another solution?

I send the following request to my weebhook url:

Method: POST

Body: {

“action”: “loadPreviousSession”,
“sessionId”: “7a4e3dd9-e329-4556-a2f9-30f02c61f7be”,
“metadata”: {
….. some metadata …..
}

}

Then I get the following response:

{

“code”: 0,
“message”: “Workflow Webhook Error: Workflow could not be started!”

}

In my workflow, the execution shows this error:

  • n8nVersion: 1.118.2
  • platform: docker (self-hosted)
  • nodeJsVersion: 22.21.0
  • nodeEnv: production
  • database: postgres
  • executionMode: scaling (single-main)
  • concurrency: -1
  • license: enterprise (production)