dialogflow / dialogflow-nodejs-client

Node.js SDK for Dialogflow
Apache License 2.0
659 stars 287 forks source link

text request with parameters sample #85

Closed ahadjithoma closed 7 years ago

ahadjithoma commented 7 years ago

It seems that the sample /samples/text_request_with_parameters_sample.js is pointless as it does not do what the title says.

So i am having problem with passing some parameters and retrieving them back in the response. I tried the code bellow with no luck.

var options = {
    sessionId: '<UNIQE SESSION ID>',
    data: {parameter: "some value" }
};
var request = app.textRequest('Hello', options);

Any ideas? thanks

ahadjithoma commented 7 years ago

Closing it as i misunderstood something.