Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How would you model a list of an unknown number of items in DialogFlow CX?

Hi,

Taking from the example at Dialogflow CX: Build a retail virtual agent , if you were to build a shopping cart where users could add unlimited items to purchase. How would you model a solution for this?

That is, instead of having:

$session.params.merch = "T-shirt"
$session.params.size = "M"
$session.params.price = 5

Can we have something equivalent to:

$session.params.order_items = [
  {"merch": "T-shirt", "size": "M", "price": 5},
  {"merch": "T-shirt", "size": "XL", "price": 10}
]

How?

0 1 150
1 REPLY 1

Hi,

You might want to see this example where the user created a shopping cart based using Dialogflow CX.