OVH Angular Chatbot
yarn add @ovh-ux/ng-ovh-chatbot
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');
});
- The chatbot div is automatically placed in the bottom right of the page.
Key used: CHATBOT_PREF
property | type | default | usage |
---|---|---|---|
enable | bool | true | is the chatbot enabled or not? |
notifications | bool | false | will there be notifications? |
yarn test
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.
BSD-3-Clause © OVH SAS