Chatbot Stop Button

I created a chatbot with which you can communicate trhough a webpage (chat trigger). I wanted to add a stop button like the one we see on any big LLM. That way, I would have the chance to stop the thinking and modify the question I just asked. I looked online and didn’t find any information on that. Is it something possible or am I dreaming too big?

hey @philrou welcome to n8n community.

I do not think there is a direct way to do that.

Here is a workaround that might work.

you can add a stop button in chatui, which will call a workflow and execute /rest/executions/{{$execution.id}}/stop

this will stop specific execution.

1 Like