Web
This page documents the @nlxai/touchpoint-ui package, serving as the guide for the Touchpoint SDK for web applications.
Installation
NPM
npm install @nlxai/touchpoint-uiCDN (script tag)
<script defer src="https://unpkg.com/@nlxai/touchpoint-ui/lib/index.umd.js"></script><html lang="en">
<head>
<title>Touchpoint Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<script type="module">
import { create, React, html } from "https://unpkg.com/@nlxai/[email protected]/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",
userId: "REPLACE_WITH_USER_ID", // optional, auto-generated otherwise
},
colorMode: "light",
input: "voice",
theme: {
fontFamily: "'Neue Haas Grotesk', sans-serif",
accent:"#0040FF"
},
});
</script>
</body>
</html>Authentication


API methods
create(options)
create(options)expanded
expandedteardown()
teardown()Configuration
Core configuration (config)
config)UI options
Theming
Modality components
Conversation handler API
Voice+ integration
Last updated

