Documentation

Powered by Algolia

Vue


Available on Web platform.

Installation

  1. Install the @alan-ai/alan-sdk-web package and import the alanBtn into your main.js file:

    $ npm install @alan-ai/alan-sdk-web --save
    import alanBtn from "@alan-ai/alan-sdk-web";

    Or just add the alan_lib.js library to your index.html page via script tag:

    <script type="text/javascript" src="https://studio.alan.app/web/lib/alan_lib.min.js"></script>
  2. Add the following code to the main.js file in your project:

    alanBtn({
        key: 'YOUR_KEY_FROM_ALAN_STUDIO_HERE'
    });

    See an example of the Vue app with the Alan Button here.