Skip to content

Instantly share code, notes, and snippets.

@aninternetian
Created November 24, 2020 15:14
Show Gist options
  • Save aninternetian/bcb8fa849d3c0a15a10ba269f7d3d930 to your computer and use it in GitHub Desktop.
Save aninternetian/bcb8fa849d3c0a15a10ba269f7d3d930 to your computer and use it in GitHub Desktop.
chatbot for an interview
// https://www.rivescript.com/try
// creating a quick test chatbot for an upcoming interview
! version = 2.0
! array device = laptop pc
+ (hello|hi|hey) [*]
- Welcome to tech support. Please let me know if you are using a Laptop or a PC?
+ (@device)
- Ok, what problem are you facing with your <set dev=<star>><get dev>?
+ [*] (help|problem) [*]
- I am here to help, please let me know what is the problem with your <get dev>?
+ [*] virus [*]
- Ok, try installing the company version of McAfee
+ [*] not working [*]
- Please describe in details what is not working
+ [*] turning on [*]
- Have you check the cables or replace the batteries?
+ [*] (freeze|hang) [*]
- Enter "ctrl" + "alt" + "del" on your keyboard.
+ ok
- Did that work?
+ no
- What is the issue you are facing now?
+ [*] (done|yes) [*]
- Ok, please let me know if you are facing any other problems.
+ [*] thank [*]
- You're welcome. Please rate this chat for us to improve our service quality.
+ *
- Sorry, I do not understand
- Please try again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment