Skip to content

Commit

Permalink
Merge pull request #728 from AditiPrabhakar/AditiPrabhakar
Browse files Browse the repository at this point in the history
Included chatbot feature
  • Loading branch information
sunny0625 authored Jun 3, 2024
2 parents c1cf76d + 8dd2812 commit c0262b1
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ <h4>Follow Us</h4>

updateSliderPos();
}
heroSliderNextBtn.addEventListener("click", slideNext);

heroSliderNextBtn.addEventListener("click", slideNext)
const slidePrev = function () {
if (currentSlidePos <= 0) {
currentSlidePos = heroSliderItems.length - 1;
Expand Down Expand Up @@ -562,6 +562,7 @@ <h4>Follow Us</h4>
</script>

<script src="Html-files/top.js"></script>

<script>
window.addEventListener('beforeunload', function (event) {
localStorage.clear();
Expand Down Expand Up @@ -602,7 +603,7 @@ <h4>Follow Us</h4>
</script>
main

<script type="text/javascript">
<!-- <script type="text/javascript">
(function (d, t) {
var v = d.createElement(t), s = d.getElementsByTagName(t)[0];
v.onload = function () {
Expand All @@ -614,7 +615,7 @@ <h4>Follow Us</h4>
}
v.src = "https://cdn.voiceflow.com/widget/bundle.mjs"; v.type = "text/javascript"; s.parentNode.insertBefore(v, s);
})(document, 'script');
</script>
</script> -->
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init(
Expand All @@ -625,6 +626,31 @@ <h4>Follow Us</h4>
}
);
</script>

<!-- Chatbot -->
<script src="https://cdn.botpress.cloud/webchat/v1/inject.js"></script>
<script>
window.botpressWebChat.init({
"composerPlaceholder": "Message...",
"botConversationDescription": "Welcome to Foodie!",
"botId": "2093cb3a-9343-4dec-a60f-2f69a5948cac",
"hostUrl": "https://cdn.botpress.cloud/webchat/v1",
"messagingUrl": "https://messaging.botpress.cloud",
"clientId": "2093cb3a-9343-4dec-a60f-2f69a5948cac",
"webhookId": "7bd6ccb8-58f4-4ee3-9bca-f33ea4b7c37c",
"lazySocket": true,
"themeName": "prism",
"botName": "Foodie",
"stylesheet": "https://webchat-styler-css.botpress.app/prod/code/da4ab5f7-146c-4585-961b-2d9def26af50/v96339/style.css",
"frontendVersion": "v1",
"useSessionStorage": true,
"enableConversationDeletion": true,
"theme": "prism",
"themeColor": "#2563eb",
"allowedOrigins": []
});
</script>

</body>
<script>
function redirectLogin() {
Expand All @@ -636,4 +662,4 @@ <h4>Follow Us</h4>
</script>
main

</html>
</html>

0 comments on commit c0262b1

Please sign in to comment.