Search code examples
botframeworkadaptive-cardsadaptive-dialogs

How do you specify in a turn with an Adaptive Card the Dialog Intent that should respond to it


I would like my adaptive card's actions to be handled by a specific intent in my adaptive dialog. What's the way to get that done?


Solution

  • So, I ended up using the none Intent - [OnIntent("None")]. While in there, I used the If common expression to check for a specific token in the activity's value,

    Condition = "turn.activity.value.decision == 'join'",
    

    and make a choice about the next dialog based on that.