diff --git a/features/sample_hears.js b/features/sample_hears.js index 516b45e..26a5e99 100644 --- a/features/sample_hears.js +++ b/features/sample_hears.js @@ -49,7 +49,7 @@ function initDialog(controller) { { pattern: /yes|yeah|ya|yep|y|right|correct/, handler: async (response, convo, bot) => { - await bot.beginDialog('ONBOARDING_DIALOG_2'); + await convo.gotoThread(CONCLUSION); }, }, { @@ -64,6 +64,7 @@ function initDialog(controller) { ); dialog.addMessage('onboarding.success', CONCLUSION); + dialog.addGotoDialog('ONBOARDING_DIALOG_2', CONCLUSION); controller.addDialog(dialog); } diff --git a/features/sample_hears2.js b/features/sample_hears2.js index e9f8880..9507d9e 100644 --- a/features/sample_hears2.js +++ b/features/sample_hears2.js @@ -49,7 +49,7 @@ function initDialog(controller) { { pattern: /yes|yeah|ya|yep|y|right|correct/, handler: async (response, convo, bot) => { - await bot.beginDialog('ONBOARDING_DIALOG'); + await convo.gotoThread(CONCLUSION); }, }, { @@ -64,6 +64,7 @@ function initDialog(controller) { ); dialog.addMessage('onboarding2.success', CONCLUSION); + dialog.addGotoDialog('ONBOARDING_DIALOG', CONCLUSION); controller.addDialog(dialog); }