Instead of adding a step all over again, all you need to do is create a loop.
Let's take the example of our order template.
We thought about a person that would want to order more than once.
Here are the steps to follow to build a chatbot like ours:
1. Add a 'Calculation block' where you create a variable to calculate the final amount. We named it 'final_amount'.
2. Add a 'Calculation' block for each cookie box where you set up the price.
3. In this template, we ask: 'How many boxes do you want?'. We saved the answer under the variable name 'number'.
4. Create another 'Calculation' block that we named 'intermediate_amount'. The 'intermediate_amount' variable results from the price of the cookie box selected multiplied by the number of boxes.
5. Create another 'Calculation' block that we named 'intermediate_amount'. The 'intermediate_amount' variable results from the price of the cookie box selected multiplied by the number of boxes.
6. To suggest other orders without doing all the previous steps, you create a loop like below:
That's it!🥳
Comments
0 comments
Please sign in to leave a comment.