messageChat

Learn how to set up a textual chat application

The simplest way to setup an application for chat is with the following snippet:

<html lang="en">
  <head>
    <title>Touchpoint Sample HTML</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
  </head>
  <body>
    <script type="module">
      import { create } from "https://unpkg.com/@nlxai/touchpoint-ui/lib/index.js?module";
      
      const touchpoint = await create({
        config: {
          applicationUrl: "REPLACE_WITH_APPLICATION_URL",
          headers: {
            "nlx-api-key": "REPLACE_WITH_API_KEY"
          },
          languageCode: "en-US",
        },
      });
    </script>
  </body>
</html>

Your Application URL and API Key can be obtained from the API Delivery Channel Setup

This will result in a fully functional basic touchpoint experience:

Last updated