1.0.14 • Published 12 months ago

realtorbots-ai v1.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

realtorbots-ai

A simple custom HTML element for a chatbot.

Installation

You can install the realtorbots-ai package via npm:

npm install realtorbots-ai

or use via unpkg:

<script src="https://unpkg.com/realtorbots-ai@latest/index.js"></script>

Usage

create a config.js file and paste your access token

const config = {
  token: "<-- token -->",
};

paste the following in your html body

    <chatbot-ai id="chatbot-ai"></chatbot-ai>
    <!-- Load config.js and set the token -->
    <script src="config.js"></script>
    <!-- Load the chatbot element and set the token -->
    <script>
    document.addEventListener('DOMContentLoaded', function () {
      const chatbotElement = document.getElementById('chatbot-ai');
      if (chatbotElement && config.token) {
        chatbotElement.setAttribute('token', config.token);
        console.log("Chatbot element and token found.");
      } else {
        console.error('Chatbot element or token not found.');
      }
    });
  </script>
1.0.14

12 months ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

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.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago