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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Display dynamic questi...
Copilot Studio
Unanswered

Display dynamic questions based on API response

(0) ShareShare
ReportReport
Posted on by 6

Hello there,

 

We're using Omnichannel + PVA so at the minute we're building a PVA that needs to perform the following steps:

 

  1. Identify customer from Omnichannel contextual information - DONE
  2. Call an external API to retrieve bookings for that customers - DONE
  3. Show a list of (max 3) bookings id for the customer select one - TO DO
  4. Once the customer selects one booking id, the bot displays more information about that particular record (amount and status in this example) - TO DO

The first two steps were straightforward so we're able to identify the customer and call the API. Display the bookings id's as a question/answer is being proven more difficult, as the output values that can be returned from Flow to the bot are text/boolean/number but it's not possible to return a more complex object:

fedejousset_0-1634727304136.png

Example of booking API response:

 

 

 

[
 {
 "bookingId":1,
 "ammount":100,
 "status":"Pending"
 },
 {
 "bookingId":2,
 "ammount":200,
 "status":"Pending"
 },
 {
 "bookingId":3,
 "ammount":5,
 "status":"Complete"
 }
]

 

 

I've tried to use entities but values should be created on the fly and be specific for each customer so not entirely sure this is the correct approach. Of course, I also tried the option of returning 3 different values from the Flow but I can't find the way of using those variables as options in the questions to be displayed:

fedejousset_0-1634729126624.png

 

Do you have any suggestions or ideas on how to implement this?

 

Thanks!

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

    Hi @fedejousset ,

     

    By design, you cannot do it using only the PVA bot.

    You can vote in our many ideas related to it here: https://aka.ms/pva/community/ideas 

     

    Also, you can list all bookings within your chat using Markdown and ask an entire response from the user and they type in the chat. You can use that documentation: How to use mark down to format a table for the bot... - Power Platform Community (microsoft.com)

     

    Or, you can try to use the Bot Framework or Bot Framework Composer to work with this feature. I'm not sure if it'll work well there, but you can try.

    Use Bot Framework Composer to display an options list in chatbots - Power Virtual Agents | Microsoft Docs

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 447

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 101 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 65 Super User 2026 Season 1

Last 30 days Overall leaderboard