Installing the Integrations Module

Prev Next

To begin setting up the integration, you will need the following two items:

  • Client ID

  • Client SDK Script


The Client ID can be retrieved from the XGEN AI platform: Navigate to Admin > Admin Dashboard > Customer ID, or you can browse directly here once logged in: https://app.xgen.ai/admin-portal/

The Client SDK Script can be generated directly within the platform. Go to Admin > SDK > Generate SDK Config. This process will provide you with the Client SDK script necessary for importing your functionality.


Installation

Browser (manually via script tag)

<script src="/path/to/dist/sdk-core.umd.cjs"></script>
<script type="text/javascript">
    const xg = new XGenClient({
     //params
    })
    ...
</script>

OR if you are using ES modules:

<script type="module">
    import XGenClient from '/path/to/dist/sdk-core.js'

    const xg = new XGenClient({
      //params
    })
    ...
</script>

Further References Here:

More detailed API docs and copy-paste examples could be found in the API documentation for each service.