2.0.2 • Published 5 years ago

@ovh-ux/ng-ovh-chatbot v2.0.2

Weekly downloads
4
License
BSD-3-Clause
Repository
github
Last release
5 years ago

ng-ovh-chatbot

OVH Angular Chatbot

Downloads Dependencies Dev Dependencies Gitter

Install

yarn add @ovh-ux/ng-ovh-chatbot

Usage

In your index.html:

<!-- ng-ovh-chatbot -->
<script src="ng-ovh-chatbot/dist/index.min.js"></script>

<!-- place it anywhere -->
<ovh-chatbot></ovh-chatbot>

In your app.js:

import angular from 'angular';
import ngOvhChatbot from '@ovh-ux/ng-ovh-chatbot';

angular
  .module('myApp', [
    ngOvhChatbot,
  ]);

// By default, the chatbot hit the URL at "/chatbot".
// If you want to use a custom url:

angular
  .module('myApp')
  .config(/* @ngInject */(ChatbotService) => {
    ChatbotService.setChatbotUrl('/url/to/the/chatbot');
  });

Tips

  • The chatbot div is automatically placed in the bottom right of the page.

ovh-angular-user-pref:

Key used: CHATBOT_PREF

propertytypedefaultusage
enablebooltrueis the chatbot enabled or not?
notificationsboolfalsewill there be notifications?

Test

yarn test

Contributing

Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, our contributing guide will help get you started.

License

BSD-3-Clause © OVH SAS

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

2.0.0-beta.0

5 years ago