Adaptive Card Submit jumps to Unknown Intent
Objective: I want to capture value/s from an adaptive card, when the usr clicks a submit button, store the values and use them in future bot responses and activities.
Environment: 12.5 Monterey M1 Pro Macbook, Bot Composes v2.1.2, with the Node JS Empty Bot sample loaded up.
- In my Greeting Intent, I simply load the MailboxManagement Dialog.
- In MailboxManagement Dialog, i chose the "
Ask a Question > Ask activity" activity. - In the trigger i added a basic adaptive card as an attachment. There is a Text Field, with an ID of
txtInputand a Submit Button. (adaptive card JSON below.) - I added a "
Send a Response" activity with a text value of${turn.activity.value.txtInput}
What I expected: When running the bot, the user enters a text value into the adaptive card text box and hits submit. Upon hitting submit, the value from the txtInput field is captured and sent back to the screen.
What happens: Instead of sending the value back to the screen, the txtInput value is indeed captured, however i am redirected to the Unknown Intent dialog.
Adaptive Card JSON
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.3",
"body": [
{
"type": "Input.Text",
"placeholder": "Placeholder text",
"id": "txtInput"
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Action.Submit"
}
]
}
]
}
Hi @adrwh I'm not entirely sure how the Ask activity is supposed to work. I am currently investigating.
Hey team, I seem to have resolved this, I can't explain exactly, however I have updated the dialog so that the Ask Activity is the last action on the step, and then it does now trigger the Message Received activity and outputs the value correctly.
Thanks @adrwh!
I was able to confirm the same thanks to your info. Closing as resolved.