When you build a flow that prompts the user for information you need to decide what should happen if the user doesn't respond to the question as expected. Users might also digress or change the subject.
Here you'll learn how to slightly change the coffee order flow so that it may be interrupted and then resumed if the user doesn't immediately respond to which coffee they want.
Let's look at an example:
User: I'd like to order a coffee.
Bot: Ok, what coffee would you like?User: Which coffees do you have? (the coffee order flow is interrupted)
Bot: We offer a variety of handcrafted coffee drinks - from espressos to macchiatos to flat whites and more.
Bot: Let's continue with your order. Which coffee would you like? (the coffee order flow is resumed)User: A flat white, please.
Bot: Ok, a flat white will be ready for pickup in 5 minutes.
In the conversation above there are two flows at play. First the coffee order flow, and then, in the middle of that flow, the flow about available coffee types. These flows are designed independently of each other, and there is nothing inside the flows that link them to each other. In fact, once we've adjusted the coffee order flow to survive interruptions, it may be interrupted by any other flow and still be resumed at the point it was interrupted.
To cater for the conversation above you only need to do two things:
To allow the output node to survive interruptions you need to make it revisitable. This is how you do that:
There are no clear-cut rules about which flows (or outputs) you should make revisitable. Rather, it's an act of balance. On one hand, you don't want your bot to be annoyingly stubborn. On the other hand, if the interruption happens in the middle of a complex flow, you don't want to drop that flow and force the user to start all over once the interruption is dealt with. Regardless of your design skills, revisitability is something that you are likely to fine-tune once you've gathered some log data with real interactions.
Now, go ahead and try the adjusted flow in tryout! When the bot asks which coffee you want, test what happens if you say: 'Which coffees do you have?'.
User: I'd like to order a coffee.
Bot: Ok, what coffee would you like?
User: Which coffees do you have?
If you want your bot to say something slightly different when the output is resumed, you can add a resume prompt. This is how you do that:
Let's continue with your order. Which coffee would you like?
Have another play in tryout. What happens now if you say 'Which coffees do you have' instead of replying to the prompt for type of coffee?
User: I'd like to order a coffee.
Bot: Ok, what coffee would you like?User: Which coffees do you have? (the coffee order flow is interrupted)
Bot: We offer a variety of handcrafted coffee drinks - from espressos to macchiatos to flat whites and more.
Bot: Let's continue with your order. Which coffee would you like? (the coffee order flow is resumed)User: A flat white, please.
Bot: Ok, a flat white will be ready for pickup in 5 minutes.
Next page is about dealing with Follow-ups.
Was this page helpful?