Embedded mode
Use Touchpoint inside your layout
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Touchpoint</title>
</head>
<body
style="
background-image: url(https://platform.nlx.ai/onboarding-bg/voiceplus.webp);
background-size: cover;
color: white;
"
>
<div style="width: 40vw; height: 80vh; margin: auto; padding-top: 10vh">
<nlx-touchpoint
id="touchpoint"
style="display: block; height: 100%"
></nlx-touchpoint>
</div>
<script type="module">
import "https://unpkg.com/@nlxai/touchpoint-ui/lib/index.js?module";
document.addEventListener("DOMContentLoaded", () => {
touchpoint.touchpointConfiguration = {
config: {
applicationUrl: "REPLACE_WITH_APPLICATION_URL",
headers: {
"nlx-api-key": "REPLACE_WITH_API_KEY"
},
languageCode: "en-US",
},
};
});
</script>
</body>
</html>

Last updated

