Skip to content

Commit

Permalink
Created ChatBot
Browse files Browse the repository at this point in the history
  • Loading branch information
SrijaVuppala295 committed Oct 22, 2024
1 parent ef0bae4 commit fc36b04
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ dist-ssr

# Lock files
package-lock.json

# ChatBot
src/config.js

12 changes: 12 additions & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,18 @@ <h3>Saarthi</h3>


</script>

<script>
window.embeddedChatbotConfig = {
chatbotId: "YOUR_CHATBOT_ID", // Replace with your actual chatbot ID
domain: "www.chatbase.co"
};
</script>

<script src="https://www.chatbase.co/embed.min.js" defer></script>
<script src="./src/chabot.js" type="module" defer></script>


</div>


Expand Down
7 changes: 7 additions & 0 deletions frontend/src/chabot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// src/chatbot.js
import chatbotConfig from './config.js'; // Adjust the path as needed

window.embeddedChatbotConfig = {
chatbotId: chatbotConfig.chatbotId,
domain: chatbotConfig.domain
};

0 comments on commit fc36b04

Please sign in to comment.