I am using the Node SDK dialog to send textRequests and eventRequests to the dialog stream. The runtime website shows that the context is not saved, although sessionId is the same. Working with the same dialog box agent from an action assistant on Google, the context is preserved. so the only difference is that I use the Node SDK to send text.
this.app = apiai(CLIENT_ACCESS_TOKEN); this.options = { sessionId: 'abc', originalRequest: { data: { user: 'temp_user' }, conversation: { "conversationId": "123456789" } } }; const request = this.app.textRequest('This is captured by INTENT_1 that triggers a webhook that sets context to MY_CONTEXT', options); const request = this.app.textRequest('This should be captured by INTENT_2 that has an input context of MY_CONTEXT', options);
the second query does not start INTENT_2, but the default return intent is if I do not remove the input context from INTENT_2 in the dialog, and then it starts
source share