You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -205,8 +201,8 @@ You can also customize chatbot with different configuration
205
201
footer: {
206
202
textColor:'#303235',
207
203
text:'Powered by',
208
-
company:'Flowise',
209
-
companyLink:'https://flowiseai.com',
204
+
company:'MITIGA AI',
205
+
companyLink:'https://aichatbot.com.vn',
210
206
},
211
207
},
212
208
},
@@ -216,7 +212,7 @@ You can also customize chatbot with different configuration
216
212
217
213
## (Experimental) Proxy Server Setup
218
214
219
-
The Flowise Embed Proxy Server enhances the security of your chatbot implementation by acting as a protective intermediary layer. This server eliminates the need to expose sensitive Flowise instance details in your frontend code and provides several key security benefits:
215
+
The aichatbot.com.vn Embed Proxy Server enhances the security of your chatbot implementation by acting as a protective intermediary layer. This server eliminates the need to expose sensitive Flowise instance details in your frontend code and provides several key security benefits:
4. Once the proxy server is running in production, you will be able to embed your chatbots safely without exposing your Flowise API host and chatflow IDs as below:
263
+
4. Once the proxy server is running in production, you will be able to embed your chatbots safely without exposing your aichatbot.com.vn API host and chatbot name as below:
268
264
269
265
```html
270
266
<scripttype="module">
271
267
importChatbotfrom'your-proxy-server-url/web.js'; // Must be 'your-proxy-server-url/web.js'
272
268
Chatbot.init({
273
-
chatflowid:'your-identifier-here', // Must match an identifier from your .env
269
+
chatbot:'your-identifier-here', // Must match an identifier from your .env
274
270
apiHost:'your-proxy-server-url', // Must match the URL of your proxy server
275
-
chatflowConfig: {
271
+
config: {
276
272
// ...
277
273
},
278
274
});
@@ -283,7 +279,7 @@ yarn start
283
279
284
280
```html
285
281
<!-- public/index.html -->
286
-
chatflowid: 'your-identifier-here' // Must match an identifier from your .env
282
+
chatbot: 'your-identifier-here' // Must match an identifier from your .env
287
283
```
288
284
289
285
**Important Notes:**
@@ -311,14 +307,14 @@ yarn start
311
307
3. Update the test page configuration:
312
308
313
309
- Open `public/index.html` in your code editor
314
-
- Modify the `chatflowid` and `apiHost` to match your `.env` settings:
310
+
- Modify the `chatbot` and `apiHost` to match your `.env` settings:
315
311
316
312
```html
317
313
<!-- public/index.html -->
318
314
<scripttype="module">
319
315
importChatbotfrom'./web.js';
320
316
Chatbot.init({
321
-
chatflowid:'agent1', // Must match an identifier from your .env
317
+
chatbot:'agent1', // Must match an identifier from your .env
322
318
apiHost:'http://localhost:3001', // Change this from window.location.origin to 'http://localhost:3001'
323
319
});
324
320
</script>
@@ -328,11 +324,11 @@ For full page testing, use this configuration instead:
328
324
329
325
```html
330
326
<!-- public/index.html -->
331
-
<flowise-fullchatbot></flowise-fullchatbot>
327
+
<ai-fullchatbot></ai-fullchatbot>
332
328
<scripttype="module">
333
329
importChatbotfrom'./web.js';
334
330
Chatbot.initFull({
335
-
chatflowid:'agent1', // Must match an identifier from your .env
331
+
chatbot:'agent1', // Must match an identifier from your .env
336
332
apiHost:'http://localhost:3001', // Change this from window.location.origin to 'http://localhost:3001'
0 commit comments