Spaces:
Paused
Paused
add a chatbot
Browse files- index.html +57 -0
index.html
CHANGED
|
@@ -703,5 +703,62 @@
|
|
| 703 |
|
| 704 |
<script src="/static/js/howler.min.js"></script>
|
| 705 |
<script src="/static/js/app.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 706 |
</body>
|
| 707 |
</html>
|
|
|
|
| 703 |
|
| 704 |
<script src="/static/js/howler.min.js"></script>
|
| 705 |
<script src="/static/js/app.js"></script>
|
| 706 |
+
|
| 707 |
+
<script type="module">
|
| 708 |
+
import Chatbot from "https://cdn.jsdelivr.net/npm/flowise-embed/dist/web.js"
|
| 709 |
+
Chatbot.init({
|
| 710 |
+
chatflowid: "dd9ac7c1-1d2a-4ef1-a23b-5fe6aca4d1d5",
|
| 711 |
+
apiHost: "https://bitsnaps-flowise.hf.space",
|
| 712 |
+
chatflowConfig: {
|
| 713 |
+
/* Chatflow Config */
|
| 714 |
+
},
|
| 715 |
+
observersConfig: {
|
| 716 |
+
/* Observers Config */
|
| 717 |
+
},
|
| 718 |
+
theme: {
|
| 719 |
+
customCSS: ``,
|
| 720 |
+
chatWindow: {
|
| 721 |
+
showTitle: true,
|
| 722 |
+
showAgentMessages: true,
|
| 723 |
+
title: 'Support Assistant',
|
| 724 |
+
titleAvatarSrc: 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg',
|
| 725 |
+
welcomeMessage: 'Hello!',
|
| 726 |
+
// errorMessage: 'This is a custom error message',
|
| 727 |
+
backgroundColor: '#ffffff',
|
| 728 |
+
// backgroundImage: 'enter image path or link',
|
| 729 |
+
height: 700,
|
| 730 |
+
width: 400,
|
| 731 |
+
fontSize: 16,
|
| 732 |
+
starterPrompts: [
|
| 733 |
+
"I got an 429 error, what does this mean?",
|
| 734 |
+
"What are the rate limits?"
|
| 735 |
+
],
|
| 736 |
+
starterPromptFontSize: 15,
|
| 737 |
+
clearChatOnReload: false,
|
| 738 |
+
// sourceDocsTitle: 'Sources:',
|
| 739 |
+
renderHTML: true,
|
| 740 |
+
textInput: {
|
| 741 |
+
placeholder: 'Type your question here...', //Are you having an issue?
|
| 742 |
+
backgroundColor: '#ffffff',
|
| 743 |
+
textColor: '#303235',
|
| 744 |
+
sendButtonColor: '#3B81F6',
|
| 745 |
+
maxChars: 50,
|
| 746 |
+
maxCharsWarningMessage: 'You exceeded the characters limit. Please input less than 50 characters.',
|
| 747 |
+
autoFocus: true,
|
| 748 |
+
// sendMessageSound: true,
|
| 749 |
+
// sendSoundLocation: 'send_message.mp3',
|
| 750 |
+
// receiveMessageSound: true,
|
| 751 |
+
// receiveSoundLocation: 'receive_message.mp3'
|
| 752 |
+
},
|
| 753 |
+
footer: {
|
| 754 |
+
textColor: '#303235',
|
| 755 |
+
text: 'Powered by',
|
| 756 |
+
company: 'CorpoSense',
|
| 757 |
+
companyLink: 'https://corposense.com'
|
| 758 |
+
}
|
| 759 |
+
}
|
| 760 |
+
}
|
| 761 |
+
})
|
| 762 |
+
</script>
|
| 763 |
</body>
|
| 764 |
</html>
|