Chat with open AI assistant new webhook not able to map

I’m using the pre built workflow Chat with OpenAI Assistant (by adding a memory).

When we copy and paste the workflow we always get the same webhook, I’m assuming this needs to be changed with a fresh Chat trigger so we can embed it onto a page?

However when I go to do this, it breaks the windows buffer memory and I can’t see any way to pull the new chat trigger node through to memory.

I’m sure this is an easy fix but I’m not seeing it!

What is the error message (if any)?

No path back to referenced node

There is no connection back to the node ‘Chat Trigger’, but it’s used in an expression here.

Please wire up the node (there can be other nodes in between).

Please share your workflow

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @jakeThai,

You can try making the following adjustments:

  • Replace the Session ID with this expression {{ $('Chat Trigger').first().json.sessionId }}
    CleanShot 2024-09-25 at 17.56.02

  • I also see that adding previous conversation in the Text is not working (at least for me anyway) in that case, replace it with {{ $json["messages"].map(m => Human: ${m.human}\nAI Assistant: ${m.ai}).join('\n') }}
    CleanShot 2024-09-25 at 17.56.09

Try these out and let me know if that fixes your issue or not!

2 Likes

Thank you,

This worked for me:

Replace the Session ID with this expression {{ $('Chat Trigger').first().json.sessionId }}

Also replaced Chat Trigger and Window Buffer Memory. Changed Chat Trigger name to “Chat Trigger”.

Thanks very much!

1 Like

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