Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Display dynamic questions based on API response

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:


Example of booking API response:







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:



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



Super User
Super User

Hi @fedejousset ,


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

You can vote in our many ideas related to it here: 


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 (


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...

Did I answer your question? Mark my post as a solution!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português

Helpful resources

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.


New Year’s Resolution - Build Conversational Bots!

Access all of the Power Virtual Agents learning resources and join the January learning challenge.

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Users online (1,457)