- Quickstart Template #1 : Selection triggers the next intent
- Quickstart Template #2: Fallback to select
- Quickstart Template #3: Fallback to reprompt with loop
- Quickstart Template #4: Fallback to reprompt without loop
- Quickstart Template #5: Get a set of inputs from user
- Quickstart Template #6: Start Over
- Quickstart Template #7: Back One Step
- Quickstart Template #8: Yes/No Bot (aka Diagnostics/Checklist)
- Quickstart Template #9: Decision Tree / Menu bot
- Quickstart Template #10: Paging through long list of choices
- Quickstart Template #11: Questionnaire / Survey bot
In the previous microbot, you saw how you can keep prompting the user until they choose an appropriate answer.
Obviously this isn't ideal in all scenarios, and sometimes your bot will want to make a "best effort" and then quit.
In that case, we can design the bot to prompt once (initial prompt) and prompt again (reprompt) and then quit the conversation telling the user it cannot proceed further. Usually you will want to provide users some next step.
User: Start
Bot: Hi! Would you like to answer a couple of questions to help choose the right service? Yes | No
User: Yes
Bot: How soon do you need to complete the project?
User: Start
Bot: Hi! Would you like to answer a couple of questions to help choose the right service? Yes | No
User: Y
Bot: Sorry, I didn’t quite get that. Please type out the word Yes or No. Avoid abbreviations.
User: Yes <<user provides a reprompt reply which the bot can understand>>
Bot: How soon do you need to complete the project?
User: Start
Bot: Hi! Would you like to answer a couple of questions to help choose the right service? Yes | No
User: Y
Bot: Sorry, I didn’t quite get that. Please type out the word Yes or No. Avoid abbreviations.
User: Y
<<bot doesn’t understand the reprompt reply. So quits and suggests a next step>>
Bot: Sorry, I didn’t get that. Please contact [email protected] for help.
Flowchart
Want to create your own flowcharts like these? Check out the Dialogflow Flowcharts course.