Observed since 20 Oct, 18:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
chatbot to communicate with taught ai
1ff-chat-ui is a Node.js package that provides a chatbot widget for integrating a chatbot into Node.js projects. It uses Socket.IO for real-time communication with the server.
To install 1ff-chat-ui, use the following command:
npm install 1ff-chat-ui
To update 1ff-chat-ui, use the following command:
npm update 1ff-chat-ui
To use ChatUi in your Node.js project, follow these steps:
import ChatUi from "chat-ui";
document.addEventListener('DOMContentLoaded', () => {
ChatUi.init(config);
})
const assistantConfig = {
image: 'https://randomuser.me/api/portraits/women/90.jpg',
role: 'Lead Nutrition Expert, PhD',
name: 'Jenny Wilson',
welcome: 'Have a quick chat with our personal nutritionist and get a free consultation about the perfect diet for you',
ctaTextContent: 'Visit',
initialMessage: {
role: roles.assistant,
content: 'Hi, Im Jenny Wilson, your personal nutritionist. Im here to help you with your nutritional needs.',
time: '2023-05-12T12:34:56.000Z'
}
};
const customTheme = {
'--lumina': '#f0f2f5',
'--whisper': '#ffffff',
'--seraph': '#21bb5a',
'--ember': '#cacadb',
'--zephyr': '43, 49, 57',
'--enigma': '#FFAE19',
'--font-family': 'Roboto',
};
const containerId = "chatbot-container";
npm run buildChatUi supports the following configuration options:
ChatUi provides the following methods:
NOTE: everything outside of lib is a boilerplate example of how 1ff-chat-ui could be used in your project with an example, index.js file and index.html file where the index.js file is placed into a script tag;
Remember to replace SOCKET_IO_URL with the actual URL of your socket server.
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f7ba28190faced77ce7415bcb3280f67bd17c9e8e395fe4e20e02e17277a0a5c