Skip to content

Commit

Permalink
update not match message
Browse files Browse the repository at this point in the history
  • Loading branch information
khanh1902 committed Jun 29, 2024
1 parent 3885389 commit 2e58c5a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions actions/Prompting.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const {
const { replaceData } = require('../utils/utils');
const { translate } = require('../services/translate');
const { predict } = require('../services/intent');
const { CustomActivityTypes } = require('../classes/CustomActivityTypes');
const { ERROR_MESSAGE } = process.env;

const PROMPTING_WATERFALL = 'PROMPTING_WATERFALL';
Expand Down Expand Up @@ -70,9 +71,11 @@ class Prompting extends ComponentDialog {
language
);

await step.context.sendActivity(
replaceData({ text: notMatchMsg.message, data: variables })
);
await step.context.sendActivity({
type: CustomActivityTypes.Message,
text: notMatchMsg.message,
channelData: {},
});
}
}

Expand Down

0 comments on commit 2e58c5a

Please sign in to comment.