n8n version: 1.21.1
Database: SQLite
Running n8n via Docker
I am in the process of setting up the charbot on my site
The problem is that the conversation field is not displayed.
I think it’s because of this:
Access to fetch at ‘…’ from origin ‘…’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access- Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
In the doc which is here: https://www.npmjs.com/package/@n8n/chat
It says this: Open the Chat Trigger node and add your domain to the Allowed Origins (CORS) field. This makes sure that only requests from your domain are accepted.
However, I don’t see in the node where I can do this:
Do you have an idea??
n8n
January 5, 2024, 9:26am
2
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:
Jon
January 5, 2024, 4:57pm
3
Hey @Jeremy_DE_CAMPOS ,
I think it is meant to be a Webhook Trigger node not a Manual Chat Trigger, Can you try changing it and letting me know how that goes?
H @Jon ,
In the example we have on the doc, yes, it’s a Webhook : n8n/packages/@n8n/chat/resources/workflow.json at master · n8n-io/n8n · GitHub
On the other hand, on the doc, we talk about this:
Create a n8n workflow which you want to execute via chat. The workflow has to be triggered using a Chat Trigger node.
Open the Chat Trigger node and add your domain to the Allowed Origins (CORS) field. This makes sure that only requests from your domain are accepted.
Jon
January 5, 2024, 5:20pm
5
Hey @Jeremy_DE_CAMPOS ,
I suspect it is just a documentation issue and we need to update it to mention the webhook trigger instead.
jan
January 5, 2024, 5:50pm
6
The docs are correct but the Chat Trigger Node did not get merged/released yet. The PR can be found here:
n8n-io:master ← n8n-io:chat-trigger-node
opened 02:13PM - 11 Oct 23 UTC
<img width="1496" alt="image" src="https://github.com/n8n-io/n8n/assets/6179477/… 6885df39-cc3a-48cf-8cbc-3d522e2428aa">
[AI_Chat_Trigger.json](https://github.com/n8n-io/n8n/files/12870898/AI_Chat_Trigger.json)
As pointed out is in the meantime the Webhook Node the way to go.
1 Like
system
Closed
April 4, 2024, 5:51pm
7
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.