Voice
Example set up of a voice application
Setting up a voice application is almost identical to setting up a text application. The only necessary difference is adding an input: "voice" attribute:
<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: "https://apps.nlx.ai/c/eEPT4sP6HLboEiTHSDZ7x/M0aE_SZnl3HQG4bU96WtT",
headers: {
"nlx-api-key": "yuTwyfoq9r_nY75Wm-jVuCSLWU45wQQy"
},
languageCode: "en-US",
},
input: "voice"
});
</script>
</body>
</html>import { create } from "@nlxai/touchpoint-ui";
const touchpoint = await create({
config: {
applicationUrl: "https://apps.nlx.ai/c/eEPT4sP6HLboEiTHSDZ7x/M0aE_SZnl3HQG4bU96WtT",
headers: {
"nlx-api-key": "yuTwyfoq9r_nY75Wm-jVuCSLWU45wQQy"
},
languageCode: "en-US",
},
input: "voice"
});which results in the following voice touchpoint:

Last updated

