I am currently using bot composer for my chatbot. When I tried to get the value from Adaptive card input value on clicking submit, I am unable to get the response data back. Can you guys add the flow in bot composer for getting the response back from Adaptive card input.
Thank you for the question, @GowthamDisys. I would like to help, but I need some more information.
@GowthamDisys you should be able to add a hidden data value to your submit action named intent which contains the name of the intent you want triggered when the card is submitted. You'll then need to add a trigger to handle the intent which unfortunately means adding a bogus LUIS or RegExp intent to your root dialog. 聽I usually just add a LUIS intent called "HandleSubmit" or something and then give it a GUID or some other bogus string for the require utterance. 聽Tan example submit action looks like below:
{
"type": "Action.Submit",
"title": "Submit",
"data": {
"intent": "HandleSubmit"
}
}
There is a second approach which doesn't require a bogus intent handler. You can map the submitted card to a custom event. 聽Instead of a hidden intent field add a hidden event field with the name of the custom event you want triggered. 聽Then in your bot you'll want to add a "Message Received" trigger:

You'll need to add a condition to your trigger that prevents it from firing unless the message has a value with an event name:

聽Then just add a "emit a custom event" action to trigger the event. 聽

Your event will trigger and you can get the submitted fields from turn.activity.value.
There is a second approach which doesn't require a bogus intent handler. You can map the submitted card to a custom event. 聽Instead of a hidden
intentfield add a hiddeneventfield with the name of the custom event you want triggered. 聽Then in your bot you'll want to add a "Message Received" trigger:
You'll need to add a condition to your trigger that prevents it from firing unless the message has a value with an event name:
聽Then just add a "emit a custom event" action to trigger the event. 聽
Your event will trigger and you can get the submitted fields from
turn.activity.value.
Hi @Stevenic ,
This method works fine. Thanks!
Thank you for the question, @GowthamDisys. I would like to help, but I need some more information.
- Please post your Adaptive Card JSON
- What channel are you using?
- What do you mean by "add the flow"?
Hi @v-kydela ,
I have added the JSON below.
sampleAdaptiveCard.txt
I am using WebChat Channel.
I mean to say, I have added the adaptive card by adding "Send a response".

I need to wait for the user submit event in adaptive card to get their input, So, Can you add a flow in composer like, ask a question-> Adaptive submit -> Finally get response from the user.

The method that @Stevenic told above, seems to be working, but it is a kind of workaround for this issue. It will be better if you could add the functionality within the existing flow. (Ask a question)
Thanks,
Gowtham
@GowthamDisys - It may be possible to get your desired behavior to work using existing inputs (like a text input) if you use custom validation rules. It would still likely be considered a workaround since you'd have to intercept the incoming message with a Message Received trigger and modify it so that the input would recognize it.
@GowthamDisys - We appreciate the feature request, but it looks like this isn't going to be built into Composer anytime soon. The team may reconsider if more customers express interest in it. For now you can use a workaround.