We've seen how to capture user input by using different types of prompt how to store input in a defined variable. These examples only contained single values or single instances of an object.

Your conversational AI application will often have to work with lists of data —or arrays. Being able to add to a collection and cycle through options can give users a richer experience when interacting with your conversational AI application. For example, adding a list of orders to a shopping cart or creating a playlist using a voice assistant.

The following links will take you to guides that show how you can create, loop through and exit an array.

Creating and Looping Through an Array

Creating and Looping Through a Paged Array

Exit and Continue Loops

Next

Learn how change the way your conversational AI application greets people by creating or editing a welcome message. You can also learn how implementing dialogs helps you create a maintainable conversational AI application.