Looping slot filling until some condition is fullfilled

Hi, I was thinking about making a form, in which some products are asked with the quantities. The form itself it’s just made for 1 single product request, but I would like to know if it’s possible to ask at the end of the request if the user wants to keep going, and repeat the process until the user decides to stop.

Example:

User: I wanna buy Assistant: So, what do you want to buy? User: I wanna buy a coke Assistant: How many cokes do you want? User: Like 2 Assistant: Okey, 2 cokes. Anything else? User: Yes REPEAT … Assistant: … Anything else? User: No STOP

Btw, I have tried already adding some kind of confirmation_slot but nothing works.

You can create a confirmation slot, as you said, which will append each time to a list slot and reset the form’s slots.

Or, you can create a story/rule, in which the submit action (e.g. utter_ask_anything_else), followed by the intent confirm repeats the form.

Could you provide an example of the last one? The fact is that I need to ask the question of “Do you want something more” every time, so, adding an intent at the end may not be a good solution. I keep trying to do it through a completion slot but it’s not working correctly.