dialogflow-javascript-client icon indicating copy to clipboard operation
dialogflow-javascript-client copied to clipboard

How to send SessionID to Dialogflow

Open chantrea999 opened this issue 7 years ago • 0 comments

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

chantrea999 avatar Nov 02 '17 19:11 chantrea999