add the chatbot

This commit is contained in:
zachary62 2025-06-15 01:13:44 -04:00
parent 5e3b529b8f
commit 0213049e10
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<!-- PocketFlow Chatbot - Start -->
<script>
(function() {
var script = document.createElement("script");
script.src = "http://localhost:8000/embed/chatbot.js";
script.onload = function() {
initializeChatbot({
extra_urls: ["https://github.com/The-Pocket/PocketFlow/blob/main/.cursorrules"],
prefixes: ["https://github.com/The-Pocket","https://the-pocket.github.io/"],
chatbotName: 'PocketFlow Website Chatbot',
wsUrl: 'ws://localhost:8000/api/ws/chat',
instruction: '',
isOpen: false
});
};
document.head.appendChild(script);
})();
</script>
<!-- PocketFlow Chatbot - End -->