web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Input Adaptive Card Fo...
Copilot Studio
Unanswered

Input Adaptive Card Form using Bot Framework Composer to PVA

(0) ShareShare
ReportReport
Posted on by 1,710

Hello,

I have a PVA where the users are going to fill an input form that is sent from Bot Framework Composer. After they submit the form, I want to trigger a flow to get the values entered by the users and store them in my SharePoint List.

I am struggling with the following points using the bot framework composer:

1. How can I invoke the flow after the user pushes the submit button from the AC in the PVA? (It's invoking the flow without waiting for the user to fill the AC form)
2. After the user submits the AC form in the PVA, how can I update the AC and show a success message to avoid the user from filling in another form?
3. How can I pass the AC values coming from the form of the user in the body of the POST request in the composer?

I have found the below document but it's not similar to my scenario:

https://docs.microsoft.com/en-us/power-virtual-agents/advanced-bot-framework-composer#example-1--show-an-adaptive-card-in-power-virtual-agents

 

Please find attached the AC form example and Bot Framework composer actions:

Capture1.PNGCapture.PNG

Can someone please explain get back to me (in detail if possible please), and provide an example to achieve/solve the above mentioned?

Any help will be highly appreciated.

Thank you!

Categories:
I have the same question (0)
  • cabata Profile Picture
    314 Most Valuable Professional on at

    hi @Julien2  I can Imagine this as json so you can get it back using http calls like in PA. Maeby this could helps you Power Automate Tutorial - Approvals + Adaptive Cards + Outlook = Awesome - YouTube

  • Community Power Platform Member Profile Picture
    on at

    Did you figure this out? I am trying to do the same, but PVA fails to generate it. Can you share your Adaptive Card JSON?

  • EBMRay Profile Picture
    1,710 on at

    Thanks for sharing the tutorial, I just checked it out. 

    In the tutorial, they used "Outlook Actionable messages" as the type but in this type, there is an action for an HTTP request, and it can’t be used as a type in the composer for the PVA. Whereas in the webchat framework type, we don't have the option of Action.HTTP.

    I believe it can be done through the bot framework composer, but I don't know the step-by-step process to configure and handle the points I have mentioned.

    @Anonymous 
    I haven’t had the time to figure it out yet. However, I found something helpful that may solve this issue:


    Regarding the AC JSON, you can get it from the below link, just add one field for testing:


    Let me know if you've tried to follow the steps mentioned in the link I provided.
     
    If it works, it would be highly appreciated if you can post it here in the community so we can help others to follow the same steps.

    Thanks,
    Julien
  • Community Power Platform Member Profile Picture
    on at

    I've read that exact same github issue post and cannot get an adaptive card with input text to render in PVA for the life of me. I've tried the JSON mentioned in there, along with making a dialog that uses the prompt for text input to send the AC in PVA along with the send a response and neither will generate the AC.

  • dsutradhar Profile Picture
    8 on at

    Dear @Julien2, I tried going through the steps like you have mentioned.

     

    I am facing a similar issue. I've tried adding a AC from the Bot Framework Composer for a PVA, but the AC isn't rendering on the Chat Window:

     

    I've connected my custom Dialog directly to the Greeting Topic:

    Screenshot 2021-05-26 at 10.57.53 AM.png

     

    In the Bot Framework Composer (BFC), I've created a flow which looks like this:

    Screenshot 2021-05-26 at 10.58.17 AM.png

     

    The AC JSON looks like this:

    Screenshot 2021-05-26 at 10.58.41 AM.png

     

    After multiple attempts, the chat still looks like this:

    Screenshot 2021-05-26 at 10.59.23 AM.png

     

    Please help me if I have missed anything here.

  • Verified answer
    MarKol Profile Picture
    on at

    This Example #4 might help you to display a multi-line input form with a Submit button in PVA via Composer:

    Use Bot Framework Composer to display a form in chatbots - Power Virtual Agents | Microsoft Docs

     

    MarKol_1-1624431253986.png

     

  • Kalok Profile Picture
    8 on at

    I have tried almost everything to display input form as per the given example in example 4 Use Bot Framework Composer to display a form in chatbots - Power Virtual Agents | Microsoft Docs but no luck. Form is not coming.

  • MarKol Profile Picture
    on at

    @Kalok - you are correct, Example 4 needs be updated to work with the latest version of Composer; the published doc pre-dates the latest Composer version and is now outdated.

     

    Thanks for brining this to our attention; we will update Use Bot Framework Composer to display a form in chatbots - Power Virtual Agents | Microsoft Docs to work with the latest version of Composer.

  • MarKol Profile Picture
    on at

    @Kalok and @Julien2  - the Tutorial for Example #4 on how to display a fillable form with a Submit button has been updated to work with the latest release of Composer:

     

    Use Bot Framework Composer to display a form in chatbots - Power Virtual Agents | Microsoft Docs

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    @MarKol 

     

    Where the submit data will be submitted?

     

    If I want the data from the forms to go to my email, how should we achieve it?

     

    Cheers,


    Fernando

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 273 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 271 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard