Hey there,
I’m developing a Slack agent (a Slack app which triggers the n8n Slack trigger node) and want to make sure to reset the chat memory once the user clicks “+ New chat” in Slack (therefore I use a switch node that routes the Slack event accordingly: either to the agent in case a new message has been sent or to the chat memory manager, in case a new chat has been initiated, to reset the chat memory).
However, it seems that the event to initiate a new chat (which is calledassistant_app_thread
), only triggers after (or even simultaneously) the user sends a message in this new chat. So once the workflow with the new message is triggered, the chat memory has not been reset yet. This means that the agent still has the full context of the former conversation as the memory is only cleared later - did anyone already find a workaround for this?