Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Leopard TIE Client
node v12.22.12
version:
2.0.2
endpoint
share
tweet
Connects to a TIE endpoint and maintains a quick session by asking a couple questions.
const TIE = require("leopard-tie-client") const teneoEngineUrl = 'https://teneo-demos-fusion.presales.artificial-solutions.com/leopard/'; const logResponse = response => { console.log(response.output); return response; }; TIE.sendInput(teneoEngineUrl, null, { text: 'My name is Peter' }) .then(logResponse) .then(({ sessionId }) => TIE.sendInput(teneoEngineUrl, sessionId, { text: 'What is my name?' })) .then(logResponse) .then(({ sessionId }) => TIE.close(teneoEngineUrl, sessionId));
Loading…
no comments
sign in
to comment