Respond to chat node

Hi, I am very new to n8n. I was playing around with an agent but my chat box was not receiving any responses. So, I tested with a very very simple workflow (pictured at the end) even though the chat trigger node has been set up with this config:

Response Mode: Using Response Nodes

&

Respond To Chat node has these configs:

The session is maintained but it stays stuck in ‘waiting for response’

The workflow:

Any help will be greatly appreciated.

P.S: I also used {{$json.chatInput}} in the ‘Respond to chat’ node but it remains stuck in the ‘waiting for input’ state.

Hi @Annie

Try update the property value ‘Response mode"‘ as “Using Response Mode’ for “When chat message received” trigger node.

Hii, that is already set as ‘Using Response Nodes’:

p.s: session is different than the one I posted in the orignal question since I ran it again.

Hi @Annie,

Make sure you have an actual agent attached to the chat node or else this wont work on it’s own.

PS: you dont need to add the Respond to chat node for this to generally work. This is only used in very special cases

Hi,

Not sure if my assumption is correct or not. To replicate the issue what i did, if we execute ‘Respond to chat’ node by clicking on ‘Execute step’ and not from the start. it gets stuck for me as well.

But if you execute the workflow from the start it works for me. (Make sure you stop the current execution and re-execute the workflow from start node).

Hi @Wouter_Nigrini , I tried that and:

and I can see the response in the OUTPUT field on the right side, but it not in the chat box. Any suggestions?

Hi @Anjali_Yadav , In my workflow, I am typing a simple ‘Hello’ in the chat box (no old executions running) , and not ‘execute step’ on its own. Would you mind sharing your workflow?

PFA of workflow.

I think perhaps there is an issue on my side, because even directly copying your workflow didn’t result in output in the chat-box. I’ll do some investigations. Thank you @Anjali_Yadav

Hi @Annie,

Yes I think there might be an issue on your instance. What version are you using and how is it hosted? Do you have n8n cloud or is it self hosted?

Hi @Wouter_Nigrini , it is a self hosted instance, the version is 1.123.5

Try and re-create your workflow again and see if the issue persists

1 Like