Documentation

Powered by Algolia

Alan Electron Framework

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

Getting Started

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

    $ @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 Alan Button tag:

    <alan-button id="alan-button" alan-key="ADD_ALAN_STUDIO_API_KEY_HERE"></alan-button>

    The full description of the API can be found here