Description
Ask the user to enter text in a specific format. the chatbot can ask for :
- An email
- A phone number
- A date
- A confirmation
- A number
Installation
Install with
npm install newbot-prompts
Use
- In your skill, import the package
- Add the skill in the
skills
code skills: prompts
Use in ConverseScript
In main.converse
:
Ask email
myFunction
Ask Phone
myFunction
Ask Date
myFunction
Ask Number
myFunction
You can put a minimum and/or maximum :
myFunction
Ask Confirmation
myFunction