-
Notifications
You must be signed in to change notification settings - Fork 284
Open
Description
global.NLP = require('apiai')(APIAI_TOKEN);
let dialogFlowToken = "1234567890"
let context = [
{
"name": "Sample_Context",
"parameters": {
"location": "Bedroom"
},
"lifespan": 5
}
];
const apiaiReq = global.NLP.contextsRequest(context, { sessionId: dialogFlowToken });
apiaiReq.on('response', async (response) => {
console.log(response);
});
apiaiReq.on('error', (error) => {
console.log(error);
});
apiaiReq.end();
}
The response is {"status":{"code":200,"errorType":"success"}}
But in the next request there is no context i am getting back.
Metadata
Metadata
Assignees
Labels
No labels