new(core.gbapp): Improvements on conversation instrumentation.
This commit is contained in:
parent
546e72ef55
commit
48ae0a2b4f
2 changed files with 3 additions and 1 deletions
|
@ -516,7 +516,8 @@ export class GBConversationalService {
|
||||||
GBLog.info(`NLP called: ${intent} ${firstEntity}`);
|
GBLog.info(`NLP called: ${intent} ${firstEntity}`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await step.replaceDialog(`/${intent}`, nlp.entities);
|
step.activeDialog.state.otptions.entities = nlp.entities;
|
||||||
|
await step.replaceDialog(`/${intent}`, step.activeDialog.state.options );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
@ -799,6 +799,7 @@ export class GBMinService {
|
||||||
if (!handled) {
|
if (!handled) {
|
||||||
await step.beginDialog('/answer', {
|
await step.beginDialog('/answer', {
|
||||||
query: query,
|
query: query,
|
||||||
|
user: user ? user['dataValues'] : null,
|
||||||
message: message
|
message: message
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue