new(core.gbapp): Improvements on conversation instrumentation.

This commit is contained in:
Rodrigo Rodriguez 2020-09-20 14:39:06 -03:00
parent 546e72ef55
commit 48ae0a2b4f
2 changed files with 3 additions and 1 deletions

View file

@ -516,7 +516,8 @@ export class GBConversationalService {
GBLog.info(`NLP called: ${intent} ${firstEntity}`);
try {
await step.replaceDialog(`/${intent}`, nlp.entities);
step.activeDialog.state.otptions.entities = nlp.entities;
await step.replaceDialog(`/${intent}`, step.activeDialog.state.options );
return true;
} catch (error) {

View file

@ -799,6 +799,7 @@ export class GBMinService {
if (!handled) {
await step.beginDialog('/answer', {
query: query,
user: user ? user['dataValues'] : null,
message: message
});
}