A chat bot library, which you can use as react component, react hook, or vanilla javascript module.
TODO: Add documentation
import JarveyBot from '@jarveybot/react';
import '@jarveybot/react/dist/style.css';
<JarveyBot
messages={messages}
initialMessage="MESSAGE_ID"
thinkingTime={1000}
handleCloseChat={() => {
console.log('close');
}}
/>
TODO: Add documentation
import useJarveyBot from '../hook/useJarveyBot';
...
const { currentMessage, history, handleResponse, isThinking, startConversation } = useJarveyBot({
messages: MessageInterface[],
initialMessage: string,
thinkingTime?: number,
handleDone?: Function,
});
...
startConversation();
import JarveyBot from '@jarveybot/vue';
import '@jarveybot/vue/dist/style.css';
<JarveyBot
messages={messages}
initialMessage="MESSAGE_ID"
thinkingTime={1000}
handleCloseChat={() => {
console.log('close');
}}
/>
import {useJarveyBot} from '@jarveybot/vue';
...
const { currentMessage, history, handleResponse, isThinking, startConversation } = useJarveyBot({
messages: MessageInterface[],
initialMessage: string,
thinkingTime?: number,
handleDone?: Function,
});
...
startConversation();
TODO: Add documentation
import JarveyBot from '@jarveybot/core';
const jarveyBot = new JarveyBot();
jarveyBot.initialize({
handleSetMessage: handleSetMessageType,
handleSetHistory: handleSetHistoryType,
messages?: MessageInterface[],
handleDone?: Function,
handleThinking?: (isThinking: boolean) => void,
thinkingTime?: number,
debug?: boolean,
});
jarveyBot.startConversation('MESSAGE_ID');
- Build and style the landingpage
- Add documentation
- React connector add configuration and options
- Add overview message option
- Add a vueJS Connector ...