@n8n/chat 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/chat.bundle.es.js +10774 -0
- package/chat.bundle.umd.js +18 -0
- package/chat.es.js +6870 -0
- package/chat.umd.js +13 -24
- package/package.json +7 -7
- package/types/composables/index.d.ts +1 -0
- package/types/composables/useChat.d.ts +2 -0
- package/types/constants/symbols.d.ts +2 -1
- package/types/plugins/chat.d.ts +3 -0
- package/types/plugins/index.d.ts +1 -0
- package/types/types/chat.d.ts +11 -0
- package/types/types/index.d.ts +1 -0
- package/chat.js +0 -7833
- package/types/stores/chat.d.ts +0 -41
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# n8n Chat
|
|
2
2
|
This is an embeddable Chat widget for n8n. It allows the execution of AI-Powered Workflows through a Chat window.
|
|
3
3
|
|
|
4
|
-
##
|
|
4
|
+
## Prerequisites
|
|
5
5
|
Create a n8n workflow which you want to execute via chat. The workflow has to be triggered using a **Webhook** node and return data using the **Respond to Webhook** node.
|
|
6
6
|
|
|
7
7
|
Open the **Webhook** node and add your domain to the **Domain Allowlist** field. This makes sure that only requests from your domain are accepted.
|
|
@@ -29,7 +29,7 @@ Add the following code to your HTML page.
|
|
|
29
29
|
```html
|
|
30
30
|
<link href="https://cdn.jsdelivr.net/npm/@n8n/chat/style.css" type="text/css" />
|
|
31
31
|
<script type="module">
|
|
32
|
-
import { createChat } from 'https://cdn.jsdelivr.net/npm/@n8n/chat/chat.js';
|
|
32
|
+
import { createChat } from 'https://cdn.jsdelivr.net/npm/@n8n/chat/chat.bundle.es.js';
|
|
33
33
|
|
|
34
34
|
createChat({
|
|
35
35
|
webhookUrl: 'YOUR_PRODUCTION_WEBHOOK_URL'
|