dialogflow-javascript-client
dialogflow-javascript-client copied to clipboard
How to send SessionID to Dialogflow
I found this import {IRequestOptions, IServerResponse, ApiAiConstants} from "api-ai-javascript/ApiAiClient" const lang = ApiAiConstants.AVAILABLE_LANGUAGES.EN; and I also read IRequestOptions and it has the sessionID. Can you give the example code to use that with window.init = function(token) { client = new ApiAi.ApiAiClient({accessToken: token}); };
function sendText(text) { return client.textRequest(text); } How can I send the client with IRequestOptions with SessionID to dialogflow.
Thank you,
Chantrea