1.0.27 • Published 1 year ago

beeetle-chatbot-js v1.0.27

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Beeetle

Use Directly in your HTML

Bubble

Below is the example for how a bubble would be added to your chat instance:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Beeetle</title>
  </head>
  <body>
    <script type="module">
      import BeeetleBot from "https://cdn.jsdelivr.net/npm/beeetle-chatbot-js@1.0.17/lib/web.js";

      BeeetleBot.initBubble({
         apiHost: 'https://beeetle-api.host.com/api/chat',
         autoShowDelay: undefined,
         brandColor: undefined,
         isPreview: undefined,
         beeetleBot: undefined,
         onAnswer: undefined,
         onClose: undefined,
         onEnd: undefined,
         onInit: undefined,
         onNewInputBlock: undefined,
         onOpen: undefined,
         onPreviewMessageClick: undefined,
         prefilledVariables: undefined,
         previewMessage: undefined,
         resultId: undefined,
         theme: {
            button: {
               backgroundColor: undefined,
               customCloseIconSrc: undefined,
               customIconSrc: undefined,
               iconColor: undefined,
               size: undefined,
            },
            chatWindow: {
               backgroundColor: undefined,
               maxHeight: undefined,
               maxWidth: undefined,
            },
            placement: undefined,
            previewMessage: {
               backgroundColor: undefined,
               closeButtonBackgroundColor: undefined,
               closeButtonIconColor: undefined,
               textColor: undefined,
            },
         },
      });
    </script>
  </body>
</html>

This code is creating a bubble button widget at the bottom of your page.

1.0.22

1 year ago

1.0.21

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.27

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.10

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago