Is there a way we can use the chat trigger inside the workflow for live session?

Describe the problem/error/question

Is there a way we can use the chat trigger inside the workflow for live session? since the live URL does not work and produce error

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

The agent live chat did not respond in the live chat url but respond inside the workflow chat trigger

Information on your n8n setup

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

You might need to provide the code and screenshot about how you set up the n8n bundle js on your frontend.

Something like:

Hi
I am using the direct live chat URL
but when using embed code is something like

<html>
<body>
<link href="https://cdn.jsdelivr.net/npm/@n8n/chat/dist/style.css" rel="stylesheet" />
<script type="module">
	import { createChat } from 'https://cdn.jsdelivr.net/npm/@n8n/chat/dist/chat.bundle.es.js';

	createChat({
		webhookUrl: 'livechaturl'
	});
</script>
</body>
</html>

Looks like your request returned a html code which is not normal.

You can check the chat request to see if there are any error message as a html.

For some reason I cannot edit the other post (waiting for admin approval)
Here is the script error pointing at

Using Live chat URL, this is the response I got


image
and it get stuck with 3 dots

In the workflow, the execution is successful, no error

Found a similar issue here

So basically your workflow execute too long more than 100 seconds.
n8n cloud version is using cloudflare so it happens.

Do you know why your workflow is taking so long to process the chat?

From what I can see, you’re connecting a lot of tools.
That might be one of the reasons for the delay.

Do you have to use embed, I use hosted chat, and iframe it in,

I have a lot of API running in the background for file conversion which take like 30-60 seconds per file so it will like take more than 3 to 5 minutes to get executed excluding ai workflow processing time.
I’ll try that thanks

Yes I have tried that as well.

I have tested what was mentioned in the other thread, still no luck. The same error still occurs

Got a message. Just updating that no solution for here yet