@n8n/chat 0.0.7 → 0.1.1
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 -9
- package/chat.js +234 -237
- package/chat.umd.js +2 -2
- package/package.json +1 -1
- package/types/types/options.d.ts +0 -1
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ The default options are:
|
|
|
101
101
|
createChat({
|
|
102
102
|
webhookUrl: '',
|
|
103
103
|
webhookConfig: {
|
|
104
|
-
method: '
|
|
104
|
+
method: 'POST',
|
|
105
105
|
headers: {}
|
|
106
106
|
},
|
|
107
107
|
target: '#n8n-chat',
|
|
@@ -120,7 +120,6 @@ createChat({
|
|
|
120
120
|
inputPlaceholder: 'Type your question..',
|
|
121
121
|
},
|
|
122
122
|
},
|
|
123
|
-
poweredBy: true,
|
|
124
123
|
});
|
|
125
124
|
```
|
|
126
125
|
|
|
@@ -134,7 +133,7 @@ createChat({
|
|
|
134
133
|
|
|
135
134
|
### `webhookConfig`
|
|
136
135
|
- **Type**: `{ method: string, headers: Record<string, string> }`
|
|
137
|
-
- **Default**: `{ method: '
|
|
136
|
+
- **Default**: `{ method: 'POST', headers: {} }`
|
|
138
137
|
- **Description**: The configuration for the Webhook request.
|
|
139
138
|
|
|
140
139
|
### `target`
|
|
@@ -162,12 +161,6 @@ createChat({
|
|
|
162
161
|
- **Type**: `string[]`
|
|
163
162
|
- **Description**: The initial messages to be displayed in the Chat window.
|
|
164
163
|
|
|
165
|
-
### `poweredBy`
|
|
166
|
-
- **Type**: `boolean`
|
|
167
|
-
- **Default**: `true`
|
|
168
|
-
- **Description**: Whether to display the "Powered by n8n" footer in the Chat window.
|
|
169
|
-
|
|
170
|
-
|
|
171
164
|
## Customization
|
|
172
165
|
The Chat window is entirely customizable using CSS variables.
|
|
173
166
|
|