Widget

Once you have created your Chatness AI account and added a bot, you can start using the Chatness AI widget on your website right away. If you have trained your bot on at least 1 url successfully, the bot will already have enough information to start answering questions about you or your business.

Installation

To install the Chatness AI widget on your website, simply copy the code snippet from Integrations > Plus Icon > Widget and paste it into your website's HTML within the <head> tag.

Example

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Your Company</title>
    <!-- Enable Chatness -->
    <script>
      // Chatness Widget Code
    </script>
  </head>
  <body>
    <!-- Your Content -->
  </body>
</html>

Interactivity

The Chatness AI widget currently offers the following interactivity:

Open

You can dynamically open the Chatness AI Widget doing the following:

window.Chatness.Messenger.open()

Close

You can dynamically close the Chatness AI Widget doing the following:

window.Chatness.Messenger.close()

Send

You can dynamically open and send quick messages to the Chatness AI Widget doing the following:

window.Chatness.Messenger.send({
  text: 'Hello World',
})

If you have any questions or suggestions about the Chatness AI widget, please contact us.