-2

How to wake up the bot on "Hi"?

Actually I am in a dialog which has a prompt containing an adaptive card. I just want that after clicking on that adaptive card it goes directly to the main dialog and begins with the same functionality as when the bot started working.

ashmit-001
  • 392
  • 4
  • 21

1 Answers1

0

There would be a part of code where you would be checking the reply for adaptive card.

There check if the user has entered "Hi" to the adaptive card. If so, then just End Dialog there, by,

stepContext.EndDialogAsync(null, cancellationToken);

It would automatically begin from the very start. Hope this helps. Feel free to ask any queries!

ashmit-001
  • 392
  • 4
  • 21
  • I am trying this but getting error..i just posted a other question with my code..can you check and helpout. https://stackoverflow.com/questions/59100901/wake-up-the-functionality-on-hi-on-clicking-on-others-in-product-issuea-dialog here is link for reference – shivani singh Nov 29 '19 at 08:12
  • This not helping out – shivani singh Nov 29 '19 at 08:23
  • Plez any can help out with this.https://stackoverflow.com/questions/59100901/wake-up-the-functionality-on-hi-on-clicking-on-others-in-product-issuea-dialog here is the entire code present – shivani singh Nov 29 '19 at 08:26