dialogflow / dialogflow-nodejs-client

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

no parameters in response #43

Closed dcsan closed 7 years ago

dcsan commented 7 years ago

when I use the node library, the responses don't have any parameters, ie identified entities.

when I use the preview test console, or the copied curl query, the parameters do appear.

Is there some limitation to how the nodeSDK uses the text query? It seems somehow missing a lot of data in the response.

https://discuss.api.ai/t/parameters-dont-come-back-in-response/4815

sstepashka commented 7 years ago

Hi @dcsan,

See this example.

You shall pass language parameter for languages for non-english languages. So, this parameter default using as language of agent, but this is feature available only for console. In API you shall pass it yourself.

buildtheui commented 7 years ago

@sstepashka could you post the link example again? , it seems it's broken, thanks

dcsan commented 7 years ago

yes there's nothing in the pointed directory except one file: https://github.com/api-ai/apiai-nodejs-client/tree/master/examples

what param should we pass for language?