Hello there,
We're using Omnichannel + PVA so at the minute we're building a PVA that needs to perform the following steps:
- Identify customer from Omnichannel contextual information - DONE
- Call an external API to retrieve bookings for that customers - DONE
- Show a list of (max 3) bookings id for the customer select one - TO DO
- 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:
[
{
"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:
Do you have any suggestions or ideas on how to implement this?
Thanks!

Report
All responses (
Answers (