Documentation

Powered by Algolia

Alan Electron Framework


Available on Web platform.

The Alan Button can be added into your Electron application as a javascript library or NPM module.

Installation

  1. Install the @alan-ai/alan-sdk-web package and include the following script tag in the index.html page:

    $ npm install @alan-ai/alan-sdk-web --save
    <script src="node_modules/@alan-ai/alan-sdk-web/index.js"></script>

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

    <script type="text/javascript" src="https://studio.alan.app/web/lib/alan_lib.min.js"></script>
  2. Add the Alan Button in the index.html:

    <script>
      alanBtn({
         key: 'YOUR_KEY_FROM_ALAN_STUDIO_HERE'
      });
    </script>

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